eh-commons 0.0.1-testing.99 → 0.0.2-testing.78
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/dist/clients/rest.client.js +23 -10
- package/dist/clients/rest.client.js.map +1 -1
- package/dist/clients/session.client.d.ts +3 -4
- package/dist/clients/session.client.js +4 -4
- package/dist/clients/session.client.js.map +1 -1
- package/dist/decorators/is-map-of-strings.decorator.js +1 -2
- package/dist/decorators/is-map-of-strings.decorator.js.map +1 -1
- package/dist/decorators/is-route.decorator.js +1 -2
- package/dist/decorators/is-route.decorator.js.map +1 -1
- package/dist/factories/exception.factory.js +1 -2
- package/dist/factories/exception.factory.js.map +1 -1
- package/dist/functions/escape-regex.function.js +1 -2
- package/dist/functions/escape-regex.function.js.map +1 -1
- package/dist/functions/generate-uuid.function.js +1 -2
- package/dist/functions/generate-uuid.function.js.map +1 -1
- package/dist/functions/json-size.function.js +1 -2
- package/dist/functions/json-size.function.js.map +1 -1
- package/dist/functions/random-range.function.js +1 -2
- package/dist/functions/random-range.function.js.map +1 -1
- package/dist/functions/session/keyword.function.js +3 -4
- package/dist/functions/session/keyword.function.js.map +1 -1
- package/dist/functions/sort-object.function.js +1 -2
- package/dist/functions/sort-object.function.js.map +1 -1
- package/dist/functions/transliterate-geo-to-latin.js +1 -2
- package/dist/functions/transliterate-geo-to-latin.js.map +1 -1
- package/dist/index.d.ts +21 -33
- package/dist/index.js +14 -51
- package/dist/index.js.map +1 -1
- package/dist/models/commons/interfaces/base.interface.d.ts +2 -2
- package/dist/models/dictionary/embedded/dictionary-setting.embedded.d.ts +12 -0
- package/dist/models/dictionary/embedded/dictionary-setting.embedded.js +30 -0
- package/dist/models/dictionary/embedded/dictionary-setting.embedded.js.map +1 -0
- package/dist/models/dictionary/embedded/dictionary.embedded.d.ts +13 -31
- package/dist/models/dictionary/embedded/dictionary.embedded.js +20 -18
- package/dist/models/dictionary/embedded/dictionary.embedded.js.map +1 -1
- package/dist/models/dictionary/embedded/origin.embedded.d.ts +13 -0
- package/dist/models/dictionary/embedded/origin.embedded.js +39 -0
- package/dist/models/dictionary/embedded/origin.embedded.js.map +1 -0
- package/dist/models/dictionary/enums/resource-type.enum.d.ts +13 -0
- package/dist/models/dictionary/enums/resource-type.enum.js +18 -0
- package/dist/models/dictionary/enums/resource-type.enum.js.map +1 -0
- package/dist/models/dictionary/interfaces/dictionary-embedded.interface.d.ts +8 -32
- package/dist/models/dictionary/interfaces/origin.interface.d.ts +6 -0
- package/dist/models/dictionary/interfaces/origin.interface.js +3 -0
- package/dist/models/dictionary/interfaces/origin.interface.js.map +1 -0
- package/dist/models/dictionary/schemas/dictionary.schema.d.ts +21 -0
- package/dist/models/dictionary/schemas/dictionary.schema.js +59 -0
- package/dist/models/dictionary/schemas/dictionary.schema.js.map +1 -0
- package/dist/models/dtos/dictionary.dto.js +1 -0
- package/dist/models/dtos/dictionary.dto.js.map +1 -0
- package/dist/models/embedded/address.embedded.js +1 -0
- package/dist/models/embedded/address.embedded.js.map +1 -0
- package/dist/models/embedded/author.embedded.js +2 -4
- package/dist/models/embedded/author.embedded.js.map +1 -0
- package/dist/models/embedded/contact.embedded.js +1 -0
- package/dist/models/embedded/contact.embedded.js.map +1 -0
- package/dist/models/embedded/dictionary.embedded.js +2 -4
- package/dist/models/embedded/dictionary.embedded.js.map +1 -0
- package/dist/models/embedded/geo-location.embedded.js +1 -0
- package/dist/models/embedded/geo-location.embedded.js.map +1 -0
- package/dist/models/embedded/i18n.embedded.js +1 -0
- package/dist/models/embedded/i18n.embedded.js.map +1 -0
- package/dist/models/embedded/person.embedded.js +1 -0
- package/dist/models/embedded/person.embedded.js.map +1 -0
- package/dist/models/embedded/record.embedded.js +1 -0
- package/dist/models/embedded/record.embedded.js.map +1 -0
- package/dist/models/embedded/s3/file-log.embedded.d.ts +40 -0
- package/dist/models/embedded/s3/file-log.embedded.js +35 -0
- package/dist/models/embedded/s3/file-log.embedded.js.map +1 -0
- package/dist/models/embedded/s3/file-meta.embedded.d.ts +39 -0
- package/dist/models/embedded/s3/file-meta.embedded.js +37 -0
- package/dist/models/embedded/s3/file-meta.embedded.js.map +1 -0
- package/dist/models/embedded/s3/file-record.embedded.d.ts +37 -0
- package/dist/models/embedded/s3/file-record.embedded.js +29 -0
- package/dist/models/embedded/s3/file-record.embedded.js.map +1 -0
- package/dist/models/embedded/s3/file-state.embedded.d.ts +39 -0
- package/dist/models/embedded/s3/file-state.embedded.js +31 -0
- package/dist/models/embedded/s3/file-state.embedded.js.map +1 -0
- package/dist/models/embedded/s3/file.embedded.d.ts +45 -0
- package/dist/models/embedded/s3/file.embedded.js +49 -0
- package/dist/models/embedded/s3/file.embedded.js.map +1 -0
- package/dist/models/embedded/s3/initiator.embedded.d.ts +38 -0
- package/dist/models/embedded/s3/initiator.embedded.js +30 -0
- package/dist/models/embedded/s3/initiator.embedded.js.map +1 -0
- package/dist/models/embedded/s3/s3.embedded.d.ts +38 -0
- package/dist/models/embedded/s3/s3.embedded.js +33 -0
- package/dist/models/embedded/s3/s3.embedded.js.map +1 -0
- package/dist/models/embedded/user-client.embedded.js +1 -0
- package/dist/models/embedded/user-client.embedded.js.map +1 -0
- package/dist/models/enums/client-type.enum.js +1 -0
- package/dist/models/enums/client-type.enum.js.map +1 -0
- package/dist/models/enums/contact-type.enum.js +1 -0
- package/dist/models/enums/contact-type.enum.js.map +1 -0
- package/dist/models/enums/env.enum.js +1 -0
- package/dist/models/enums/env.enum.js.map +1 -0
- package/dist/models/enums/fail-keyword.enum.js +1 -1
- package/dist/models/enums/fail-keyword.enum.js.map +1 -0
- package/dist/models/enums/file-log-init-type.enum.d.ts +4 -0
- package/dist/models/enums/file-log-init-type.enum.js +9 -0
- package/dist/models/enums/file-log-init-type.enum.js.map +1 -0
- package/dist/models/enums/http-method.enum.js +1 -0
- package/dist/models/enums/http-method.enum.js.map +1 -0
- package/dist/models/enums/permission-include-strategy.enum.js +1 -0
- package/dist/models/enums/permission-include-strategy.enum.js.map +1 -0
- package/dist/models/enums/record-state.enum.js +1 -0
- package/dist/models/enums/record-state.enum.js.map +1 -0
- package/dist/models/enums/s3-file-state.enum.d.ts +7 -0
- package/dist/models/enums/s3-file-state.enum.js +12 -0
- package/dist/models/enums/s3-file-state.enum.js.map +1 -0
- package/dist/models/interfaces/address.interface.js +1 -0
- package/dist/models/interfaces/address.interface.js.map +1 -0
- package/dist/models/interfaces/author.interface.js +1 -0
- package/dist/models/interfaces/author.interface.js.map +1 -0
- package/dist/models/interfaces/client.interface.js +1 -0
- package/dist/models/interfaces/client.interface.js.map +1 -0
- package/dist/models/interfaces/contact.interface.js +1 -0
- package/dist/models/interfaces/contact.interface.js.map +1 -0
- package/dist/models/interfaces/dictionary.interface.js +1 -0
- package/dist/models/interfaces/dictionary.interface.js.map +1 -0
- package/dist/models/interfaces/geo-location.interface.js +1 -0
- package/dist/models/interfaces/geo-location.interface.js.map +1 -0
- package/dist/models/interfaces/i18n.interface.js +1 -0
- package/dist/models/interfaces/i18n.interface.js.map +1 -0
- package/dist/models/interfaces/permission.interface.js +1 -0
- package/dist/models/interfaces/permission.interface.js.map +1 -0
- package/dist/models/interfaces/person.interface.js +1 -0
- package/dist/models/interfaces/person.interface.js.map +1 -0
- package/dist/models/interfaces/record.interface.js +1 -0
- package/dist/models/interfaces/record.interface.js.map +1 -0
- package/dist/models/interfaces/role.interface.js +1 -0
- package/dist/models/interfaces/role.interface.js.map +1 -0
- package/dist/models/interfaces/s3/file-log.interface.d.ts +7 -0
- package/dist/models/interfaces/s3/file-log.interface.js +3 -0
- package/dist/models/interfaces/s3/file-log.interface.js.map +1 -0
- package/dist/models/interfaces/s3/file-meta.interface.d.ts +6 -0
- package/dist/models/interfaces/s3/file-meta.interface.js +3 -0
- package/dist/models/interfaces/s3/file-meta.interface.js.map +1 -0
- package/dist/models/interfaces/s3/file-record.interface.d.ts +4 -0
- package/dist/models/interfaces/s3/file-record.interface.js +3 -0
- package/dist/models/interfaces/s3/file-record.interface.js.map +1 -0
- package/dist/models/interfaces/s3/file-state.interface.d.ts +6 -0
- package/dist/models/interfaces/s3/file-state.interface.js +3 -0
- package/dist/models/interfaces/s3/file-state.interface.js.map +1 -0
- package/dist/models/interfaces/s3/file.interface.d.ts +12 -0
- package/dist/models/interfaces/s3/file.interface.js +3 -0
- package/dist/models/interfaces/s3/file.interface.js.map +1 -0
- package/dist/models/interfaces/s3/initiator.interface.d.ts +5 -0
- package/dist/models/interfaces/s3/initiator.interface.js +3 -0
- package/dist/models/interfaces/s3/initiator.interface.js.map +1 -0
- package/dist/models/interfaces/s3/s3.interface.d.ts +5 -0
- package/dist/models/interfaces/s3/s3.interface.js +3 -0
- package/dist/models/interfaces/s3/s3.interface.js.map +1 -0
- package/dist/models/interfaces/s3-file.interface.d.ts +33 -0
- package/dist/models/interfaces/s3-file.interface.js +2 -0
- package/dist/models/interfaces/session/session.interface.d.ts +2 -2
- package/dist/models/interfaces/user-client.interface.js +1 -0
- package/dist/models/interfaces/user-client.interface.js.map +1 -0
- package/dist/models/interfaces/user.interface.js +1 -0
- package/dist/models/interfaces/user.interface.js.map +1 -0
- package/dist/models/rewards/embedded/origin.embedded.schema.d.ts +6 -27
- package/dist/models/rewards/embedded/rewards.embedded.d.ts +7 -28
- package/dist/models/s3/embedded/file-log.embedded.d.ts +6 -27
- package/dist/models/s3/embedded/file-meta.embedded.d.ts +6 -27
- package/dist/models/s3/embedded/file-record.embedded.d.ts +6 -27
- package/dist/models/s3/embedded/file-state.embedded.d.ts +6 -27
- package/dist/models/s3/embedded/file.embedded.d.ts +6 -27
- package/dist/models/s3/embedded/initiator.embedded.d.ts +6 -27
- package/dist/models/s3/embedded/s3.embedded.d.ts +6 -27
- package/dist/models/s3/interfaces/file.interface.d.ts +0 -25
- package/dist/models/schemas/client.schema.js +1 -0
- package/dist/models/schemas/client.schema.js.map +1 -0
- package/dist/models/schemas/permission.schema.js +1 -0
- package/dist/models/schemas/permission.schema.js.map +1 -0
- package/dist/models/schemas/role.schema.js +1 -0
- package/dist/models/schemas/role.schema.js.map +1 -0
- package/dist/models/schemas/user.schema.js +1 -0
- package/dist/models/schemas/user.schema.js.map +1 -0
- package/dist/models/session/interfaces/session-client-data.interface.d.ts +2 -2
- package/dist/models/um/embedded/client-dictionary.embedded.d.ts +0 -25
- package/dist/models/um/embedded/credentials.embedded.d.ts +0 -25
- package/dist/models/um/embedded/prof-info.embedded.d.ts +2 -27
- package/dist/models/um/embedded/prof-info.embedded.js +1 -1
- package/dist/models/um/embedded/prof-info.embedded.js.map +1 -1
- package/dist/models/um/embedded/user-client.embedded.d.ts +2 -27
- package/dist/models/um/embedded/user-client.embedded.js +1 -1
- package/dist/models/um/embedded/user-client.embedded.js.map +1 -1
- package/dist/models/um/interfaces/client.dictionary.interface.d.ts +0 -25
- package/dist/models/um/interfaces/client.interface.d.ts +0 -25
- package/dist/models/um/interfaces/permission.interface.d.ts +0 -25
- package/dist/models/um/interfaces/role.interface.d.ts +0 -25
- package/dist/models/um/interfaces/user.interface.d.ts +0 -25
- package/dist/models/um/schemas/client.schema.d.ts +3 -28
- package/dist/models/um/schemas/client.schema.js +4 -5
- package/dist/models/um/schemas/client.schema.js.map +1 -1
- package/dist/models/um/schemas/permission.schema.d.ts +0 -25
- package/dist/models/um/schemas/role.schema.d.ts +0 -25
- package/dist/models/um/schemas/user.schema.d.ts +0 -25
- package/dist/models/util/embedded/address.embedded.d.ts +6 -27
- package/dist/models/util/embedded/author.embedded.d.ts +6 -27
- package/dist/models/util/embedded/contact.embedded.d.ts +6 -27
- package/dist/models/util/embedded/geo-location.embedded.d.ts +6 -27
- package/dist/models/util/embedded/i18n.embedded.d.ts +6 -27
- package/dist/models/util/embedded/person.embedded.d.ts +6 -27
- package/dist/models/util/embedded/record.embedded.d.ts +6 -27
- package/dist/models/util/interfaces/author.interface.d.ts +0 -25
- package/dist/models/util/interfaces/person.interface.d.ts +0 -7
- package/dist/models/util/interfaces/person.interface.js +0 -2
- package/dist/models/wrappers/rest-wrapper.class.js +1 -4
- package/dist/models/wrappers/rest-wrapper.class.js.map +1 -1
- package/dist/modules/core/index.d.ts +6 -0
- package/dist/modules/core/index.js +23 -0
- package/dist/modules/core/index.js.map +1 -0
- package/dist/modules/core/models/enums/feed-type.enum.d.ts +6 -0
- package/dist/modules/core/models/enums/feed-type.enum.js +11 -0
- package/dist/modules/core/models/enums/feed-type.enum.js.map +1 -0
- package/dist/modules/core/models/interfaces/feed-thin.interface.d.ts +9 -0
- package/dist/modules/core/models/interfaces/feed-thin.interface.js +3 -0
- package/dist/modules/core/models/interfaces/feed-thin.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/index.d.ts +4 -0
- package/dist/modules/core/models/interfaces/index.js +21 -0
- package/dist/modules/core/models/interfaces/index.js.map +1 -0
- package/dist/modules/core/models/interfaces/range.interface.d.ts +4 -0
- package/dist/modules/core/models/interfaces/range.interface.js +3 -0
- package/dist/modules/core/models/interfaces/range.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/ref.interface.d.ts +6 -0
- package/dist/modules/core/models/interfaces/ref.interface.js +3 -0
- package/dist/modules/core/models/interfaces/ref.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/scope.interface.d.ts +14 -0
- package/dist/modules/core/models/interfaces/scope.interface.js +3 -0
- package/dist/modules/core/models/interfaces/scope.interface.js.map +1 -0
- package/dist/modules/core/models/schemas/index.d.ts +2 -0
- package/dist/modules/core/models/schemas/index.js +19 -0
- package/dist/modules/core/models/schemas/index.js.map +1 -0
- package/dist/modules/core/models/schemas/range.embedded.d.ts +14 -0
- package/dist/modules/core/models/schemas/range.embedded.js +29 -0
- package/dist/modules/core/models/schemas/range.embedded.js.map +1 -0
- package/dist/modules/core/models/schemas/scope.embedded.d.ts +25 -0
- package/dist/modules/core/models/schemas/scope.embedded.js +63 -0
- package/dist/modules/core/models/schemas/scope.embedded.js.map +1 -0
- package/dist/modules/dictionary/index.d.ts +5 -0
- package/dist/modules/dictionary/index.js +22 -0
- package/dist/modules/dictionary/index.js.map +1 -0
- package/dist/modules/dictionary/models/dtos/dictionary-list.dto.d.ts +10 -0
- package/dist/modules/dictionary/models/dtos/dictionary-list.dto.js +59 -0
- package/dist/modules/dictionary/models/dtos/dictionary-list.dto.js.map +1 -0
- package/dist/modules/dictionary/models/interfaces/index.d.ts +27 -0
- package/dist/modules/dictionary/models/interfaces/index.js +3 -0
- package/dist/modules/dictionary/models/interfaces/index.js.map +1 -0
- package/dist/modules/dictionary/models/schemas/index.d.ts +21 -0
- package/dist/modules/dictionary/models/schemas/index.js +47 -0
- package/dist/modules/dictionary/models/schemas/index.js.map +1 -0
- package/dist/modules/dictionary/services/dictionary.service.d.ts +13 -37
- package/dist/modules/dictionary/services/dictionary.service.js +45 -81
- package/dist/modules/dictionary/services/dictionary.service.js.map +1 -1
- package/dist/modules/dmm/dmm.module.d.ts +2 -0
- package/dist/modules/dmm/dmm.module.js +26 -0
- package/dist/modules/dmm/dmm.module.js.map +1 -0
- package/dist/modules/dmm/index.d.ts +4 -0
- package/dist/modules/dmm/index.js +21 -0
- package/dist/modules/dmm/index.js.map +1 -0
- package/dist/modules/dmm/models/interfaces/index.d.ts +12 -0
- package/dist/modules/dmm/models/interfaces/index.js +3 -0
- package/dist/modules/dmm/models/interfaces/index.js.map +1 -0
- package/dist/modules/dmm/models/schemas/index.d.ts +23 -0
- package/dist/modules/dmm/models/schemas/index.js +58 -0
- package/dist/modules/dmm/models/schemas/index.js.map +1 -0
- package/dist/modules/dmm/services/dmm.service.d.ts +26 -0
- package/dist/modules/dmm/services/dmm.service.js +40 -0
- package/dist/modules/dmm/services/dmm.service.js.map +1 -0
- package/dist/modules/emis/emis.module.d.ts +2 -0
- package/dist/modules/emis/emis.module.js +24 -0
- package/dist/modules/emis/emis.module.js.map +1 -0
- package/dist/modules/emis/index.d.ts +3 -0
- package/dist/modules/emis/index.js +20 -0
- package/dist/modules/emis/index.js.map +1 -0
- package/dist/modules/emis/models/interfaces/emis.interface.d.ts +34 -0
- package/dist/modules/emis/models/interfaces/emis.interface.js +3 -0
- package/dist/modules/emis/models/interfaces/emis.interface.js.map +1 -0
- package/dist/modules/emis/services/emis.service.d.ts +8 -0
- package/dist/modules/emis/services/emis.service.js +37 -0
- package/dist/modules/emis/services/emis.service.js.map +1 -0
- package/dist/modules/iam/iam.module.d.ts +2 -0
- package/dist/modules/iam/iam.module.js +24 -0
- package/dist/modules/iam/iam.module.js.map +1 -0
- package/dist/modules/iam/index.d.ts +5 -0
- package/dist/modules/iam/index.js +22 -0
- package/dist/modules/iam/index.js.map +1 -0
- package/dist/modules/iam/models/enums/index.d.ts +6 -0
- package/dist/modules/iam/models/enums/index.js +11 -0
- package/dist/modules/iam/models/enums/index.js.map +1 -0
- package/dist/modules/iam/models/interfaces/index.d.ts +101 -0
- package/dist/modules/iam/models/interfaces/index.js +3 -0
- package/dist/modules/iam/models/interfaces/index.js.map +1 -0
- package/dist/modules/iam/models/schemas/embedded/person.embedded.d.ts +19 -0
- package/dist/modules/iam/models/schemas/embedded/person.embedded.js +41 -0
- package/dist/modules/iam/models/schemas/embedded/person.embedded.js.map +1 -0
- package/dist/modules/iam/models/schemas/embedded/user-person-info.embedded.d.ts +17 -0
- package/dist/modules/iam/models/schemas/embedded/user-person-info.embedded.js +31 -0
- package/dist/modules/iam/models/schemas/embedded/user-person-info.embedded.js.map +1 -0
- package/dist/modules/iam/models/schemas/index.d.ts +2 -0
- package/dist/modules/iam/models/schemas/index.js +19 -0
- package/dist/modules/iam/models/schemas/index.js.map +1 -0
- package/dist/modules/iam/services/iam.service.d.ts +9 -0
- package/dist/modules/iam/services/iam.service.js +40 -0
- package/dist/modules/iam/services/iam.service.js.map +1 -0
- package/dist/modules/otp/index.d.ts +3 -0
- package/dist/modules/otp/index.js +20 -0
- package/dist/modules/otp/index.js.map +1 -0
- package/dist/modules/otp/models/interfaces/index.d.ts +18 -0
- package/dist/modules/otp/models/interfaces/index.js +3 -0
- package/dist/modules/otp/models/interfaces/index.js.map +1 -0
- package/dist/modules/otp/otp.module.d.ts +2 -0
- package/dist/modules/otp/otp.module.js +24 -0
- package/dist/modules/otp/otp.module.js.map +1 -0
- package/dist/modules/otp/services/otp.service.d.ts +11 -0
- package/dist/modules/otp/services/otp.service.js +48 -0
- package/dist/modules/otp/services/otp.service.js.map +1 -0
- package/dist/modules/session/functions/index.d.ts +5 -0
- package/dist/modules/session/functions/index.js +28 -0
- package/dist/modules/session/functions/index.js.map +1 -0
- package/dist/modules/session/guards/permission.guard.d.ts +15 -0
- package/dist/modules/session/guards/permission.guard.js +118 -0
- package/dist/modules/session/guards/permission.guard.js.map +1 -0
- package/dist/modules/session/guards/user.guard.d.ts +12 -0
- package/dist/modules/session/guards/user.guard.js +88 -0
- package/dist/modules/session/guards/user.guard.js.map +1 -0
- package/dist/modules/session/index.d.ts +9 -0
- package/dist/modules/session/index.js +26 -0
- package/dist/modules/session/index.js.map +1 -0
- package/dist/modules/session/models/classes/index.d.ts +3 -0
- package/dist/modules/session/models/classes/index.js +7 -0
- package/dist/modules/session/models/classes/index.js.map +1 -0
- package/dist/modules/session/models/interfaces/index.d.ts +54 -0
- package/dist/modules/session/models/interfaces/index.js +7 -0
- package/dist/modules/session/models/interfaces/index.js.map +1 -0
- package/dist/modules/session/reflectors/permission.reflector.d.ts +2 -0
- package/dist/modules/session/reflectors/permission.reflector.js +6 -0
- package/dist/modules/session/reflectors/permission.reflector.js.map +1 -0
- package/dist/modules/session/services/redis.service.d.ts +16 -0
- package/dist/modules/session/services/redis.service.js +94 -0
- package/dist/modules/session/services/redis.service.js.map +1 -0
- package/dist/modules/session/services/session-v1.service.d.ts +12 -0
- package/dist/modules/session/services/session-v1.service.js +36 -0
- package/dist/modules/session/services/session-v1.service.js.map +1 -0
- package/dist/modules/session/services/session-v2.service.d.ts +17 -0
- package/dist/modules/session/services/session-v2.service.js +102 -0
- package/dist/modules/session/services/session-v2.service.js.map +1 -0
- package/dist/modules/session/session.module.d.ts +2 -0
- package/dist/modules/session/session.module.js +27 -0
- package/dist/modules/session/session.module.js.map +1 -0
- package/dist/modules/storage/index.d.ts +4 -0
- package/dist/modules/storage/index.js +21 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/models/inerfaces/index.d.ts +7 -0
- package/dist/modules/storage/models/inerfaces/index.js +3 -0
- package/dist/modules/storage/models/inerfaces/index.js.map +1 -0
- package/dist/modules/storage/models/schemas/index.d.ts +36 -0
- package/dist/modules/storage/models/schemas/index.js +62 -0
- package/dist/modules/storage/models/schemas/index.js.map +1 -0
- package/dist/modules/storage/services/storage.service.d.ts +9 -0
- package/dist/modules/storage/services/storage.service.js +35 -0
- package/dist/modules/storage/services/storage.service.js.map +1 -0
- package/dist/modules/storage/storage.module.d.ts +2 -0
- package/dist/modules/storage/storage.module.js +24 -0
- package/dist/modules/storage/storage.module.js.map +1 -0
- package/dist/pipes/index.d.ts +13 -0
- package/dist/pipes/index.js +64 -0
- package/dist/pipes/index.js.map +1 -0
- package/dist/pipes/validate-mongo-id.pipe.js.map +1 -1
- package/dist/services/app-logger.service.js +1 -2
- package/dist/services/app-logger.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -18
- package/src/clients/rest.client.ts +87 -70
- package/src/clients/session.client.ts +10 -20
- package/src/index.ts +36 -163
- package/src/models/commons/interfaces/base.interface.ts +2 -2
- package/src/models/interfaces/session/session.interface.ts +6 -6
- package/src/models/session/interfaces/session-client-data.interface.ts +2 -2
- package/src/models/util/interfaces/person.interface.ts +1 -7
- package/src/models/wrappers/rest-wrapper.class.ts +1 -4
- package/src/modules/core/index.ts +6 -0
- package/src/modules/core/models/enums/feed-type.enum.ts +6 -0
- package/src/modules/core/models/interfaces/feed-thin.interface.ts +10 -0
- package/src/modules/core/models/interfaces/index.ts +4 -0
- package/src/modules/core/models/interfaces/range.interface.ts +4 -0
- package/src/modules/core/models/interfaces/ref.interface.ts +7 -0
- package/src/modules/core/models/interfaces/scope.interface.ts +15 -0
- package/src/modules/core/models/schemas/index.ts +2 -0
- package/src/modules/core/models/schemas/range.embedded.ts +13 -0
- package/src/modules/core/models/schemas/scope.embedded.ts +41 -0
- package/src/modules/dictionary/index.ts +5 -0
- package/src/modules/dictionary/{dtos → models/dtos}/dictionary-list.dto.ts +9 -16
- package/src/modules/dictionary/models/interfaces/index.ts +31 -0
- package/src/{models/dictionary/embedded/dictionary.embedded.ts → modules/dictionary/models/schemas/index.ts} +9 -10
- package/src/modules/dictionary/services/dictionary.service.ts +56 -112
- package/src/modules/dmm/dmm.module.ts +13 -0
- package/src/modules/dmm/index.ts +4 -0
- package/src/modules/dmm/models/interfaces/index.ts +13 -0
- package/src/modules/dmm/models/schemas/index.ts +36 -0
- package/src/modules/dmm/services/dmm.service.ts +33 -0
- package/src/modules/emis/emis.module.ts +11 -0
- package/src/modules/emis/index.ts +3 -0
- package/src/modules/emis/models/interfaces/emis.interface.ts +37 -0
- package/src/modules/emis/services/emis.service.ts +30 -0
- package/src/modules/iam/iam.module.ts +11 -0
- package/src/modules/iam/index.ts +5 -0
- package/src/modules/iam/models/enums/index.ts +6 -0
- package/src/modules/iam/models/interfaces/index.ts +114 -0
- package/src/{models/util → modules/iam/models/schemas}/embedded/person.embedded.ts +5 -1
- package/src/modules/iam/models/schemas/embedded/user-person-info.embedded.ts +16 -0
- package/src/modules/iam/models/schemas/index.ts +2 -0
- package/src/modules/iam/services/iam.service.ts +35 -0
- package/src/modules/otp/index.ts +3 -0
- package/src/modules/otp/models/interfaces/index.ts +20 -0
- package/src/modules/otp/otp.module.ts +11 -0
- package/src/modules/otp/services/otp.service.ts +48 -0
- package/src/modules/session/functions/index.ts +24 -0
- package/src/modules/session/guards/permission.guard.ts +122 -0
- package/src/modules/session/guards/user.guard.ts +88 -0
- package/src/modules/session/index.ts +9 -0
- package/src/modules/session/models/classes/index.ts +3 -0
- package/src/modules/session/models/interfaces/index.ts +57 -0
- package/src/modules/{cache/reflector → session/reflectors}/permission.reflector.ts +1 -1
- package/src/modules/{cache → session}/services/redis.service.ts +23 -20
- package/src/modules/session/services/session-v1.service.ts +30 -0
- package/src/modules/session/services/session-v2.service.ts +113 -0
- package/src/modules/session/session.module.ts +14 -0
- package/src/modules/storage/index.ts +4 -0
- package/src/modules/storage/models/inerfaces/index.ts +8 -0
- package/src/modules/storage/models/schemas/index.ts +42 -0
- package/src/modules/storage/services/storage.service.ts +29 -0
- package/src/modules/storage/storage.module.ts +11 -0
- package/src/pipes/index.ts +49 -0
- package/src/pipes/validate-mongo-id.pipe.ts +1 -3
- package/pack/eh-commons-0.0.1-testing.98.tgz +0 -0
- package/src/functions/session/keyword.function.ts +0 -14
- package/src/models/dictionary/interfaces/dictionary-embedded.interface.ts +0 -11
- package/src/models/dictionary/interfaces/dictionary-event.interface.ts +0 -6
- package/src/models/dictionary/interfaces/dictionary-setting.interface.ts +0 -5
- package/src/models/dictionary/interfaces/dictionary.interface.ts +0 -13
- package/src/models/session/interfaces/session-user-data.interface.ts +0 -16
- package/src/models/um/enums/client-type.enum.ts +0 -6
- package/src/models/um/enums/permission-include-strategy.enum.ts +0 -5
- package/src/models/um/interfaces/client.interface.ts +0 -23
- package/src/models/um/interfaces/credentials.interface.ts +0 -4
- package/src/models/um/interfaces/permission.interface.ts +0 -11
- package/src/models/um/interfaces/prof-info.interface.ts +0 -5
- package/src/models/um/interfaces/role.interface.ts +0 -14
- package/src/models/um/interfaces/user-client.interface.ts +0 -10
- package/src/models/um/interfaces/user.interface.ts +0 -20
- package/src/models/wrappers/permission-guard-config.wrapper.ts +0 -5
- package/src/modules/cache/cache.module.ts +0 -13
- package/src/modules/cache/guards/permission.guard.ts +0 -109
- package/src/modules/cache/services/session.service.ts +0 -23
|
@@ -18,8 +18,13 @@ class RestClient {
|
|
|
18
18
|
}
|
|
19
19
|
async get(route, sessionToken) {
|
|
20
20
|
try {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const config = this._buildRequestConfig(sessionToken);
|
|
22
|
+
if (config) {
|
|
23
|
+
const response = await this._instance.get(route, config);
|
|
24
|
+
return response.data.result.data;
|
|
25
|
+
}
|
|
26
|
+
const response = await this._instance.get(route);
|
|
27
|
+
return response.data.result.data;
|
|
23
28
|
}
|
|
24
29
|
catch (e) {
|
|
25
30
|
this._handleError(e);
|
|
@@ -27,8 +32,13 @@ class RestClient {
|
|
|
27
32
|
}
|
|
28
33
|
async post(route, requestBody, sessionToken) {
|
|
29
34
|
try {
|
|
30
|
-
const
|
|
31
|
-
|
|
35
|
+
const config = this._buildRequestConfig(sessionToken);
|
|
36
|
+
if (config) {
|
|
37
|
+
const response = await this._instance.post(route, requestBody, config);
|
|
38
|
+
return response.data.result.data;
|
|
39
|
+
}
|
|
40
|
+
const response = await this._instance.post(route, requestBody);
|
|
41
|
+
return response.data.result.data;
|
|
32
42
|
}
|
|
33
43
|
catch (e) {
|
|
34
44
|
this._handleError(e);
|
|
@@ -37,7 +47,7 @@ class RestClient {
|
|
|
37
47
|
async put(route, requestBody, sessionToken) {
|
|
38
48
|
try {
|
|
39
49
|
const response = await this._instance.put(route, requestBody, this._buildRequestConfig(sessionToken));
|
|
40
|
-
return response.data.result;
|
|
50
|
+
return response.data.result.data;
|
|
41
51
|
}
|
|
42
52
|
catch (e) {
|
|
43
53
|
this._handleError(e);
|
|
@@ -46,7 +56,7 @@ class RestClient {
|
|
|
46
56
|
async delete(route, sessionToken) {
|
|
47
57
|
try {
|
|
48
58
|
const response = await this._instance.delete(route, this._buildRequestConfig(sessionToken));
|
|
49
|
-
return response.data.result;
|
|
59
|
+
return response.data.result.data;
|
|
50
60
|
}
|
|
51
61
|
catch (e) {
|
|
52
62
|
this._handleError(e);
|
|
@@ -55,7 +65,7 @@ class RestClient {
|
|
|
55
65
|
async patch(route, requestBody, sessionToken) {
|
|
56
66
|
try {
|
|
57
67
|
const response = await this._instance.patch(route, requestBody, this._buildRequestConfig(sessionToken));
|
|
58
|
-
return response.data.result;
|
|
68
|
+
return response.data.result.data;
|
|
59
69
|
}
|
|
60
70
|
catch (e) {
|
|
61
71
|
this._handleError(e);
|
|
@@ -65,14 +75,17 @@ class RestClient {
|
|
|
65
75
|
if (!sessionToken)
|
|
66
76
|
return undefined;
|
|
67
77
|
return {
|
|
68
|
-
headers: { '
|
|
78
|
+
headers: { 'authorization': sessionToken },
|
|
69
79
|
};
|
|
70
80
|
}
|
|
71
81
|
_handleError(e) {
|
|
72
|
-
var _a, _b;
|
|
82
|
+
var _a, _b, _c;
|
|
73
83
|
if (e.response) {
|
|
74
84
|
if (((_b = (_a = e.response.data) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b.length) && e.response.data.errors[0].keyword) {
|
|
75
|
-
throw new rest_wrapper_class_1.RESTError(e.response.data.errors[0].keyword,
|
|
85
|
+
throw new rest_wrapper_class_1.RESTError(e.response.data.errors[0].keyword, null, common_1.HttpStatus.BAD_REQUEST);
|
|
86
|
+
}
|
|
87
|
+
else if (((_c = e.response.data) === null || _c === void 0 ? void 0 : _c.errors) && e.response.data.errors.keyword) {
|
|
88
|
+
throw new rest_wrapper_class_1.RESTError(e.response.data.errors.keyword, null, common_1.HttpStatus.BAD_REQUEST);
|
|
76
89
|
}
|
|
77
90
|
throw new rest_wrapper_class_1.RESTError('internal_error', e, common_1.HttpStatus.INTERNAL_SERVER_ERROR);
|
|
78
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.client.js","sourceRoot":"","sources":["../../src/clients/rest.client.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,iCAAiE;AACjE,8EAAkE;AASlE,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"rest.client.js","sourceRoot":"","sources":["../../src/clients/rest.client.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,iCAAiE;AACjE,8EAAkE;AASlE,MAAa,UAAU;IAIrB,YAAY,MAAkB;QAC5B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC;QAE3C,MAAM,WAAW,GAA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IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,IAAI,8BAAS,CAAC,uBAAuB,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,mBAAU,CAAC,mBAAmB,CAAC,CAAC;QAC9F,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,8BAAS,CAAC,cAAc,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,mBAAU,CAAC,mBAAmB,CAAC,CAAC;QACrF,CAAC;IACH,CAAC;CACF;AApGD,gCAoGC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as IORedis from 'ioredis';
|
|
2
|
-
import { ISessionUserData } from '../models/session/interfaces/session-user-data.interface';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { ISessionClientData } from '../models/session/interfaces/session-client-data.interface';
|
|
5
|
-
import { IClient } from '../
|
|
6
|
-
import {
|
|
4
|
+
import { IClient, IPermission } from '../modules/iam';
|
|
5
|
+
import { IUserSessionData } from '../modules/session/models/interfaces';
|
|
7
6
|
export declare class SessionClient {
|
|
8
7
|
private redisClient;
|
|
9
8
|
constructor(client: IORedis.Redis | IORedis.Cluster);
|
|
10
9
|
private get;
|
|
11
10
|
private set;
|
|
12
11
|
private delete;
|
|
13
|
-
getUserData(token: string): Observable<
|
|
12
|
+
getUserData(token: string): Observable<IUserSessionData>;
|
|
14
13
|
getUserClients(userId: string): Observable<Map<string, ISessionClientData>>;
|
|
15
14
|
getUserClientPermissions(userId: string, clientId: string): Observable<{
|
|
16
15
|
client: IClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SessionClient = void 0;
|
|
4
|
-
const keyword_function_1 = require("../functions/session/keyword.function");
|
|
5
4
|
const rxjs_1 = require("rxjs");
|
|
5
|
+
const session_1 = require("../modules/session");
|
|
6
6
|
class SessionClient {
|
|
7
7
|
constructor(client) {
|
|
8
8
|
this.redisClient = client;
|
|
@@ -17,21 +17,21 @@ class SessionClient {
|
|
|
17
17
|
return (0, rxjs_1.from)(this.redisClient.del(key));
|
|
18
18
|
}
|
|
19
19
|
getUserData(token) {
|
|
20
|
-
const key = (0,
|
|
20
|
+
const key = (0, session_1.generateSessionKeyword)(token);
|
|
21
21
|
const userDataString$ = this.get(key);
|
|
22
22
|
return userDataString$.pipe((0, rxjs_1.map)((userDataString) => {
|
|
23
23
|
return this.parseUser(userDataString);
|
|
24
24
|
}));
|
|
25
25
|
}
|
|
26
26
|
getUserClients(userId) {
|
|
27
|
-
const key = (0,
|
|
27
|
+
const key = (0, session_1.generateUserClientsKeyword)(userId);
|
|
28
28
|
const clientDataString$ = this.get(key);
|
|
29
29
|
return clientDataString$.pipe((0, rxjs_1.map)((clientDataString) => {
|
|
30
30
|
return this.parseClient(clientDataString);
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
33
|
getUserClientPermissions(userId, clientId) {
|
|
34
|
-
const key = (0,
|
|
34
|
+
const key = (0, session_1.generateUserClientPermissionKeyword)(userId, clientId);
|
|
35
35
|
const userClientPermissionsString$ = this.get(key);
|
|
36
36
|
return userClientPermissionsString$.pipe((0, rxjs_1.map)((userClientPermissionsString) => {
|
|
37
37
|
return this.parsePermissions(userClientPermissionsString);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.client.js","sourceRoot":"","sources":["../../src/clients/session.client.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"session.client.js","sourceRoot":"","sources":["../../src/clients/session.client.ts"],"names":[],"mappings":";;;AACA,+BAA6C;AAI7C,gDAA6H;AAE7H,MAAa,aAAa;IAGxB,YAAY,MAAuC;QACjD,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;IAEO,GAAG,CAAC,GAAW;QACrB,OAAO,IAAA,WAAI,EAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,C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ClC,OAAO,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;QAC5D,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,UAAkB;QAClC,IAAI,CAAC;YACH,MAAM,UAAU,GAAqB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAC5D,OAAO,UAAU,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEO,WAAW,CAAC,UAAkB;QACpC,IAAI,CAAC;YACH,MAAM,YAAY,GAAoC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAC7E,OAAO,YAAY,CAAC;QACtB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEO,gBAAgB,CAAC,UAAkB;QACzC,IAAI,CAAC;YACH,MAAM,iBAAiB,GAAoD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAClG,OAAO,iBAAiB,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEO,KAAK,CAAI,UAAkB;QACjC,IAAI,CAAC;YACH,MAAM,MAAM,GAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACzC,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF;AApFD,sCAoFC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IsMapOfStrings =
|
|
3
|
+
exports.IsMapOfStrings = IsMapOfStrings;
|
|
4
4
|
const class_validator_1 = require("class-validator");
|
|
5
5
|
const is_map_of_strings_constraint_1 = require("../constraints/is-map-of-strings.constraint");
|
|
6
6
|
function IsMapOfStrings() {
|
|
@@ -10,5 +10,4 @@ function IsMapOfStrings() {
|
|
|
10
10
|
})(object, propertyName);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
exports.IsMapOfStrings = IsMapOfStrings;
|
|
14
13
|
//# sourceMappingURL=is-map-of-strings.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-map-of-strings.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-map-of-strings.decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-map-of-strings.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-map-of-strings.decorator.ts"],"names":[],"mappings":";;AAGA,wCAMC;AATD,qDAA2C;AAC3C,8FAAuF;AAEvF,SAAgB,cAAc;IAC5B,OAAO,UAAU,MAA2B,EAAE,YAAoB;QAChE,IAAA,0BAAQ,EAAC,uDAAwB,EAAE;YACjC,OAAO,EAAE,GAAG,YAAY,2CAA2C;SACpE,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IsRoute =
|
|
3
|
+
exports.IsRoute = IsRoute;
|
|
4
4
|
const class_validator_1 = require("class-validator");
|
|
5
5
|
const is_route_constraint_1 = require("../constraints/is-route.constraint");
|
|
6
6
|
function IsRoute() {
|
|
@@ -8,5 +8,4 @@ function IsRoute() {
|
|
|
8
8
|
(0, class_validator_1.Validate)(is_route_constraint_1.IsRouteConstraint, { message: `${propertyName} must be a valid route string.` })(object, propertyName);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
exports.IsRoute = IsRoute;
|
|
12
11
|
//# sourceMappingURL=is-route.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-route.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-route.decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-route.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-route.decorator.ts"],"names":[],"mappings":";;AAGA,0BAIC;AAPD,qDAA2C;AAC3C,4EAAuE;AAEvE,SAAgB,OAAO;IACrB,OAAO,UAAU,MAA2B,EAAE,YAAoB;QAChE,IAAA,0BAAQ,EAAC,uCAAiB,EAAE,EAAE,OAAO,EAAE,GAAG,YAAY,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validationExceptionFactory =
|
|
3
|
+
exports.validationExceptionFactory = validationExceptionFactory;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const custom_exception_1 = require("../exceptions/custom.exception");
|
|
6
6
|
const rest_wrapper_class_1 = require("../models/wrappers/rest-wrapper.class");
|
|
@@ -11,5 +11,4 @@ function validationExceptionFactory(_errors) {
|
|
|
11
11
|
});
|
|
12
12
|
return new custom_exception_1.HandledException([error], common_1.HttpStatus.UNPROCESSABLE_ENTITY);
|
|
13
13
|
}
|
|
14
|
-
exports.validationExceptionFactory = validationExceptionFactory;
|
|
15
14
|
//# sourceMappingURL=exception.factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exception.factory.js","sourceRoot":"","sources":["../../src/factories/exception.factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exception.factory.js","sourceRoot":"","sources":["../../src/factories/exception.factory.ts"],"names":[],"mappings":";;AAaS,gEAA0B;AAbnC,2CAA4C;AAE5C,qEAAkE;AAClE,8EAAkE;AAElE,SAAS,0BAA0B,CAAC,OAA0B;IAC5D,MAAM,KAAK,GAAG,IAAI,8BAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAM,EAAE,EAAE;QACzB,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,mCAAgB,CAAC,CAAC,KAAK,CAAC,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.escapeRegex =
|
|
3
|
+
exports.escapeRegex = escapeRegex;
|
|
4
4
|
function escapeRegex(text) {
|
|
5
5
|
return text.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
|
|
6
6
|
}
|
|
7
|
-
exports.escapeRegex = escapeRegex;
|
|
8
7
|
//# sourceMappingURL=escape-regex.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escape-regex.function.js","sourceRoot":"","sources":["../../src/functions/escape-regex.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"escape-regex.function.js","sourceRoot":"","sources":["../../src/functions/escape-regex.function.ts"],"names":[],"mappings":";;AAAA,kCAIC;AAJD,SAAgB,WAAW,CAAC,IAAY;IAGtC,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateUUID =
|
|
3
|
+
exports.generateUUID = generateUUID;
|
|
4
4
|
function generateUUID() {
|
|
5
5
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
6
6
|
const r = (Math.random() * 16) | 0;
|
|
@@ -8,5 +8,4 @@ function generateUUID() {
|
|
|
8
8
|
return v.toString(16);
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
exports.generateUUID = generateUUID;
|
|
12
11
|
//# sourceMappingURL=generate-uuid.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-uuid.function.js","sourceRoot":"","sources":["../../src/functions/generate-uuid.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-uuid.function.js","sourceRoot":"","sources":["../../src/functions/generate-uuid.function.ts"],"names":[],"mappings":";;AAAA,oCAMG;AANH,SAAgB,YAAY;IACxB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC;QACxE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QAC1C,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sizeOfJson =
|
|
3
|
+
exports.sizeOfJson = sizeOfJson;
|
|
4
4
|
function sizeOfJson(object) {
|
|
5
5
|
const jsonString = JSON.stringify(object);
|
|
6
6
|
const bytes = new TextEncoder().encode(jsonString).length;
|
|
7
7
|
return bytes;
|
|
8
8
|
}
|
|
9
|
-
exports.sizeOfJson = sizeOfJson;
|
|
10
9
|
//# sourceMappingURL=json-size.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-size.function.js","sourceRoot":"","sources":["../../src/functions/json-size.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"json-size.function.js","sourceRoot":"","sources":["../../src/functions/json-size.function.ts"],"names":[],"mappings":";;AAAA,gCAQC;AARD,SAAgB,UAAU,CAAC,MAAW;IAEpC,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAG1C,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IAE1D,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRandomNumberFromRange =
|
|
3
|
+
exports.getRandomNumberFromRange = getRandomNumberFromRange;
|
|
4
4
|
function getRandomNumberFromRange(min, max) {
|
|
5
5
|
if (min >= max) {
|
|
6
6
|
throw new Error("The minimum value must be less than the maximum value");
|
|
7
7
|
}
|
|
8
8
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
9
9
|
}
|
|
10
|
-
exports.getRandomNumberFromRange = getRandomNumberFromRange;
|
|
11
10
|
//# sourceMappingURL=random-range.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random-range.function.js","sourceRoot":"","sources":["../../src/functions/random-range.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"random-range.function.js","sourceRoot":"","sources":["../../src/functions/random-range.function.ts"],"names":[],"mappings":";;AAAA,4DAKC;AALD,SAAgB,wBAAwB,CAAC,GAAW,EAAE,GAAW;IAC7D,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAC7D,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.generateSessionKeyword = generateSessionKeyword;
|
|
4
|
+
exports.generateUserClientKeyword = generateUserClientKeyword;
|
|
5
|
+
exports.generateUserClientPermissionKeyword = generateUserClientPermissionKeyword;
|
|
4
6
|
function generateSessionKeyword(token) {
|
|
5
7
|
return `sessions::${token}`;
|
|
6
8
|
}
|
|
7
|
-
exports.generateSessionKeyword = generateSessionKeyword;
|
|
8
9
|
function generateUserClientKeyword(userId) {
|
|
9
10
|
return `user-clients::${userId}`;
|
|
10
11
|
}
|
|
11
|
-
exports.generateUserClientKeyword = generateUserClientKeyword;
|
|
12
12
|
function generateUserClientPermissionKeyword(userId, clientId) {
|
|
13
13
|
return `user-client-permissions::${userId}::${clientId}`;
|
|
14
14
|
}
|
|
15
|
-
exports.generateUserClientPermissionKeyword = generateUserClientPermissionKeyword;
|
|
16
15
|
//# sourceMappingURL=keyword.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyword.function.js","sourceRoot":"","sources":["../../../src/functions/session/keyword.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyword.function.js","sourceRoot":"","sources":["../../../src/functions/session/keyword.function.ts"],"names":[],"mappings":";;AAAA,wDAEC;AAED,8DAEC;AAED,kFAKC;AAbD,SAAgB,sBAAsB,CAAC,KAAa;IAClD,OAAO,aAAa,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,SAAgB,yBAAyB,CAAC,MAAc;IACtD,OAAO,iBAAiB,MAAM,EAAE,CAAC;AACnC,CAAC;AAED,SAAgB,mCAAmC,CACjD,MAAc,EACd,QAAgB;IAEhB,OAAO,4BAA4B,MAAM,KAAK,QAAQ,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSortObj =
|
|
3
|
+
exports.getSortObj = getSortObj;
|
|
4
4
|
function getSortObj(sort) {
|
|
5
5
|
if (!sort) {
|
|
6
6
|
return {};
|
|
@@ -11,5 +11,4 @@ function getSortObj(sort) {
|
|
|
11
11
|
}, {});
|
|
12
12
|
return result;
|
|
13
13
|
}
|
|
14
|
-
exports.getSortObj = getSortObj;
|
|
15
14
|
//# sourceMappingURL=sort-object.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-object.function.js","sourceRoot":"","sources":["../../src/functions/sort-object.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort-object.function.js","sourceRoot":"","sources":["../../src/functions/sort-object.function.ts"],"names":[],"mappings":";;AAEA,gCASC;AATD,SAAgB,UAAU,CAAC,IAAgB;IACzC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACvC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.translitGeorgiaToLatin =
|
|
3
|
+
exports.translitGeorgiaToLatin = translitGeorgiaToLatin;
|
|
4
4
|
function translitGeorgiaToLatin(georgianText) {
|
|
5
5
|
const georgianChars = {
|
|
6
6
|
ა: 'a',
|
|
@@ -42,5 +42,4 @@ function translitGeorgiaToLatin(georgianText) {
|
|
|
42
42
|
.map((char) => georgianChars[char] || char)
|
|
43
43
|
.join('');
|
|
44
44
|
}
|
|
45
|
-
exports.translitGeorgiaToLatin = translitGeorgiaToLatin;
|
|
46
45
|
//# sourceMappingURL=transliterate-geo-to-latin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transliterate-geo-to-latin.js","sourceRoot":"","sources":["../../src/functions/transliterate-geo-to-latin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transliterate-geo-to-latin.js","sourceRoot":"","sources":["../../src/functions/transliterate-geo-to-latin.ts"],"names":[],"mappings":";;AAAA,wDAyCC;AAzCD,SAAgB,sBAAsB,CAAC,YAAoB;IACzD,MAAM,aAAa,GAA8B;QAC/C,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;KACP,CAAC;IAEF,OAAO,YAAY;SAChB,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;SAC1C,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,20 +8,12 @@ import { BaseExceptionsFilter } from './filters/base-exception.filter';
|
|
|
8
8
|
import { RecordDTO } from './models/dtos/record.dto';
|
|
9
9
|
import { StateParamDTO } from './models/dtos/state-params.dto';
|
|
10
10
|
import { RecordState } from './models/util/enums/record-state.enum';
|
|
11
|
-
import { IMongoPage, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection } from './models/wrappers/rest-wrapper.class';
|
|
12
11
|
import { ConfigUtil } from './utils/config-util.class';
|
|
13
12
|
import { ISession } from './models/interfaces/session/session.interface';
|
|
14
|
-
import {
|
|
15
|
-
import { RedisService } from './modules/cache/services/redis.service';
|
|
16
|
-
import { SessionService } from './modules/cache/services/session.service';
|
|
17
|
-
import { CacheModule } from './modules/cache/cache.module';
|
|
18
|
-
import { PermissionGuard } from './modules/cache/guards/permission.guard';
|
|
13
|
+
import { RedisService } from './modules/session/services/redis.service';
|
|
19
14
|
import { generateUUID } from './functions/generate-uuid.function';
|
|
20
|
-
import { Permission } from './modules/
|
|
21
|
-
import { PermissionsIncludeStrategy } from './models/um/enums/permission-include-strategy.enum';
|
|
22
|
-
import { PermissionGuardConfig } from './models/wrappers/permission-guard-config.wrapper';
|
|
15
|
+
import { Permission } from './modules/session/reflectors/permission.reflector';
|
|
23
16
|
import { ClientPermissions } from './models/wrappers/client-permissions.wrapper';
|
|
24
|
-
import { ValidateMongoIdPipe } from './pipes/validate-mongo-id.pipe';
|
|
25
17
|
import { escapeRegex } from './functions/escape-regex.function';
|
|
26
18
|
import { translitGeorgiaToLatin } from './functions/transliterate-geo-to-latin';
|
|
27
19
|
import { getRandomNumberFromRange } from './functions/random-range.function';
|
|
@@ -31,13 +23,8 @@ import { LogModule } from './modules/log/log.module';
|
|
|
31
23
|
import { LogService } from './modules/log/services/log.service';
|
|
32
24
|
import { Env } from './models/util/enums/env.enum';
|
|
33
25
|
import { ConsoleLogger } from './utils/console-logger.class';
|
|
34
|
-
import { IClient } from './models/um/interfaces/client.interface';
|
|
35
26
|
import { IGeoLocation } from './models/util/interfaces/geo-location.interface';
|
|
36
27
|
import { II18n } from './models/util/interfaces/i18n.interface';
|
|
37
|
-
import { IPerson } from './models/util/interfaces/person.interface';
|
|
38
|
-
import { IRole } from './models/um/interfaces/role.interface';
|
|
39
|
-
import { IUserClient } from './models/um/interfaces/user-client.interface';
|
|
40
|
-
import { IUser } from './models/um/interfaces/user.interface';
|
|
41
28
|
import { AuthorDTO } from './models/dtos/author.dto';
|
|
42
29
|
import { IAuthor } from './models/util/interfaces/author.interface';
|
|
43
30
|
import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
|
|
@@ -48,8 +35,6 @@ import { LogInitiator, LogInitiatorDocument, LogInitiatorSchema } from './models
|
|
|
48
35
|
import { S3, S3Document, S3Schema } from './models/s3/embedded/s3.embedded';
|
|
49
36
|
import { S3FileState } from './models/s3/enums/s3-file-state.enum';
|
|
50
37
|
import { S3File, S3FileDocument, S3FileSchema } from './models/s3/embedded/file.embedded';
|
|
51
|
-
import { IDictionarySetting } from './models/dictionary/interfaces/dictionary-setting.interface';
|
|
52
|
-
import { IDictionary } from './models/dictionary/interfaces/dictionary.interface';
|
|
53
38
|
import { IFileLog } from './models/s3/interfaces/file-log.interface';
|
|
54
39
|
import { IFileMeta } from './models/s3/interfaces/file-meta.interface';
|
|
55
40
|
import { IFileRecord } from './models/s3/interfaces/file-record.interface';
|
|
@@ -60,42 +45,45 @@ import { IS3 } from './models/s3/interfaces/s3.interface';
|
|
|
60
45
|
import { Page } from './models/wrappers/page.wrapper';
|
|
61
46
|
import { SortPage } from './models/wrappers/sort-page.wrapper';
|
|
62
47
|
import { Sort } from './models/wrappers/sort.wrapper';
|
|
63
|
-
import { ClientType } from './models/um/enums/client-type.enum';
|
|
64
48
|
import { ResourceType } from './models/emis/enums/resource-type.enum';
|
|
65
49
|
import { ContactType } from './models/util/enums/contact-type.enum';
|
|
66
|
-
import { IPermission } from './models/um/interfaces/permission.interface';
|
|
67
50
|
import { Address, AddressSchema, AddressDocument } from './models/util/embedded/address.embedded';
|
|
68
51
|
import { Author, AuthorSchema } from './models/util/embedded/author.embedded';
|
|
69
52
|
import { Contact, ContactSchema, ContactDocument } from './models/util/embedded/contact.embedded';
|
|
70
53
|
import { GeoLocation, GeoLocationSchema, GeoLocationDocument } from './models/util/embedded/geo-location.embedded';
|
|
71
54
|
import { I18n, I18nSchema, I18nDocument } from './models/util/embedded/i18n.embedded';
|
|
72
|
-
import { Person, PersonSchema, PersonDocument } from './models/util/embedded/person.embedded';
|
|
73
55
|
import { Record, RecordSchema, RecordDocument } from './models/util/embedded/record.embedded';
|
|
74
56
|
import { IAddress } from './models/util/interfaces/address.interface';
|
|
75
57
|
import { IContact } from './models/util/interfaces/contact.interface';
|
|
76
58
|
import { IRecord } from './models/util/interfaces/record.interface';
|
|
77
|
-
import { ICredentials } from './models/um/interfaces/credentials.interface';
|
|
78
|
-
import { IProfInfo } from './models/um/interfaces/prof-info.interface';
|
|
79
|
-
import { generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword } from './functions/session/keyword.function';
|
|
80
59
|
import { getSortObj } from './functions/sort-object.function';
|
|
81
60
|
import { I18nDTO } from './models/dtos/i18n.dto';
|
|
82
61
|
import { IBase } from './models/commons/interfaces/base.interface';
|
|
83
62
|
import { Base } from './models/commons/schemas/base.schema';
|
|
84
|
-
import { DictionaryEmbedded, DictionaryEmbeddedDocument, DictionaryEmbeddedSchema } from './models/dictionary/embedded/dictionary.embedded';
|
|
85
|
-
import { IDictionaryEmbedded } from './models/dictionary/interfaces/dictionary-embedded.interface';
|
|
86
|
-
import { IDictionaryEvent } from './models/dictionary/interfaces/dictionary-event.interface';
|
|
87
|
-
import { DictionaryModule } from './modules/dictionary/dictionary.module';
|
|
88
|
-
import { DictionaryService } from './modules/dictionary/services/dictionary.service';
|
|
89
63
|
import { APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGODB__CS, KAFKAJS_NO_PARTITIONER_WARNING } from './models/commons/consts/env.variables';
|
|
90
64
|
import { AccessTokenGuard } from './guards/access-token.guard';
|
|
91
|
-
import { ValidatePIDPipe } from './pipes/validate-pid.pipe';
|
|
92
65
|
import { Reward, RewardDocument, RewardSchema } from './models/rewards/embedded/rewards.embedded';
|
|
93
66
|
import { RewardQuality } from './models/rewards/enums/reward-quality.enum';
|
|
94
67
|
import { RewardType } from './models/rewards/enums/reward-type.enum';
|
|
95
68
|
import { RewardOrigin, RewardOriginDocument, RewardOriginSchema } from './models/rewards/embedded/origin.embedded.schema';
|
|
96
69
|
import { RewardOriginType } from './models/rewards/enums/reward-origin-type.enum';
|
|
97
|
-
import {
|
|
98
|
-
|
|
99
|
-
|
|
70
|
+
import { IUserSession } from './modules/session/models/interfaces';
|
|
71
|
+
export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, Sort, Page, SortPage, ConfigUtil, ISession, RedisService, generateUUID, Permission, ClientPermissions, escapeRegex, translitGeorgiaToLatin, getRandomNumberFromRange, sizeOfJson, HTTPMethod, LogModule, LogService, Env, ConsoleLogger, IAddress, Address, AddressSchema, AddressDocument, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IRecord, Record, RecordSchema, RecordDocument, AuthorDTO, IAuthor, Author, AuthorSchema, IS3File, S3File, S3FileSchema, S3FileDocument, IFileLog, FileLog, FileLogSchema, FileLogDocument, IFileMeta, FileMeta, FileMetaSchema, FileMetaDocument, IFileRecord, FileRecord, FileRecordSchema, FileRecordDocument, IFileState, FileState, FileStateSchema, FileStateDocument, ILogInitiator, LogInitiator, LogInitiatorDocument, LogInitiatorSchema, IS3, S3, S3Document, S3Schema, S3FileState, ResourceType, getSortObj, I18nDTO, Base, IBase, AccessTokenGuard, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGODB__CS, KAFKAJS_NO_PARTITIONER_WARNING, Reward, RewardSchema, RewardDocument, RewardQuality, RewardType, RewardOrigin, RewardOriginSchema, RewardOriginType, RewardOriginDocument, };
|
|
72
|
+
declare global {
|
|
73
|
+
namespace Express {
|
|
74
|
+
interface Request {
|
|
75
|
+
session: IUserSession;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
100
79
|
export * from './clients';
|
|
101
|
-
export
|
|
80
|
+
export * from './pipes';
|
|
81
|
+
export * from './models/wrappers/rest-wrapper.class';
|
|
82
|
+
export * from './modules/core';
|
|
83
|
+
export * from './modules/dictionary';
|
|
84
|
+
export * from './modules/iam';
|
|
85
|
+
export * from './modules/session';
|
|
86
|
+
export * from './modules/emis';
|
|
87
|
+
export * from './modules/otp';
|
|
88
|
+
export * from './modules/storage';
|
|
89
|
+
export * from './modules/dmm';
|