@nest-omni/core 1.0.1 → 1.0.3
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/package.json +10 -3
- package/dist/boilerplate.polyfill.d.ts +0 -39
- package/dist/boilerplate.polyfill.js +0 -66
- package/dist/boilerplate.polyfill.js.map +0 -1
- package/dist/common/abstract-client.service.d.ts +0 -16
- package/dist/common/abstract-client.service.js +0 -26
- package/dist/common/abstract-client.service.js.map +0 -1
- package/dist/common/abstract.entity.d.ts +0 -17
- package/dist/common/abstract.entity.js +0 -71
- package/dist/common/abstract.entity.js.map +0 -1
- package/dist/common/dto/abstract.dto.d.ts +0 -13
- package/dist/common/dto/abstract.dto.js +0 -63
- package/dist/common/dto/abstract.dto.js.map +0 -1
- package/dist/common/dto/bulk-id.dto.d.ts +0 -3
- package/dist/common/dto/bulk-id.dto.js +0 -29
- package/dist/common/dto/bulk-id.dto.js.map +0 -1
- package/dist/common/dto/create-translation.dto.d.ts +0 -5
- package/dist/common/dto/create-translation.dto.js +0 -28
- package/dist/common/dto/create-translation.dto.js.map +0 -1
- package/dist/common/dto/page-meta.dto.d.ts +0 -15
- package/dist/common/dto/page-meta.dto.js +0 -55
- package/dist/common/dto/page-meta.dto.js.map +0 -1
- package/dist/common/dto/page-options.dto.d.ts +0 -8
- package/dist/common/dto/page-options.dto.js +0 -52
- package/dist/common/dto/page-options.dto.js.map +0 -1
- package/dist/common/dto/page.dto.d.ts +0 -11
- package/dist/common/dto/page.dto.js +0 -61
- package/dist/common/dto/page.dto.js.map +0 -1
- package/dist/common/utils.d.ts +0 -3
- package/dist/common/utils.js +0 -26
- package/dist/common/utils.js.map +0 -1
- package/dist/constants/index.d.ts +0 -4
- package/dist/constants/index.js +0 -21
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/language-code.d.ts +0 -5
- package/dist/constants/language-code.js +0 -10
- package/dist/constants/language-code.js.map +0 -1
- package/dist/constants/order.d.ts +0 -4
- package/dist/constants/order.js +0 -9
- package/dist/constants/order.js.map +0 -1
- package/dist/constants/role-type.d.ts +0 -4
- package/dist/constants/role-type.js +0 -9
- package/dist/constants/role-type.js.map +0 -1
- package/dist/constants/token-type.d.ts +0 -4
- package/dist/constants/token-type.js +0 -9
- package/dist/constants/token-type.js.map +0 -1
- package/dist/decorators/api-page-ok-response.decorator.d.ts +0 -5
- package/dist/decorators/api-page-ok-response.decorator.js +0 -26
- package/dist/decorators/api-page-ok-response.decorator.js.map +0 -1
- package/dist/decorators/auth-user.decorator.d.ts +0 -1
- package/dist/decorators/auth-user.decorator.js +0 -16
- package/dist/decorators/auth-user.decorator.js.map +0 -1
- package/dist/decorators/controller.decorator.d.ts +0 -1
- package/dist/decorators/controller.decorator.js +0 -12
- package/dist/decorators/controller.decorator.js.map +0 -1
- package/dist/decorators/field.decorators.d.ts +0 -71
- package/dist/decorators/field.decorators.js +0 -457
- package/dist/decorators/field.decorators.js.map +0 -1
- package/dist/decorators/http.decorators.d.ts +0 -3
- package/dist/decorators/http.decorators.js +0 -9
- package/dist/decorators/http.decorators.js.map +0 -1
- package/dist/decorators/index.d.ts +0 -12
- package/dist/decorators/index.js +0 -29
- package/dist/decorators/index.js.map +0 -1
- package/dist/decorators/omni-auth.decorator.d.ts +0 -8
- package/dist/decorators/omni-auth.decorator.js +0 -36
- package/dist/decorators/omni-auth.decorator.js.map +0 -1
- package/dist/decorators/operation.decorator.d.ts +0 -1
- package/dist/decorators/operation.decorator.js +0 -7
- package/dist/decorators/operation.decorator.js.map +0 -1
- package/dist/decorators/property.decorators.d.ts +0 -15
- package/dist/decorators/property.decorators.js +0 -43
- package/dist/decorators/property.decorators.js.map +0 -1
- package/dist/decorators/public-route.decorator.d.ts +0 -3
- package/dist/decorators/public-route.decorator.js +0 -8
- package/dist/decorators/public-route.decorator.js.map +0 -1
- package/dist/decorators/swagger.schema.d.ts +0 -5
- package/dist/decorators/swagger.schema.js +0 -80
- package/dist/decorators/swagger.schema.js.map +0 -1
- package/dist/decorators/timestamp-column.decorator.d.ts +0 -1
- package/dist/decorators/timestamp-column.decorator.js +0 -29
- package/dist/decorators/timestamp-column.decorator.js.map +0 -1
- package/dist/decorators/transform.decorators.d.ts +0 -8
- package/dist/decorators/transform.decorators.js +0 -96
- package/dist/decorators/transform.decorators.js.map +0 -1
- package/dist/decorators/translate.decorator.d.ts +0 -5
- package/dist/decorators/translate.decorator.js +0 -18
- package/dist/decorators/translate.decorator.js.map +0 -1
- package/dist/decorators/use-dto.decorator.d.ts +0 -4
- package/dist/decorators/use-dto.decorator.js +0 -10
- package/dist/decorators/use-dto.decorator.js.map +0 -1
- package/dist/decorators/user-check.decorator.d.ts +0 -6
- package/dist/decorators/user-check.decorator.js +0 -22
- package/dist/decorators/user-check.decorator.js.map +0 -1
- package/dist/decorators/user.decorator.d.ts +0 -8
- package/dist/decorators/user.decorator.js +0 -39
- package/dist/decorators/user.decorator.js.map +0 -1
- package/dist/decorators/user_auth.decorator.d.ts +0 -1
- package/dist/decorators/user_auth.decorator.js +0 -17
- package/dist/decorators/user_auth.decorator.js.map +0 -1
- package/dist/decorators/validator.decorators.d.ts +0 -10
- package/dist/decorators/validator.decorators.js +0 -63
- package/dist/decorators/validator.decorators.js.map +0 -1
- package/dist/exceptions/file-not-image.exception.d.ts +0 -4
- package/dist/exceptions/file-not-image.exception.js +0 -11
- package/dist/exceptions/file-not-image.exception.js.map +0 -1
- package/dist/exceptions/index.d.ts +0 -2
- package/dist/exceptions/index.js +0 -19
- package/dist/exceptions/index.js.map +0 -1
- package/dist/exceptions/page-type.exception.d.ts +0 -4
- package/dist/exceptions/page-type.exception.js +0 -11
- package/dist/exceptions/page-type.exception.js.map +0 -1
- package/dist/exceptions/user-not-found.exception.d.ts +0 -4
- package/dist/exceptions/user-not-found.exception.js +0 -11
- package/dist/exceptions/user-not-found.exception.js.map +0 -1
- package/dist/filters/bad-request.filter.d.ts +0 -5
- package/dist/filters/bad-request.filter.js +0 -65
- package/dist/filters/bad-request.filter.js.map +0 -1
- package/dist/filters/constraint-errors.d.ts +0 -1
- package/dist/filters/constraint-errors.js +0 -7
- package/dist/filters/constraint-errors.js.map +0 -1
- package/dist/filters/index.d.ts +0 -3
- package/dist/filters/index.js +0 -20
- package/dist/filters/index.js.map +0 -1
- package/dist/filters/query-failed.filter.d.ts +0 -10
- package/dist/filters/query-failed.filter.js +0 -43
- package/dist/filters/query-failed.filter.js.map +0 -1
- package/dist/guards/auth.guard.d.ts +0 -4
- package/dist/guards/auth.guard.js +0 -13
- package/dist/guards/auth.guard.js.map +0 -1
- package/dist/guards/roles.guard.d.ts +0 -7
- package/dist/guards/roles.guard.js +0 -36
- package/dist/guards/roles.guard.js.map +0 -1
- package/dist/health-checker/health-checker.controller.d.ts +0 -15
- package/dist/health-checker/health-checker.controller.js +0 -68
- package/dist/health-checker/health-checker.controller.js.map +0 -1
- package/dist/health-checker/health-checker.module.d.ts +0 -2
- package/dist/health-checker/health-checker.module.js +0 -26
- package/dist/health-checker/health-checker.module.js.map +0 -1
- package/dist/health-checker/health-indicators/service.indicator.d.ts +0 -8
- package/dist/health-checker/health-indicators/service.indicator.js +0 -57
- package/dist/health-checker/health-indicators/service.indicator.js.map +0 -1
- package/dist/helpers/common.helper.d.ts +0 -3
- package/dist/helpers/common.helper.js +0 -37
- package/dist/helpers/common.helper.js.map +0 -1
- package/dist/helpers/date.helper.d.ts +0 -10
- package/dist/helpers/date.helper.js +0 -59
- package/dist/helpers/date.helper.js.map +0 -1
- package/dist/helpers/excel.helper.d.ts +0 -12
- package/dist/helpers/excel.helper.js +0 -250
- package/dist/helpers/excel.helper.js.map +0 -1
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/index.js +0 -20
- package/dist/helpers/index.js.map +0 -1
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -28
- package/dist/index.js.map +0 -1
- package/dist/interceptors/auth-user.interceptor.d.ts +0 -4
- package/dist/interceptors/auth-user.interceptor.js +0 -25
- package/dist/interceptors/auth-user.interceptor.js.map +0 -1
- package/dist/interceptors/index.d.ts +0 -2
- package/dist/interceptors/index.js +0 -19
- package/dist/interceptors/index.js.map +0 -1
- package/dist/interceptors/language-interceptor.service.d.ts +0 -6
- package/dist/interceptors/language-interceptor.service.js +0 -31
- package/dist/interceptors/language-interceptor.service.js.map +0 -1
- package/dist/interceptors/translation-interceptor.service.d.ts +0 -5
- package/dist/interceptors/translation-interceptor.service.js +0 -35
- package/dist/interceptors/translation-interceptor.service.js.map +0 -1
- package/dist/interfaces/IApiFile.d.ts +0 -4
- package/dist/interfaces/IApiFile.js +0 -3
- package/dist/interfaces/IApiFile.js.map +0 -1
- package/dist/interfaces/IFile.d.ts +0 -9
- package/dist/interfaces/IFile.js +0 -3
- package/dist/interfaces/IFile.js.map +0 -1
- package/dist/interfaces/ITranslationDecoratorInterface.d.ts +0 -3
- package/dist/interfaces/ITranslationDecoratorInterface.js +0 -3
- package/dist/interfaces/ITranslationDecoratorInterface.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -3
- package/dist/interfaces/index.js +0 -20
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/response.d.ts +0 -25
- package/dist/interfaces/response.js +0 -3
- package/dist/interfaces/response.js.map +0 -1
- package/dist/middlewares/index.d.ts +0 -3
- package/dist/middlewares/index.js +0 -20
- package/dist/middlewares/index.js.map +0 -1
- package/dist/middlewares/omni-auth.middleware.d.ts +0 -1
- package/dist/middlewares/omni-auth.middleware.js +0 -14
- package/dist/middlewares/omni-auth.middleware.js.map +0 -1
- package/dist/middlewares/powerby.middleware.d.ts +0 -1
- package/dist/middlewares/powerby.middleware.js +0 -11
- package/dist/middlewares/powerby.middleware.js.map +0 -1
- package/dist/middlewares/request-id.middleware.d.ts +0 -7
- package/dist/middlewares/request-id.middleware.js +0 -23
- package/dist/middlewares/request-id.middleware.js.map +0 -1
- package/dist/providers/context.provider.d.ts +0 -32
- package/dist/providers/context.provider.js +0 -71
- package/dist/providers/context.provider.js.map +0 -1
- package/dist/providers/generator.provider.d.ts +0 -9
- package/dist/providers/generator.provider.js +0 -51
- package/dist/providers/generator.provider.js.map +0 -1
- package/dist/providers/index.d.ts +0 -2
- package/dist/providers/index.js +0 -19
- package/dist/providers/index.js.map +0 -1
- package/dist/setup/bootstrap.setup.d.ts +0 -5
- package/dist/setup/bootstrap.setup.js +0 -102
- package/dist/setup/bootstrap.setup.js.map +0 -1
- package/dist/setup/index.d.ts +0 -1
- package/dist/setup/index.js +0 -18
- package/dist/setup/index.js.map +0 -1
- package/dist/setup-swagger.d.ts +0 -2
- package/dist/setup-swagger.js +0 -63
- package/dist/setup-swagger.js.map +0 -1
- package/dist/shared/index.d.ts +0 -2
- package/dist/shared/index.js +0 -19
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/serviceRegistryModule.d.ts +0 -2
- package/dist/shared/serviceRegistryModule.js +0 -102
- package/dist/shared/serviceRegistryModule.js.map +0 -1
- package/dist/shared/services/api-config.service.d.ts +0 -70
- package/dist/shared/services/api-config.service.js +0 -286
- package/dist/shared/services/api-config.service.js.map +0 -1
- package/dist/shared/services/aws-s3.service.d.ts +0 -10
- package/dist/shared/services/aws-s3.service.js +0 -49
- package/dist/shared/services/aws-s3.service.js.map +0 -1
- package/dist/shared/services/generator.service.d.ts +0 -4
- package/dist/shared/services/generator.service.js +0 -24
- package/dist/shared/services/generator.service.js.map +0 -1
- package/dist/shared/services/index.d.ts +0 -5
- package/dist/shared/services/index.js +0 -22
- package/dist/shared/services/index.js.map +0 -1
- package/dist/shared/services/translation.service.d.ts +0 -9
- package/dist/shared/services/translation.service.js +0 -61
- package/dist/shared/services/translation.service.js.map +0 -1
- package/dist/shared/services/validator.service.d.ts +0 -3
- package/dist/shared/services/validator.service.js +0 -21
- package/dist/shared/services/validator.service.js.map +0 -1
- package/dist/snake-naming.strategy.d.ts +0 -11
- package/dist/snake-naming.strategy.js +0 -38
- package/dist/snake-naming.strategy.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types.d.ts +0 -9
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
- package/dist/validators/file-mimetype.validator.d.ts +0 -13
- package/dist/validators/file-mimetype.validator.js +0 -24
- package/dist/validators/file-mimetype.validator.js.map +0 -1
- package/dist/validators/index.d.ts +0 -3
- package/dist/validators/index.js +0 -20
- package/dist/validators/index.js.map +0 -1
- package/dist/validators/is-exists.validator.d.ts +0 -18
- package/dist/validators/is-exists.validator.js +0 -52
- package/dist/validators/is-exists.validator.js.map +0 -1
- package/dist/validators/is-unique.validator.d.ts +0 -17
- package/dist/validators/is-unique.validator.js +0 -83
- package/dist/validators/is-unique.validator.js.map +0 -1
- package/dist/validators/phone-country-code.validator.d.ts +0 -2
- package/dist/validators/phone-country-code.validator.js +0 -31
- package/dist/validators/phone-country-code.validator.js.map +0 -1
- package/dist/validators/same-as.validator.d.ts +0 -2
- package/dist/validators/same-as.validator.js +0 -26
- package/dist/validators/same-as.validator.js.map +0 -1
- package/dist/validators/skip-empty.validator.d.ts +0 -1
- package/dist/validators/skip-empty.validator.js +0 -19
- package/dist/validators/skip-empty.validator.js.map +0 -1
- package/src/boilerplate.polyfill.d.ts +0 -39
- package/src/boilerplate.polyfill.js +0 -78
- package/src/boilerplate.polyfill.ts +0 -202
- package/src/common/abstract-client.service.d.ts +0 -20
- package/src/common/abstract-client.service.js +0 -39
- package/src/common/abstract-client.service.ts +0 -56
- package/src/common/abstract.entity.d.ts +0 -24
- package/src/common/abstract.entity.js +0 -152
- package/src/common/abstract.entity.ts +0 -73
- package/src/common/dto/abstract.dto.d.ts +0 -13
- package/src/common/dto/abstract.dto.js +0 -96
- package/src/common/dto/abstract.dto.ts +0 -64
- package/src/common/dto/bulk-id.dto.d.ts +0 -3
- package/src/common/dto/bulk-id.dto.js +0 -63
- package/src/common/dto/bulk-id.dto.ts +0 -13
- package/src/common/dto/create-translation.dto.d.ts +0 -5
- package/src/common/dto/create-translation.dto.js +0 -63
- package/src/common/dto/create-translation.dto.ts +0 -10
- package/src/common/dto/page-meta.dto.d.ts +0 -15
- package/src/common/dto/page-meta.dto.js +0 -88
- package/src/common/dto/page-meta.dto.ts +0 -37
- package/src/common/dto/page-options.dto.d.ts +0 -8
- package/src/common/dto/page-options.dto.js +0 -87
- package/src/common/dto/page-options.dto.ts +0 -35
- package/src/common/dto/page.dto.d.ts +0 -11
- package/src/common/dto/page.dto.js +0 -94
- package/src/common/dto/page.dto.ts +0 -36
- package/src/common/utils.d.ts +0 -14
- package/src/common/utils.js +0 -39
- package/src/common/utils.ts +0 -45
- package/src/constants/index.d.ts +0 -4
- package/src/constants/index.js +0 -20
- package/src/constants/index.ts +0 -4
- package/src/constants/language-code.d.ts +0 -5
- package/src/constants/language-code.js +0 -10
- package/src/constants/language-code.ts +0 -7
- package/src/constants/order.d.ts +0 -4
- package/src/constants/order.js +0 -8
- package/src/constants/order.ts +0 -4
- package/src/constants/role-type.d.ts +0 -4
- package/src/constants/role-type.js +0 -8
- package/src/constants/role-type.ts +0 -4
- package/src/constants/token-type.d.ts +0 -4
- package/src/constants/token-type.js +0 -8
- package/src/constants/token-type.ts +0 -4
- package/src/decorators/api-page-ok-response.decorator.d.ts +0 -5
- package/src/decorators/api-page-ok-response.decorator.js +0 -25
- package/src/decorators/api-page-ok-response.decorator.ts +0 -31
- package/src/decorators/auth-user.decorator.d.ts +0 -1
- package/src/decorators/auth-user.decorator.js +0 -15
- package/src/decorators/auth-user.decorator.ts +0 -16
- package/src/decorators/controller.decorator.d.ts +0 -1
- package/src/decorators/controller.decorator.js +0 -34
- package/src/decorators/controller.decorator.ts +0 -8
- package/src/decorators/field.decorators.d.ts +0 -71
- package/src/decorators/field.decorators.js +0 -455
- package/src/decorators/field.decorators.ts +0 -773
- package/src/decorators/http.decorators.d.ts +0 -3
- package/src/decorators/http.decorators.js +0 -8
- package/src/decorators/http.decorators.ts +0 -10
- package/src/decorators/index.d.ts +0 -12
- package/src/decorators/index.js +0 -28
- package/src/decorators/index.ts +0 -12
- package/src/decorators/omni-auth.decorator.d.ts +0 -8
- package/src/decorators/omni-auth.decorator.js +0 -60
- package/src/decorators/omni-auth.decorator.ts +0 -46
- package/src/decorators/operation.decorator.d.ts +0 -1
- package/src/decorators/operation.decorator.js +0 -6
- package/src/decorators/operation.decorator.ts +0 -4
- package/src/decorators/property.decorators.d.ts +0 -15
- package/src/decorators/property.decorators.js +0 -36
- package/src/decorators/property.decorators.ts +0 -62
- package/src/decorators/public-route.decorator.d.ts +0 -3
- package/src/decorators/public-route.decorator.js +0 -8
- package/src/decorators/public-route.decorator.ts +0 -8
- package/src/decorators/swagger.schema.d.ts +0 -5
- package/src/decorators/swagger.schema.js +0 -82
- package/src/decorators/swagger.schema.ts +0 -117
- package/src/decorators/timestamp-column.decorator.d.ts +0 -1
- package/src/decorators/timestamp-column.decorator.js +0 -28
- package/src/decorators/timestamp-column.decorator.ts +0 -29
- package/src/decorators/transform.decorators.d.ts +0 -35
- package/src/decorators/transform.decorators.js +0 -122
- package/src/decorators/transform.decorators.ts +0 -147
- package/src/decorators/translate.decorator.d.ts +0 -5
- package/src/decorators/translate.decorator.js +0 -18
- package/src/decorators/translate.decorator.ts +0 -19
- package/src/decorators/use-dto.decorator.d.ts +0 -4
- package/src/decorators/use-dto.decorator.js +0 -9
- package/src/decorators/use-dto.decorator.ts +0 -11
- package/src/decorators/user-check.decorator.d.ts +0 -6
- package/src/decorators/user-check.decorator.js +0 -44
- package/src/decorators/user-check.decorator.ts +0 -30
- package/src/decorators/user.decorator.d.ts +0 -8
- package/src/decorators/user.decorator.js +0 -62
- package/src/decorators/user.decorator.ts +0 -48
- package/src/decorators/user_auth.decorator.d.ts +0 -1
- package/src/decorators/user_auth.decorator.js +0 -16
- package/src/decorators/user_auth.decorator.ts +0 -15
- package/src/decorators/validator.decorators.d.ts +0 -10
- package/src/decorators/validator.decorators.js +0 -59
- package/src/decorators/validator.decorators.ts +0 -78
- package/src/exceptions/file-not-image.exception.d.ts +0 -4
- package/src/exceptions/file-not-image.exception.js +0 -10
- package/src/exceptions/file-not-image.exception.ts +0 -7
- package/src/exceptions/index.d.ts +0 -2
- package/src/exceptions/index.js +0 -18
- package/src/exceptions/index.ts +0 -2
- package/src/exceptions/page-type.exception.d.ts +0 -4
- package/src/exceptions/page-type.exception.js +0 -10
- package/src/exceptions/page-type.exception.ts +0 -7
- package/src/exceptions/user-not-found.exception.d.ts +0 -4
- package/src/exceptions/user-not-found.exception.js +0 -10
- package/src/exceptions/user-not-found.exception.ts +0 -7
- package/src/filters/bad-request.filter.d.ts +0 -5
- package/src/filters/bad-request.filter.js +0 -104
- package/src/filters/bad-request.filter.ts +0 -67
- package/src/filters/constraint-errors.d.ts +0 -1
- package/src/filters/constraint-errors.js +0 -7
- package/src/filters/constraint-errors.ts +0 -5
- package/src/filters/index.d.ts +0 -3
- package/src/filters/index.js +0 -19
- package/src/filters/index.ts +0 -3
- package/src/filters/query-failed.filter.d.ts +0 -10
- package/src/filters/query-failed.filter.js +0 -81
- package/src/filters/query-failed.filter.ts +0 -32
- package/src/health-checker/health-checker.controller.d.ts +0 -15
- package/src/health-checker/health-checker.controller.js +0 -104
- package/src/health-checker/health-checker.controller.ts +0 -51
- package/src/health-checker/health-checker.module.d.ts +0 -2
- package/src/health-checker/health-checker.module.js +0 -69
- package/src/health-checker/health-checker.module.ts +0 -13
- package/src/health-checker/health-indicators/service.indicator.d.ts +0 -8
- package/src/health-checker/health-indicators/service.indicator.js +0 -102
- package/src/health-checker/health-indicators/service.indicator.ts +0 -44
- package/src/helpers/common.helper.d.ts +0 -16
- package/src/helpers/common.helper.js +0 -49
- package/src/helpers/common.helper.ts +0 -49
- package/src/helpers/date.helper.d.ts +0 -10
- package/src/helpers/date.helper.js +0 -81
- package/src/helpers/date.helper.ts +0 -64
- package/src/helpers/excel.helper.d.ts +0 -27
- package/src/helpers/excel.helper.js +0 -338
- package/src/helpers/index.d.ts +0 -3
- package/src/helpers/index.js +0 -19
- package/src/helpers/index.ts +0 -3
- package/src/i18n/en_US/validation.json +0 -38
- package/src/i18n/zh_CN/validation.json +0 -38
- package/src/index.d.ts +0 -11
- package/src/index.js +0 -28
- package/src/index.ts +0 -12
- package/src/interceptors/auth-user.interceptor.d.ts +0 -4
- package/src/interceptors/auth-user.interceptor.js +0 -68
- package/src/interceptors/auth-user.interceptor.ts +0 -20
- package/src/interceptors/index.d.ts +0 -2
- package/src/interceptors/index.js +0 -18
- package/src/interceptors/index.ts +0 -2
- package/src/interceptors/language-interceptor.service.d.ts +0 -6
- package/src/interceptors/language-interceptor.service.js +0 -74
- package/src/interceptors/language-interceptor.service.ts +0 -31
- package/src/interceptors/translation-interceptor.service.d.ts +0 -5
- package/src/interceptors/translation-interceptor.service.js +0 -83
- package/src/interceptors/translation-interceptor.service.ts +0 -43
- package/src/interfaces/IApiFile.d.ts +0 -4
- package/src/interfaces/IApiFile.js +0 -2
- package/src/interfaces/IApiFile.ts +0 -4
- package/src/interfaces/IFile.d.ts +0 -9
- package/src/interfaces/IFile.js +0 -2
- package/src/interfaces/IFile.ts +0 -8
- package/src/interfaces/ITranslationDecoratorInterface.d.ts +0 -3
- package/src/interfaces/ITranslationDecoratorInterface.js +0 -2
- package/src/interfaces/ITranslationDecoratorInterface.ts +0 -3
- package/src/interfaces/index.d.ts +0 -3
- package/src/interfaces/index.js +0 -19
- package/src/interfaces/index.ts +0 -3
- package/src/interfaces/response.d.ts +0 -25
- package/src/interfaces/response.js +0 -2
- package/src/interfaces/response.ts +0 -37
- package/src/middlewares/index.d.ts +0 -3
- package/src/middlewares/index.js +0 -19
- package/src/middlewares/index.ts +0 -3
- package/src/middlewares/omni-auth.middleware.d.ts +0 -1
- package/src/middlewares/omni-auth.middleware.js +0 -13
- package/src/middlewares/omni-auth.middleware.ts +0 -10
- package/src/middlewares/powerby.middleware.d.ts +0 -1
- package/src/middlewares/powerby.middleware.js +0 -10
- package/src/middlewares/powerby.middleware.ts +0 -6
- package/src/middlewares/request-id.middleware.d.ts +0 -7
- package/src/middlewares/request-id.middleware.js +0 -22
- package/src/middlewares/request-id.middleware.ts +0 -28
- package/src/providers/context.provider.d.ts +0 -32
- package/src/providers/context.provider.js +0 -73
- package/src/providers/context.provider.ts +0 -98
- package/src/providers/generator.provider.d.ts +0 -13
- package/src/providers/generator.provider.js +0 -54
- package/src/providers/generator.provider.ts +0 -66
- package/src/providers/index.d.ts +0 -2
- package/src/providers/index.js +0 -18
- package/src/providers/index.ts +0 -2
- package/src/setup/bootstrap.setup.d.ts +0 -5
- package/src/setup/bootstrap.setup.js +0 -138
- package/src/setup/bootstrap.setup.ts +0 -139
- package/src/setup/index.d.ts +0 -1
- package/src/setup/index.js +0 -17
- package/src/setup/index.ts +0 -1
- package/src/setup/microservices.setup.js +0 -55
- package/src/setup-swagger.d.ts +0 -2
- package/src/setup-swagger.js +0 -62
- package/src/setup-swagger.ts +0 -67
- package/src/shared/index.d.ts +0 -2
- package/src/shared/index.js +0 -18
- package/src/shared/index.ts +0 -2
- package/src/shared/serviceRegistryModule.d.ts +0 -2
- package/src/shared/serviceRegistryModule.js +0 -176
- package/src/shared/serviceRegistryModule.ts +0 -110
- package/src/shared/services/api-config.service.d.ts +0 -73
- package/src/shared/services/api-config.service.js +0 -335
- package/src/shared/services/api-config.service.ts +0 -319
- package/src/shared/services/aws-s3.service.d.ts +0 -10
- package/src/shared/services/aws-s3.service.js +0 -96
- package/src/shared/services/aws-s3.service.ts +0 -39
- package/src/shared/services/generator.service.d.ts +0 -4
- package/src/shared/services/generator.service.js +0 -67
- package/src/shared/services/generator.service.ts +0 -13
- package/src/shared/services/index.d.ts +0 -5
- package/src/shared/services/index.js +0 -21
- package/src/shared/services/index.ts +0 -5
- package/src/shared/services/translation.service.d.ts +0 -9
- package/src/shared/services/translation.service.js +0 -109
- package/src/shared/services/translation.service.ts +0 -59
- package/src/shared/services/validator.service.d.ts +0 -3
- package/src/shared/services/validator.service.js +0 -64
- package/src/shared/services/validator.service.ts +0 -10
- package/src/snake-naming.strategy.d.ts +0 -11
- package/src/snake-naming.strategy.js +0 -37
- package/src/snake-naming.strategy.ts +0 -64
- package/src/types.d.ts +0 -9
- package/src/types.js +0 -2
- package/src/types.ts +0 -44
- package/src/validators/file-mimetype.validator.d.ts +0 -13
- package/src/validators/file-mimetype.validator.js +0 -21
- package/src/validators/file-mimetype.validator.ts +0 -34
- package/src/validators/index.d.ts +0 -3
- package/src/validators/index.js +0 -19
- package/src/validators/index.ts +0 -3
- package/src/validators/is-exists.validator.d.ts +0 -18
- package/src/validators/is-exists.validator.js +0 -99
- package/src/validators/is-exists.validator.ts +0 -60
- package/src/validators/is-unique.validator.d.ts +0 -17
- package/src/validators/is-unique.validator.js +0 -131
- package/src/validators/is-unique.validator.ts +0 -93
- package/src/validators/phone-country-code.validator.d.ts +0 -2
- package/src/validators/phone-country-code.validator.js +0 -30
- package/src/validators/phone-country-code.validator.ts +0 -36
- package/src/validators/same-as.validator.d.ts +0 -2
- package/src/validators/same-as.validator.js +0 -25
- package/src/validators/same-as.validator.ts +0 -27
- package/src/validators/skip-empty.validator.d.ts +0 -6
- package/src/validators/skip-empty.validator.js +0 -23
- package/src/validators/skip-empty.validator.ts +0 -25
- package/tsconfig.json +0 -21
- package/tsconfig.lib.json +0 -16
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import 'source-map-support/register';
|
|
2
|
-
|
|
3
|
-
import { compact, map } from 'lodash';
|
|
4
|
-
import type { ObjectLiteral } from 'typeorm';
|
|
5
|
-
import { Brackets, SelectQueryBuilder } from 'typeorm';
|
|
6
|
-
|
|
7
|
-
import type { AbstractEntity } from './common/abstract.entity';
|
|
8
|
-
import type { AbstractDto } from './common/dto/abstract.dto';
|
|
9
|
-
import type { CreateTranslationDto } from './common/dto/create-translation.dto';
|
|
10
|
-
import { PageDto } from './common/dto/page.dto';
|
|
11
|
-
import { PageMetaDto } from './common/dto/page-meta.dto';
|
|
12
|
-
import type { PageOptionsDto } from './common/dto/page-options.dto';
|
|
13
|
-
import type { LanguageCode } from './constants/language-code';
|
|
14
|
-
import type { KeyOfType } from './types';
|
|
15
|
-
import { ContextProvider } from './providers';
|
|
16
|
-
|
|
17
|
-
declare global {
|
|
18
|
-
export type Uuid = string & { _uuidBrand: undefined };
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-redundant-type-constituents
|
|
20
|
-
export type Todo = any & { _todoBrand: undefined };
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
23
|
-
interface Array<T> {
|
|
24
|
-
toDtos<Dto extends AbstractDto>(this: T[], options?: unknown): Dto[];
|
|
25
|
-
|
|
26
|
-
getByLanguage(
|
|
27
|
-
this: CreateTranslationDto[],
|
|
28
|
-
languageCode: LanguageCode,
|
|
29
|
-
): string;
|
|
30
|
-
|
|
31
|
-
toPageDto<Dto extends AbstractDto>(
|
|
32
|
-
this: T[],
|
|
33
|
-
pageMetaDto: PageMetaDto,
|
|
34
|
-
// FIXME make option type visible from entity
|
|
35
|
-
options?: unknown,
|
|
36
|
-
): PageDto<Dto>;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
declare module 'typeorm' {
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
42
|
-
interface SelectQueryBuilder<Entity> {
|
|
43
|
-
searchByString(
|
|
44
|
-
q: string,
|
|
45
|
-
columnNames: string[],
|
|
46
|
-
options?: {
|
|
47
|
-
formStart: boolean;
|
|
48
|
-
},
|
|
49
|
-
): this;
|
|
50
|
-
|
|
51
|
-
withTenant(tenantId?: string | number, tenantFieldName?: string): this;
|
|
52
|
-
|
|
53
|
-
paginate(
|
|
54
|
-
this: SelectQueryBuilder<Entity>,
|
|
55
|
-
pageOptionsDto: PageOptionsDto,
|
|
56
|
-
options?: Partial<{ takeAll: boolean; skipCount: boolean }>,
|
|
57
|
-
): Promise<[Entity[], PageMetaDto]>;
|
|
58
|
-
|
|
59
|
-
leftJoinAndSelect<AliasEntity extends AbstractEntity, A extends string>(
|
|
60
|
-
this: SelectQueryBuilder<Entity>,
|
|
61
|
-
property: `${A}.${Exclude<
|
|
62
|
-
KeyOfType<AliasEntity, AbstractEntity>,
|
|
63
|
-
symbol
|
|
64
|
-
>}`,
|
|
65
|
-
alias: string,
|
|
66
|
-
condition?: string,
|
|
67
|
-
parameters?: ObjectLiteral,
|
|
68
|
-
): this;
|
|
69
|
-
|
|
70
|
-
leftJoin<AliasEntity extends AbstractEntity, A extends string>(
|
|
71
|
-
this: SelectQueryBuilder<Entity>,
|
|
72
|
-
property: `${A}.${Exclude<
|
|
73
|
-
KeyOfType<AliasEntity, AbstractEntity>,
|
|
74
|
-
symbol
|
|
75
|
-
>}`,
|
|
76
|
-
alias: string,
|
|
77
|
-
condition?: string,
|
|
78
|
-
parameters?: ObjectLiteral,
|
|
79
|
-
): this;
|
|
80
|
-
|
|
81
|
-
innerJoinAndSelect<AliasEntity extends AbstractEntity, A extends string>(
|
|
82
|
-
this: SelectQueryBuilder<Entity>,
|
|
83
|
-
property: `${A}.${Exclude<
|
|
84
|
-
KeyOfType<AliasEntity, AbstractEntity>,
|
|
85
|
-
symbol
|
|
86
|
-
>}`,
|
|
87
|
-
alias: string,
|
|
88
|
-
condition?: string,
|
|
89
|
-
parameters?: ObjectLiteral,
|
|
90
|
-
): this;
|
|
91
|
-
|
|
92
|
-
innerJoin<AliasEntity extends AbstractEntity, A extends string>(
|
|
93
|
-
this: SelectQueryBuilder<Entity>,
|
|
94
|
-
property: `${A}.${Exclude<
|
|
95
|
-
KeyOfType<AliasEntity, AbstractEntity>,
|
|
96
|
-
symbol
|
|
97
|
-
>}`,
|
|
98
|
-
alias: string,
|
|
99
|
-
condition?: string,
|
|
100
|
-
parameters?: ObjectLiteral,
|
|
101
|
-
): this;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
Array.prototype.toDtos = function <
|
|
106
|
-
Entity extends AbstractEntity<Dto>,
|
|
107
|
-
Dto extends AbstractDto,
|
|
108
|
-
>(options?: unknown): Dto[] {
|
|
109
|
-
return compact(
|
|
110
|
-
map<Entity, Dto>(this as Entity[], (item) => item.toDto(options as never)),
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
Array.prototype.getByLanguage = function (languageCode: LanguageCode): string {
|
|
115
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
116
|
-
return this.find((translation) => languageCode === translation.languageCode)!
|
|
117
|
-
.text;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
Array.prototype.toPageDto = function (
|
|
121
|
-
pageMetaDto: PageMetaDto,
|
|
122
|
-
options?: unknown,
|
|
123
|
-
) {
|
|
124
|
-
return new PageDto(this.toDtos(options), pageMetaDto);
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
SelectQueryBuilder.prototype.searchByString = function (
|
|
128
|
-
q,
|
|
129
|
-
columnNames,
|
|
130
|
-
options,
|
|
131
|
-
) {
|
|
132
|
-
if (!q) {
|
|
133
|
-
return this;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
this.andWhere(
|
|
137
|
-
new Brackets((qb) => {
|
|
138
|
-
for (const item of columnNames) {
|
|
139
|
-
qb.orWhere(`${item} ILIKE :q`);
|
|
140
|
-
}
|
|
141
|
-
}),
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
if (options?.formStart) {
|
|
145
|
-
this.setParameter('q', `${q}%`);
|
|
146
|
-
} else {
|
|
147
|
-
this.setParameter('q', `%${q}%`);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return this;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
SelectQueryBuilder.prototype.paginate = async function (
|
|
154
|
-
pageOptionsDto: PageOptionsDto,
|
|
155
|
-
options?: Partial<{
|
|
156
|
-
skipCount: boolean;
|
|
157
|
-
takeAll: boolean;
|
|
158
|
-
}>,
|
|
159
|
-
) {
|
|
160
|
-
if (!options?.takeAll) {
|
|
161
|
-
this.skip(pageOptionsDto.skip).take(pageOptionsDto.pageSize);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const entities = await this.getMany();
|
|
165
|
-
|
|
166
|
-
let itemCount = -1;
|
|
167
|
-
|
|
168
|
-
if (!options?.skipCount) {
|
|
169
|
-
itemCount = await this.getCount();
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
const pageMetaDto = new PageMetaDto({
|
|
173
|
-
itemCount,
|
|
174
|
-
pageOptionsDto,
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
return [entities, pageMetaDto];
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
SelectQueryBuilder.prototype.withTenant = function (
|
|
181
|
-
tenantId?: number | string,
|
|
182
|
-
tenantFieldName: string = 'tenantId',
|
|
183
|
-
) {
|
|
184
|
-
if (!tenantId) {
|
|
185
|
-
tenantId = ContextProvider.getTenantId();
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (this.expressionMap.mainAlias.hasMetadata) {
|
|
189
|
-
const entityMetadata = this.expressionMap.mainAlias.metadata;
|
|
190
|
-
const columnName = entityMetadata.columns.find(
|
|
191
|
-
(column: any) => column.propertyName === tenantFieldName,
|
|
192
|
-
)?.databaseName;
|
|
193
|
-
|
|
194
|
-
if (columnName) {
|
|
195
|
-
return this.andWhere(`${this.alias}.${columnName} = :tenantId`, {
|
|
196
|
-
tenantId,
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return this;
|
|
202
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import type { Constructor } from '../types';
|
|
3
|
-
import type { PageDto } from './dto/page.dto';
|
|
4
|
-
/**
|
|
5
|
-
* Fixme: This class designed to use with @nestjs/microservices by extending and creating a new class.
|
|
6
|
-
* TODO: Create Implementation and usage of it
|
|
7
|
-
*/
|
|
8
|
-
export declare class AbstractClientService<ActionType> {
|
|
9
|
-
private client;
|
|
10
|
-
constructor(client: ClientProxy);
|
|
11
|
-
send(pattern: ActionType, data: unknown): Promise<void>;
|
|
12
|
-
send<R>(pattern: ActionType, data: unknown, returnDataOptions: {
|
|
13
|
-
class: Constructor<R>;
|
|
14
|
-
isPage: true;
|
|
15
|
-
}): Promise<PageDto<R>>;
|
|
16
|
-
send<R>(pattern: ActionType, data: unknown, returnDataOptions?: {
|
|
17
|
-
class: Constructor<R>;
|
|
18
|
-
isPage?: false;
|
|
19
|
-
}): Promise<R>;
|
|
20
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AbstractClientService = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const rxjs_1 = require("rxjs");
|
|
15
|
-
const page_type_exception_1 = require("../exceptions/page-type.exception");
|
|
16
|
-
/**
|
|
17
|
-
* Fixme: This class designed to use with @nestjs/microservices by extending and creating a new class.
|
|
18
|
-
* TODO: Create Implementation and usage of it
|
|
19
|
-
*/
|
|
20
|
-
class AbstractClientService {
|
|
21
|
-
constructor(client) {
|
|
22
|
-
this.client = client;
|
|
23
|
-
}
|
|
24
|
-
send(pattern, data, returnDataOptions) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const returnData = yield (0, rxjs_1.firstValueFrom)(this.client.send(pattern, data), {
|
|
27
|
-
defaultValue: undefined,
|
|
28
|
-
});
|
|
29
|
-
if ((returnDataOptions === null || returnDataOptions === void 0 ? void 0 : returnDataOptions.isPage) && (!(returnData === null || returnData === void 0 ? void 0 : returnData.data) || !returnData.meta)) {
|
|
30
|
-
throw new page_type_exception_1.PageTypeException();
|
|
31
|
-
}
|
|
32
|
-
if (!(returnDataOptions === null || returnDataOptions === void 0 ? void 0 : returnDataOptions.class) || returnDataOptions.isPage) {
|
|
33
|
-
return returnData;
|
|
34
|
-
}
|
|
35
|
-
return (0, class_transformer_1.plainToInstance)(returnDataOptions.class, returnData);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.AbstractClientService = AbstractClientService;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { plainToInstance } from 'class-transformer';
|
|
3
|
-
import { firstValueFrom } from 'rxjs';
|
|
4
|
-
|
|
5
|
-
import { PageTypeException } from '../exceptions/page-type.exception';
|
|
6
|
-
import type { Constructor } from '../types';
|
|
7
|
-
import type { PageDto } from './dto/page.dto';
|
|
8
|
-
import type { PageMetaDto } from './dto/page-meta.dto';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Fixme: This class designed to use with @nestjs/microservices by extending and creating a new class.
|
|
12
|
-
* TODO: Create Implementation and usage of it
|
|
13
|
-
*/
|
|
14
|
-
export class AbstractClientService<ActionType> {
|
|
15
|
-
constructor(private client: ClientProxy) {}
|
|
16
|
-
|
|
17
|
-
public async send(pattern: ActionType, data: unknown): Promise<void>;
|
|
18
|
-
|
|
19
|
-
public async send<R>(
|
|
20
|
-
pattern: ActionType,
|
|
21
|
-
data: unknown,
|
|
22
|
-
returnDataOptions: { class: Constructor<R>; isPage: true },
|
|
23
|
-
): Promise<PageDto<R>>;
|
|
24
|
-
|
|
25
|
-
public async send<R>(
|
|
26
|
-
pattern: ActionType,
|
|
27
|
-
data: unknown,
|
|
28
|
-
returnDataOptions?: { class: Constructor<R>; isPage?: false },
|
|
29
|
-
): Promise<R>;
|
|
30
|
-
|
|
31
|
-
public async send<R, I>(
|
|
32
|
-
pattern: ActionType,
|
|
33
|
-
data: I,
|
|
34
|
-
returnDataOptions?: Partial<{
|
|
35
|
-
class?: Constructor<R>;
|
|
36
|
-
isPage?: boolean;
|
|
37
|
-
}>,
|
|
38
|
-
): Promise<R | PageDto<R> | void> {
|
|
39
|
-
const returnData = await firstValueFrom(
|
|
40
|
-
this.client.send<{ data?: R; meta?: PageMetaDto }>(pattern, data),
|
|
41
|
-
{
|
|
42
|
-
defaultValue: undefined,
|
|
43
|
-
},
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
if (returnDataOptions?.isPage && (!returnData?.data || !returnData.meta)) {
|
|
47
|
-
throw new PageTypeException();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (!returnDataOptions?.class || returnDataOptions.isPage) {
|
|
51
|
-
return returnData as R;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return plainToInstance(returnDataOptions.class, returnData);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { AbstractDto, AbstractTranslationDto } from './dto/abstract.dto';
|
|
2
|
-
import { LanguageCode } from '../constants';
|
|
3
|
-
/**
|
|
4
|
-
* Abstract Entity
|
|
5
|
-
*
|
|
6
|
-
* @description This class is an abstract class for all entities.
|
|
7
|
-
* It's experimental and recommended using it only in microservice architecture,
|
|
8
|
-
* otherwise just delete and use your own entity.
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class AbstractBaseEntity<DTO, O> {
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
translations?: AbstractTranslationEntity[];
|
|
14
|
-
toDto(options?: O): DTO;
|
|
15
|
-
}
|
|
16
|
-
export declare class AbstractEntity<DTO extends AbstractDto = AbstractDto, O = never> extends AbstractBaseEntity<DTO, O> {
|
|
17
|
-
id: number;
|
|
18
|
-
}
|
|
19
|
-
export declare class AbstractTranslationEntity<DTO extends AbstractTranslationDto = AbstractTranslationDto, O = never> extends AbstractEntity<DTO, O> {
|
|
20
|
-
languageCode: LanguageCode;
|
|
21
|
-
}
|
|
22
|
-
export declare class AbstractStringPrimaryEntity<DTO extends AbstractDto = AbstractDto, O = never> extends AbstractBaseEntity<DTO, O> {
|
|
23
|
-
id: string;
|
|
24
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
-
var _, done = false;
|
|
8
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
-
var context = {};
|
|
10
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
-
if (kind === "accessor") {
|
|
15
|
-
if (result === void 0) continue;
|
|
16
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
-
}
|
|
21
|
-
else if (_ = accept(result)) {
|
|
22
|
-
if (kind === "field") initializers.unshift(_);
|
|
23
|
-
else descriptor[key] = _;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
-
done = true;
|
|
28
|
-
};
|
|
29
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
-
var useValue = arguments.length > 2;
|
|
31
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
-
}
|
|
34
|
-
return useValue ? value : void 0;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.AbstractStringPrimaryEntity = exports.AbstractTranslationEntity = exports.AbstractEntity = exports.AbstractBaseEntity = void 0;
|
|
38
|
-
const typeorm_1 = require("typeorm");
|
|
39
|
-
const decorators_1 = require("../decorators");
|
|
40
|
-
const constants_1 = require("../constants");
|
|
41
|
-
/**
|
|
42
|
-
* Abstract Entity
|
|
43
|
-
*
|
|
44
|
-
* @description This class is an abstract class for all entities.
|
|
45
|
-
* It's experimental and recommended using it only in microservice architecture,
|
|
46
|
-
* otherwise just delete and use your own entity.
|
|
47
|
-
*/
|
|
48
|
-
let AbstractBaseEntity = (() => {
|
|
49
|
-
var _a;
|
|
50
|
-
let _instanceExtraInitializers = [];
|
|
51
|
-
let _createdAt_decorators;
|
|
52
|
-
let _createdAt_initializers = [];
|
|
53
|
-
let _updatedAt_decorators;
|
|
54
|
-
let _updatedAt_initializers = [];
|
|
55
|
-
return _a = class AbstractBaseEntity {
|
|
56
|
-
constructor() {
|
|
57
|
-
this.createdAt = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _createdAt_initializers, void 0));
|
|
58
|
-
this.updatedAt = __runInitializers(this, _updatedAt_initializers, void 0);
|
|
59
|
-
}
|
|
60
|
-
toDto(options) {
|
|
61
|
-
const dtoClass = Object.getPrototypeOf(this).dtoClass;
|
|
62
|
-
if (!dtoClass) {
|
|
63
|
-
throw new Error(`You need to use @UseDto on class (${this.constructor.name}) be able to call toDto function`);
|
|
64
|
-
}
|
|
65
|
-
return new dtoClass(this, options);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
(() => {
|
|
69
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
70
|
-
_createdAt_decorators = [(0, typeorm_1.CreateDateColumn)({
|
|
71
|
-
type: 'timestamp',
|
|
72
|
-
})];
|
|
73
|
-
_updatedAt_decorators = [(0, typeorm_1.UpdateDateColumn)({
|
|
74
|
-
type: 'timestamp',
|
|
75
|
-
})];
|
|
76
|
-
__esDecorate(null, null, _createdAt_decorators, { kind: "field", name: "createdAt", static: false, private: false, access: { has: obj => "createdAt" in obj, get: obj => obj.createdAt, set: (obj, value) => { obj.createdAt = value; } }, metadata: _metadata }, _createdAt_initializers, _instanceExtraInitializers);
|
|
77
|
-
__esDecorate(null, null, _updatedAt_decorators, { kind: "field", name: "updatedAt", static: false, private: false, access: { has: obj => "updatedAt" in obj, get: obj => obj.updatedAt, set: (obj, value) => { obj.updatedAt = value; } }, metadata: _metadata }, _updatedAt_initializers, _instanceExtraInitializers);
|
|
78
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
79
|
-
})(),
|
|
80
|
-
_a;
|
|
81
|
-
})();
|
|
82
|
-
exports.AbstractBaseEntity = AbstractBaseEntity;
|
|
83
|
-
let AbstractEntity = (() => {
|
|
84
|
-
var _a;
|
|
85
|
-
let _classSuper = AbstractBaseEntity;
|
|
86
|
-
let _instanceExtraInitializers = [];
|
|
87
|
-
let _id_decorators;
|
|
88
|
-
let _id_initializers = [];
|
|
89
|
-
return _a = class AbstractEntity extends _classSuper {
|
|
90
|
-
constructor() {
|
|
91
|
-
super(...arguments);
|
|
92
|
-
this.id = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _id_initializers, void 0));
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
(() => {
|
|
96
|
-
var _b;
|
|
97
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;
|
|
98
|
-
_id_decorators = [(0, typeorm_1.PrimaryGeneratedColumn)('increment', { type: 'bigint' }), (0, decorators_1.NumberFieldOptional)({ swagger: false })];
|
|
99
|
-
__esDecorate(null, null, _id_decorators, { kind: "field", name: "id", static: false, private: false, access: { has: obj => "id" in obj, get: obj => obj.id, set: (obj, value) => { obj.id = value; } }, metadata: _metadata }, _id_initializers, _instanceExtraInitializers);
|
|
100
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
101
|
-
})(),
|
|
102
|
-
_a;
|
|
103
|
-
})();
|
|
104
|
-
exports.AbstractEntity = AbstractEntity;
|
|
105
|
-
let AbstractTranslationEntity = (() => {
|
|
106
|
-
var _a;
|
|
107
|
-
let _classSuper = AbstractEntity;
|
|
108
|
-
let _instanceExtraInitializers = [];
|
|
109
|
-
let _languageCode_decorators;
|
|
110
|
-
let _languageCode_initializers = [];
|
|
111
|
-
return _a = class AbstractTranslationEntity extends _classSuper {
|
|
112
|
-
constructor() {
|
|
113
|
-
super(...arguments);
|
|
114
|
-
this.languageCode = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _languageCode_initializers, void 0));
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
(() => {
|
|
118
|
-
var _b;
|
|
119
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;
|
|
120
|
-
_languageCode_decorators = [(0, typeorm_1.Column)({ type: 'enum', enum: constants_1.LanguageCode })];
|
|
121
|
-
__esDecorate(null, null, _languageCode_decorators, { kind: "field", name: "languageCode", static: false, private: false, access: { has: obj => "languageCode" in obj, get: obj => obj.languageCode, set: (obj, value) => { obj.languageCode = value; } }, metadata: _metadata }, _languageCode_initializers, _instanceExtraInitializers);
|
|
122
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
123
|
-
})(),
|
|
124
|
-
_a;
|
|
125
|
-
})();
|
|
126
|
-
exports.AbstractTranslationEntity = AbstractTranslationEntity;
|
|
127
|
-
let AbstractStringPrimaryEntity = (() => {
|
|
128
|
-
var _a;
|
|
129
|
-
let _classSuper = AbstractBaseEntity;
|
|
130
|
-
let _instanceExtraInitializers = [];
|
|
131
|
-
let _id_decorators;
|
|
132
|
-
let _id_initializers = [];
|
|
133
|
-
return _a = class AbstractStringPrimaryEntity extends _classSuper {
|
|
134
|
-
constructor() {
|
|
135
|
-
super(...arguments);
|
|
136
|
-
this.id = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _id_initializers, void 0));
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
(() => {
|
|
140
|
-
var _b;
|
|
141
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;
|
|
142
|
-
_id_decorators = [(0, typeorm_1.PrimaryGeneratedColumn)('uuid'), (0, decorators_1.StringFieldOptional)({
|
|
143
|
-
maxLength: 36,
|
|
144
|
-
minLength: 2,
|
|
145
|
-
example: '23247899-c237-4ab1-9639-3322029d2e1c',
|
|
146
|
-
})];
|
|
147
|
-
__esDecorate(null, null, _id_decorators, { kind: "field", name: "id", static: false, private: false, access: { has: obj => "id" in obj, get: obj => obj.id, set: (obj, value) => { obj.id = value; } }, metadata: _metadata }, _id_initializers, _instanceExtraInitializers);
|
|
148
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
149
|
-
})(),
|
|
150
|
-
_a;
|
|
151
|
-
})();
|
|
152
|
-
exports.AbstractStringPrimaryEntity = AbstractStringPrimaryEntity;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Column,
|
|
3
|
-
CreateDateColumn,
|
|
4
|
-
PrimaryGeneratedColumn,
|
|
5
|
-
UpdateDateColumn,
|
|
6
|
-
} from 'typeorm';
|
|
7
|
-
|
|
8
|
-
import type { AbstractDto, AbstractTranslationDto } from './dto/abstract.dto';
|
|
9
|
-
import { NumberFieldOptional, StringFieldOptional } from '../decorators';
|
|
10
|
-
import { LanguageCode } from '../constants';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Abstract Entity
|
|
14
|
-
*
|
|
15
|
-
* @description This class is an abstract class for all entities.
|
|
16
|
-
* It's experimental and recommended using it only in microservice architecture,
|
|
17
|
-
* otherwise just delete and use your own entity.
|
|
18
|
-
*/
|
|
19
|
-
export abstract class AbstractBaseEntity<DTO, O> {
|
|
20
|
-
@CreateDateColumn({
|
|
21
|
-
type: 'timestamp',
|
|
22
|
-
})
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
|
|
25
|
-
@UpdateDateColumn({
|
|
26
|
-
type: 'timestamp',
|
|
27
|
-
})
|
|
28
|
-
updatedAt: Date;
|
|
29
|
-
|
|
30
|
-
translations?: AbstractTranslationEntity[];
|
|
31
|
-
|
|
32
|
-
toDto(options?: O): DTO {
|
|
33
|
-
const dtoClass = Object.getPrototypeOf(this).dtoClass;
|
|
34
|
-
|
|
35
|
-
if (!dtoClass) {
|
|
36
|
-
throw new Error(
|
|
37
|
-
`You need to use @UseDto on class (${this.constructor.name}) be able to call toDto function`,
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return new dtoClass(this, options);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export class AbstractEntity<
|
|
46
|
-
DTO extends AbstractDto = AbstractDto,
|
|
47
|
-
O = never,
|
|
48
|
-
> extends AbstractBaseEntity<DTO, O> {
|
|
49
|
-
@PrimaryGeneratedColumn('increment', { type: 'bigint' })
|
|
50
|
-
@NumberFieldOptional({ swagger: false })
|
|
51
|
-
id: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export class AbstractTranslationEntity<
|
|
55
|
-
DTO extends AbstractTranslationDto = AbstractTranslationDto,
|
|
56
|
-
O = never,
|
|
57
|
-
> extends AbstractEntity<DTO, O> {
|
|
58
|
-
@Column({ type: 'enum', enum: LanguageCode })
|
|
59
|
-
languageCode: LanguageCode;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export class AbstractStringPrimaryEntity<
|
|
63
|
-
DTO extends AbstractDto = AbstractDto,
|
|
64
|
-
O = never,
|
|
65
|
-
> extends AbstractBaseEntity<DTO, O> {
|
|
66
|
-
@PrimaryGeneratedColumn('uuid')
|
|
67
|
-
@StringFieldOptional({
|
|
68
|
-
maxLength: 36,
|
|
69
|
-
minLength: 2,
|
|
70
|
-
example: '23247899-c237-4ab1-9639-3322029d2e1c',
|
|
71
|
-
})
|
|
72
|
-
id: string;
|
|
73
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity, AbstractStringPrimaryEntity } from '../abstract.entity';
|
|
2
|
-
export declare class AbstractDto {
|
|
3
|
-
id: number | string;
|
|
4
|
-
createdAt: Date;
|
|
5
|
-
updatedAt: Date;
|
|
6
|
-
translations?: AbstractTranslationDto[];
|
|
7
|
-
constructor(entity: AbstractEntity | AbstractStringPrimaryEntity, options?: {
|
|
8
|
-
excludeFields?: boolean;
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export declare class AbstractTranslationDto extends AbstractDto {
|
|
12
|
-
constructor(entity: AbstractEntity | AbstractStringPrimaryEntity);
|
|
13
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
-
var _, done = false;
|
|
8
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
-
var context = {};
|
|
10
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
-
if (kind === "accessor") {
|
|
15
|
-
if (result === void 0) continue;
|
|
16
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
-
}
|
|
21
|
-
else if (_ = accept(result)) {
|
|
22
|
-
if (kind === "field") initializers.unshift(_);
|
|
23
|
-
else descriptor[key] = _;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
-
done = true;
|
|
28
|
-
};
|
|
29
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
-
var useValue = arguments.length > 2;
|
|
31
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
-
}
|
|
34
|
-
return useValue ? value : void 0;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.AbstractTranslationDto = exports.AbstractDto = void 0;
|
|
38
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
39
|
-
const decorators_1 = require("../../decorators");
|
|
40
|
-
const providers_1 = require("../../providers");
|
|
41
|
-
let AbstractDto = (() => {
|
|
42
|
-
var _a;
|
|
43
|
-
let _instanceExtraInitializers = [];
|
|
44
|
-
let _id_decorators;
|
|
45
|
-
let _id_initializers = [];
|
|
46
|
-
let _createdAt_decorators;
|
|
47
|
-
let _createdAt_initializers = [];
|
|
48
|
-
let _updatedAt_decorators;
|
|
49
|
-
let _updatedAt_initializers = [];
|
|
50
|
-
return _a = class AbstractDto {
|
|
51
|
-
constructor(entity, options) {
|
|
52
|
-
var _b;
|
|
53
|
-
this.id = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _id_initializers, void 0));
|
|
54
|
-
this.createdAt = __runInitializers(this, _createdAt_initializers, void 0);
|
|
55
|
-
this.updatedAt = __runInitializers(this, _updatedAt_initializers, void 0);
|
|
56
|
-
if (!(options === null || options === void 0 ? void 0 : options.excludeFields)) {
|
|
57
|
-
this.id = entity.id;
|
|
58
|
-
this.createdAt = entity.createdAt;
|
|
59
|
-
this.updatedAt = entity.updatedAt;
|
|
60
|
-
}
|
|
61
|
-
const languageCode = providers_1.ContextProvider.getLanguage();
|
|
62
|
-
if (languageCode && entity.translations) {
|
|
63
|
-
const translationEntity = entity.translations.find((titleTranslation) => titleTranslation.languageCode === languageCode);
|
|
64
|
-
const fields = {};
|
|
65
|
-
for (const key of Object.keys(translationEntity)) {
|
|
66
|
-
const metadata = Reflect.getMetadata(decorators_1.DYNAMIC_TRANSLATION_DECORATOR_KEY, this, key);
|
|
67
|
-
if (metadata) {
|
|
68
|
-
fields[key] = translationEntity[key];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
Object.assign(this, fields);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
this.translations = (_b = entity.translations) === null || _b === void 0 ? void 0 : _b.toDtos();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
(() => {
|
|
79
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
80
|
-
_id_decorators = [(0, swagger_1.ApiProperty)()];
|
|
81
|
-
_createdAt_decorators = [(0, swagger_1.ApiProperty)()];
|
|
82
|
-
_updatedAt_decorators = [(0, swagger_1.ApiProperty)()];
|
|
83
|
-
__esDecorate(null, null, _id_decorators, { kind: "field", name: "id", static: false, private: false, access: { has: obj => "id" in obj, get: obj => obj.id, set: (obj, value) => { obj.id = value; } }, metadata: _metadata }, _id_initializers, _instanceExtraInitializers);
|
|
84
|
-
__esDecorate(null, null, _createdAt_decorators, { kind: "field", name: "createdAt", static: false, private: false, access: { has: obj => "createdAt" in obj, get: obj => obj.createdAt, set: (obj, value) => { obj.createdAt = value; } }, metadata: _metadata }, _createdAt_initializers, _instanceExtraInitializers);
|
|
85
|
-
__esDecorate(null, null, _updatedAt_decorators, { kind: "field", name: "updatedAt", static: false, private: false, access: { has: obj => "updatedAt" in obj, get: obj => obj.updatedAt, set: (obj, value) => { obj.updatedAt = value; } }, metadata: _metadata }, _updatedAt_initializers, _instanceExtraInitializers);
|
|
86
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
87
|
-
})(),
|
|
88
|
-
_a;
|
|
89
|
-
})();
|
|
90
|
-
exports.AbstractDto = AbstractDto;
|
|
91
|
-
class AbstractTranslationDto extends AbstractDto {
|
|
92
|
-
constructor(entity) {
|
|
93
|
-
super(entity, { excludeFields: true });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
exports.AbstractTranslationDto = AbstractTranslationDto;
|