@lenne.tech/nest-server 10.2.7 → 10.2.9
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/config.env.js +75 -75
- package/dist/config.env.js.map +1 -1
- package/dist/core/common/args/filter.args.js +1 -1
- package/dist/core/common/args/filter.args.js.map +1 -1
- package/dist/core/common/args/pagination.args.js.map +1 -1
- package/dist/core/common/decorators/current-user.decorator.js.map +1 -1
- package/dist/core/common/decorators/graphql-populate.decorator.js.map +1 -1
- package/dist/core/common/decorators/graphql-service-options.decorator.js.map +1 -1
- package/dist/core/common/decorators/restricted.decorator.d.ts +4 -4
- package/dist/core/common/decorators/restricted.decorator.js +2 -2
- package/dist/core/common/decorators/restricted.decorator.js.map +1 -1
- package/dist/core/common/enums/comparison-operator.enum.js +1 -1
- package/dist/core/common/enums/comparison-operator.enum.js.map +1 -1
- package/dist/core/common/enums/logical-operator.enum.js +1 -1
- package/dist/core/common/enums/logical-operator.enum.js.map +1 -1
- package/dist/core/common/enums/role.enum.d.ts +3 -3
- package/dist/core/common/enums/role.enum.js +2 -2
- package/dist/core/common/enums/role.enum.js.map +1 -1
- package/dist/core/common/enums/sort-order.emum.js +1 -1
- package/dist/core/common/enums/sort-order.emum.js.map +1 -1
- package/dist/core/common/filters/http-exception-log.filter.js.map +1 -1
- package/dist/core/common/helpers/config.helper.js.map +1 -1
- package/dist/core/common/helpers/context.helper.js +1 -1
- package/dist/core/common/helpers/context.helper.js.map +1 -1
- package/dist/core/common/helpers/db.helper.d.ts +28 -4
- package/dist/core/common/helpers/db.helper.js +4 -4
- package/dist/core/common/helpers/db.helper.js.map +1 -1
- package/dist/core/common/helpers/decorator.helper.d.ts +24 -0
- package/dist/core/common/helpers/decorator.helper.js.map +1 -1
- package/dist/core/common/helpers/file.helper.js +1 -1
- package/dist/core/common/helpers/file.helper.js.map +1 -1
- package/dist/core/common/helpers/filter.helper.d.ts +26 -2
- package/dist/core/common/helpers/filter.helper.js +3 -3
- package/dist/core/common/helpers/filter.helper.js.map +1 -1
- package/dist/core/common/helpers/graphql.helper.d.ts +2 -2
- package/dist/core/common/helpers/graphql.helper.js +1 -1
- package/dist/core/common/helpers/graphql.helper.js.map +1 -1
- package/dist/core/common/helpers/input.helper.d.ts +3 -3
- package/dist/core/common/helpers/input.helper.js +5 -5
- package/dist/core/common/helpers/input.helper.js.map +1 -1
- package/dist/core/common/helpers/model.helper.d.ts +2 -2
- package/dist/core/common/helpers/model.helper.js +3 -3
- package/dist/core/common/helpers/model.helper.js.map +1 -1
- package/dist/core/common/helpers/service.helper.d.ts +6 -6
- package/dist/core/common/helpers/service.helper.js +5 -5
- package/dist/core/common/helpers/service.helper.js.map +1 -1
- package/dist/core/common/helpers/table.helper.d.ts +3 -3
- package/dist/core/common/helpers/table.helper.js +7 -7
- package/dist/core/common/helpers/table.helper.js.map +1 -1
- package/dist/core/common/inputs/combined-filter.input.js.map +1 -1
- package/dist/core/common/inputs/filter.input.js.map +1 -1
- package/dist/core/common/inputs/single-filter.input.js.map +1 -1
- package/dist/core/common/inputs/sort.input.js.map +1 -1
- package/dist/core/common/interceptors/check-response.interceptor.js.map +1 -1
- package/dist/core/common/interceptors/check-security.interceptor.js.map +1 -1
- package/dist/core/common/interfaces/core-persistence-model.interface.d.ts +3 -3
- package/dist/core/common/interfaces/mailjet-options.interface.d.ts +1 -1
- package/dist/core/common/interfaces/prepare-input-options.interface.d.ts +1 -1
- package/dist/core/common/interfaces/server-options.interface.d.ts +12 -8
- package/dist/core/common/interfaces/service-options.interface.d.ts +31 -5
- package/dist/core/common/models/core-model.model.js.map +1 -1
- package/dist/core/common/models/core-persistence.model.d.ts +24 -0
- package/dist/core/common/models/core-persistence.model.js.map +1 -1
- package/dist/core/common/pipes/check-input.pipe.js.map +1 -1
- package/dist/core/common/pipes/map-and-validate.pipe.js.map +1 -1
- package/dist/core/common/plugins/complexity.plugin.js +4 -4
- package/dist/core/common/plugins/complexity.plugin.js.map +1 -1
- package/dist/core/common/plugins/mongoose-id.plugin.js.map +1 -1
- package/dist/core/common/scalars/any.scalar.js.map +1 -1
- package/dist/core/common/scalars/date-timestamp.scalar.js.map +1 -1
- package/dist/core/common/scalars/date.scalar.js.map +1 -1
- package/dist/core/common/scalars/json.scalar.js.map +1 -1
- package/dist/core/common/services/brevo.service.d.ts +4 -0
- package/dist/core/common/services/brevo.service.js +28 -5
- package/dist/core/common/services/brevo.service.js.map +1 -1
- package/dist/core/common/services/config.service.js +1 -1
- package/dist/core/common/services/config.service.js.map +1 -1
- package/dist/core/common/services/core-cron-jobs.service.d.ts +2 -2
- package/dist/core/common/services/core-cron-jobs.service.js.map +1 -1
- package/dist/core/common/services/crud.service.d.ts +58 -32
- package/dist/core/common/services/crud.service.js +40 -23
- package/dist/core/common/services/crud.service.js.map +1 -1
- package/dist/core/common/services/email.service.js +5 -5
- package/dist/core/common/services/email.service.js.map +1 -1
- package/dist/core/common/services/mailjet.service.d.ts +4 -4
- package/dist/core/common/services/mailjet.service.js +8 -8
- package/dist/core/common/services/mailjet.service.js.map +1 -1
- package/dist/core/common/services/model-doc.service.d.ts +24 -0
- package/dist/core/common/services/model-doc.service.js +1 -1
- package/dist/core/common/services/model-doc.service.js.map +1 -1
- package/dist/core/common/services/module.service.d.ts +28 -4
- package/dist/core/common/services/module.service.js +8 -4
- package/dist/core/common/services/module.service.js.map +1 -1
- package/dist/core/common/services/template.service.js +3 -3
- package/dist/core/common/services/template.service.js.map +1 -1
- package/dist/core/common/types/core-model-constructor.type.d.ts +1 -1
- package/dist/core/common/types/falsy.type.d.ts +1 -1
- package/dist/core/common/types/field-selection.type.d.ts +25 -1
- package/dist/core/common/types/ids.type.d.ts +31 -7
- package/dist/core/common/types/maybe-promise.type.d.ts +1 -1
- package/dist/core/common/types/plain-input.type.d.ts +1 -1
- package/dist/core/common/types/populate-config.type.d.ts +25 -1
- package/dist/core/common/types/string-or-object-id.type.d.ts +25 -1
- package/dist/core/modules/auth/core-auth.controller.js +1 -1
- package/dist/core/modules/auth/core-auth.controller.js.map +1 -1
- package/dist/core/modules/auth/core-auth.model.js.map +1 -1
- package/dist/core/modules/auth/core-auth.module.d.ts +5 -5
- package/dist/core/modules/auth/core-auth.module.js +5 -5
- package/dist/core/modules/auth/core-auth.module.js.map +1 -1
- package/dist/core/modules/auth/core-auth.resolver.js +1 -1
- package/dist/core/modules/auth/core-auth.resolver.js.map +1 -1
- package/dist/core/modules/auth/guards/auth.guard.d.ts +1 -1
- package/dist/core/modules/auth/guards/auth.guard.js +1 -1
- package/dist/core/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/core/modules/auth/guards/refresh-token.guard.js.map +1 -1
- package/dist/core/modules/auth/guards/roles.guard.js.map +1 -1
- package/dist/core/modules/auth/inputs/core-auth-sign-in.input.js.map +1 -1
- package/dist/core/modules/auth/inputs/core-auth-sign-up.input.js.map +1 -1
- package/dist/core/modules/auth/interfaces/core-auth-user.interface.d.ts +1 -1
- package/dist/core/modules/auth/interfaces/core-token-data.interface.d.ts +1 -1
- package/dist/core/modules/auth/interfaces/jwt-payload.interface.d.ts +1 -1
- package/dist/core/modules/auth/services/core-auth.service.d.ts +1 -1
- package/dist/core/modules/auth/services/core-auth.service.js +10 -10
- package/dist/core/modules/auth/services/core-auth.service.js.map +1 -1
- package/dist/core/modules/auth/strategies/jwt-refresh.strategy.js +1 -1
- package/dist/core/modules/auth/strategies/jwt-refresh.strategy.js.map +1 -1
- package/dist/core/modules/auth/strategies/jwt.strategy.js.map +1 -1
- package/dist/core/modules/auth/tokens.decorator.js +1 -1
- package/dist/core/modules/auth/tokens.decorator.js.map +1 -1
- package/dist/core/modules/file/core-file-info.model.d.ts +24 -0
- package/dist/core/modules/file/core-file-info.model.js +5 -5
- package/dist/core/modules/file/core-file-info.model.js.map +1 -1
- package/dist/core/modules/file/core-file.controller.js.map +1 -1
- package/dist/core/modules/file/core-file.resolver.js +1 -1
- package/dist/core/modules/file/core-file.resolver.js.map +1 -1
- package/dist/core/modules/file/core-file.service.d.ts +30 -6
- package/dist/core/modules/file/core-file.service.js +3 -3
- package/dist/core/modules/file/core-file.service.js.map +1 -1
- package/dist/core/modules/file/interfaces/file-service-options.interface.d.ts +1 -1
- package/dist/core/modules/file/interfaces/file-upload.interface.d.ts +2 -2
- package/dist/core/modules/health-check/core-health-check-result.model.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check.controller.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check.module.js +1 -1
- package/dist/core/modules/health-check/core-health-check.module.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check.resolver.js +2 -2
- package/dist/core/modules/health-check/core-health-check.resolver.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check.service.js +1 -1
- package/dist/core/modules/health-check/core-health-check.service.js.map +1 -1
- package/dist/core/modules/user/core-user.model.d.ts +24 -0
- package/dist/core/modules/user/core-user.model.js +1 -1
- package/dist/core/modules/user/core-user.model.js.map +1 -1
- package/dist/core/modules/user/core-user.service.d.ts +25 -1
- package/dist/core/modules/user/core-user.service.js +3 -3
- package/dist/core/modules/user/core-user.service.js.map +1 -1
- package/dist/core/modules/user/inputs/core-user-create.input.js +1 -1
- package/dist/core/modules/user/inputs/core-user-create.input.js.map +1 -1
- package/dist/core/modules/user/inputs/core-user.input.js +1 -1
- package/dist/core/modules/user/inputs/core-user.input.js.map +1 -1
- package/dist/core.module.js +20 -20
- package/dist/core.module.js.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/server/common/models/persistence.model.d.ts +24 -0
- package/dist/server/common/models/persistence.model.js +4 -4
- package/dist/server/common/models/persistence.model.js.map +1 -1
- package/dist/server/common/services/cron-jobs.service.js.map +1 -1
- package/dist/server/modules/auth/auth.controller.js.map +1 -1
- package/dist/server/modules/auth/auth.model.js.map +1 -1
- package/dist/server/modules/auth/auth.module.js +2 -2
- package/dist/server/modules/auth/auth.module.js.map +1 -1
- package/dist/server/modules/auth/auth.resolver.js.map +1 -1
- package/dist/server/modules/auth/auth.service.js +1 -1
- package/dist/server/modules/auth/auth.service.js.map +1 -1
- package/dist/server/modules/auth/inputs/auth-sign-in.input.js.map +1 -1
- package/dist/server/modules/auth/inputs/auth-sign-up.input.js.map +1 -1
- package/dist/server/modules/file/file-info.model.js.map +1 -1
- package/dist/server/modules/file/file.controller.js.map +1 -1
- package/dist/server/modules/file/file.module.js +2 -2
- package/dist/server/modules/file/file.module.js.map +1 -1
- package/dist/server/modules/file/file.resolver.js +5 -5
- package/dist/server/modules/file/file.resolver.js.map +1 -1
- package/dist/server/modules/file/file.service.d.ts +24 -0
- package/dist/server/modules/file/file.service.js.map +1 -1
- package/dist/server/modules/file/multer-config.service.js +2 -2
- package/dist/server/modules/file/multer-config.service.js.map +1 -1
- package/dist/server/modules/user/avatar.controller.js.map +1 -1
- package/dist/server/modules/user/inputs/user-create.input.js.map +1 -1
- package/dist/server/modules/user/inputs/user.input.js.map +1 -1
- package/dist/server/modules/user/outputs/find-and-count-users-result.output.js.map +1 -1
- package/dist/server/modules/user/user.model.js +2 -2
- package/dist/server/modules/user/user.model.js.map +1 -1
- package/dist/server/modules/user/user.module.js +2 -2
- package/dist/server/modules/user/user.module.js.map +1 -1
- package/dist/server/modules/user/user.resolver.d.ts +1 -1
- package/dist/server/modules/user/user.resolver.js +1 -1
- package/dist/server/modules/user/user.resolver.js.map +1 -1
- package/dist/server/modules/user/user.service.d.ts +25 -1
- package/dist/server/modules/user/user.service.js +2 -2
- package/dist/server/modules/user/user.service.js.map +1 -1
- package/dist/server/server.controller.js.map +1 -1
- package/dist/server/server.module.js +2 -2
- package/dist/server/server.module.js.map +1 -1
- package/dist/test/test.helper.d.ts +13 -13
- package/dist/test/test.helper.js +15 -15
- package/dist/test/test.helper.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +35 -35
- package/src/config.env.ts +79 -78
- package/src/core/common/args/filter.args.ts +2 -1
- package/src/core/common/args/pagination.args.ts +1 -0
- package/src/core/common/decorators/current-user.decorator.ts +1 -0
- package/src/core/common/decorators/graphql-populate.decorator.ts +1 -0
- package/src/core/common/decorators/graphql-service-options.decorator.ts +1 -0
- package/src/core/common/decorators/restricted.decorator.ts +7 -5
- package/src/core/common/enums/comparison-operator.enum.ts +1 -1
- package/src/core/common/enums/logical-operator.enum.ts +1 -1
- package/src/core/common/enums/role.enum.ts +6 -6
- package/src/core/common/enums/sort-order.emum.ts +1 -1
- package/src/core/common/helpers/context.helper.ts +1 -1
- package/src/core/common/helpers/db.helper.ts +14 -12
- package/src/core/common/helpers/decorator.helper.ts +1 -0
- package/src/core/common/helpers/file.helper.ts +1 -1
- package/src/core/common/helpers/filter.helper.ts +6 -5
- package/src/core/common/helpers/graphql.helper.ts +7 -6
- package/src/core/common/helpers/input.helper.ts +10 -8
- package/src/core/common/helpers/model.helper.ts +6 -5
- package/src/core/common/helpers/service.helper.ts +13 -11
- package/src/core/common/helpers/table.helper.ts +12 -10
- package/src/core/common/inputs/combined-filter.input.ts +1 -0
- package/src/core/common/inputs/filter.input.ts +1 -0
- package/src/core/common/inputs/single-filter.input.ts +1 -0
- package/src/core/common/inputs/sort.input.ts +1 -0
- package/src/core/common/interceptors/check-response.interceptor.ts +1 -0
- package/src/core/common/interceptors/check-security.interceptor.ts +1 -0
- package/src/core/common/interfaces/core-persistence-model.interface.ts +3 -3
- package/src/core/common/interfaces/cron-job-config-with-time-zone.interface.ts +1 -0
- package/src/core/common/interfaces/cron-job-config-with-utc-offset.interface.ts +1 -0
- package/src/core/common/interfaces/mailjet-options.interface.ts +1 -1
- package/src/core/common/interfaces/prepare-input-options.interface.ts +1 -1
- package/src/core/common/interfaces/server-options.interface.ts +33 -24
- package/src/core/common/interfaces/service-options.interface.ts +31 -16
- package/src/core/common/models/core-persistence.model.ts +1 -0
- package/src/core/common/pipes/check-input.pipe.ts +1 -0
- package/src/core/common/pipes/map-and-validate.pipe.ts +1 -0
- package/src/core/common/plugins/complexity.plugin.ts +5 -4
- package/src/core/common/scalars/date-timestamp.scalar.ts +1 -0
- package/src/core/common/scalars/date.scalar.ts +1 -0
- package/src/core/common/services/brevo.service.ts +51 -6
- package/src/core/common/services/config.service.ts +3 -1
- package/src/core/common/services/core-cron-jobs.service.ts +3 -2
- package/src/core/common/services/crud.service.ts +70 -43
- package/src/core/common/services/email.service.ts +7 -5
- package/src/core/common/services/mailjet.service.ts +14 -13
- package/src/core/common/services/model-doc.service.ts +2 -1
- package/src/core/common/services/module.service.ts +18 -10
- package/src/core/common/services/template.service.ts +5 -3
- package/src/core/common/types/core-model-constructor.type.ts +1 -1
- package/src/core/common/types/falsy.type.ts +1 -1
- package/src/core/common/types/field-selection.type.ts +4 -3
- package/src/core/common/types/ids.type.ts +3 -3
- package/src/core/common/types/maybe-promise.type.ts +1 -1
- package/src/core/common/types/plain-input.type.ts +1 -1
- package/src/core/common/types/populate-config.type.ts +1 -1
- package/src/core/common/types/string-or-object-id.type.ts +1 -1
- package/src/core/modules/auth/core-auth.controller.ts +2 -1
- package/src/core/modules/auth/core-auth.model.ts +1 -0
- package/src/core/modules/auth/core-auth.module.ts +8 -7
- package/src/core/modules/auth/core-auth.resolver.ts +2 -1
- package/src/core/modules/auth/guards/auth.guard.ts +4 -2
- package/src/core/modules/auth/guards/refresh-token.guard.ts +1 -0
- package/src/core/modules/auth/guards/roles.guard.ts +1 -0
- package/src/core/modules/auth/inputs/core-auth-sign-in.input.ts +1 -0
- package/src/core/modules/auth/inputs/core-auth-sign-up.input.ts +1 -0
- package/src/core/modules/auth/interfaces/core-auth-user.interface.ts +4 -4
- package/src/core/modules/auth/interfaces/core-token-data.interface.ts +4 -4
- package/src/core/modules/auth/interfaces/jwt-payload.interface.ts +1 -1
- package/src/core/modules/auth/services/core-auth.service.ts +13 -11
- package/src/core/modules/auth/strategies/jwt-refresh.strategy.ts +3 -2
- package/src/core/modules/auth/strategies/jwt.strategy.ts +3 -2
- package/src/core/modules/auth/tokens.decorator.ts +4 -3
- package/src/core/modules/file/core-file-info.model.ts +6 -5
- package/src/core/modules/file/core-file.controller.ts +1 -0
- package/src/core/modules/file/core-file.resolver.ts +2 -1
- package/src/core/modules/file/core-file.service.ts +9 -8
- package/src/core/modules/file/interfaces/file-service-options.interface.ts +1 -1
- package/src/core/modules/file/interfaces/file-upload.interface.ts +2 -2
- package/src/core/modules/health-check/core-health-check-result.model.ts +1 -0
- package/src/core/modules/health-check/core-health-check.controller.ts +1 -0
- package/src/core/modules/health-check/core-health-check.module.ts +2 -1
- package/src/core/modules/health-check/core-health-check.resolver.ts +3 -2
- package/src/core/modules/health-check/core-health-check.service.ts +2 -1
- package/src/core/modules/user/core-user.model.ts +2 -1
- package/src/core/modules/user/core-user.service.ts +6 -4
- package/src/core/modules/user/inputs/core-user-create.input.ts +2 -1
- package/src/core/modules/user/inputs/core-user.input.ts +2 -1
- package/src/core.module.ts +24 -22
- package/src/main.ts +5 -3
- package/src/server/common/models/persistence.model.ts +7 -5
- package/src/server/common/services/cron-jobs.service.ts +1 -0
- package/src/server/modules/auth/auth.controller.ts +1 -0
- package/src/server/modules/auth/auth.model.ts +1 -0
- package/src/server/modules/auth/auth.module.ts +3 -2
- package/src/server/modules/auth/auth.resolver.ts +1 -0
- package/src/server/modules/auth/auth.service.ts +2 -1
- package/src/server/modules/auth/inputs/auth-sign-in.input.ts +1 -0
- package/src/server/modules/auth/inputs/auth-sign-up.input.ts +1 -0
- package/src/server/modules/file/file-info.model.ts +1 -0
- package/src/server/modules/file/file.controller.ts +1 -0
- package/src/server/modules/file/file.module.ts +3 -2
- package/src/server/modules/file/file.resolver.ts +7 -5
- package/src/server/modules/file/file.service.ts +1 -0
- package/src/server/modules/file/multer-config.service.ts +3 -2
- package/src/server/modules/user/avatar.controller.ts +1 -0
- package/src/server/modules/user/inputs/user-create.input.ts +1 -0
- package/src/server/modules/user/inputs/user.input.ts +1 -0
- package/src/server/modules/user/outputs/find-and-count-users-result.output.ts +1 -0
- package/src/server/modules/user/user.model.ts +3 -2
- package/src/server/modules/user/user.module.ts +3 -2
- package/src/server/modules/user/user.resolver.ts +2 -1
- package/src/server/modules/user/user.service.ts +5 -3
- package/src/server/server.controller.ts +1 -0
- package/src/server/server.module.ts +7 -6
- package/src/test/test.helper.ts +28 -26
package/dist/config.env.js
CHANGED
|
@@ -1,45 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const path_1 = require("path");
|
|
4
3
|
const schedule_1 = require("@nestjs/schedule");
|
|
4
|
+
const path_1 = require("path");
|
|
5
5
|
const config_helper_1 = require("./core/common/helpers/config.helper");
|
|
6
6
|
const config = {
|
|
7
|
-
|
|
7
|
+
development: {
|
|
8
8
|
automaticObjectIdFiltering: true,
|
|
9
9
|
compression: true,
|
|
10
10
|
cookies: false,
|
|
11
|
-
cronJobs: {
|
|
12
|
-
sayHello: {
|
|
13
|
-
cronTime: schedule_1.CronExpression.EVERY_10_SECONDS,
|
|
14
|
-
runOnInit: false,
|
|
15
|
-
disabled: false,
|
|
16
|
-
runParallel: 1,
|
|
17
|
-
timeZone: 'Europe/Berlin',
|
|
18
|
-
throwException: false,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
11
|
email: {
|
|
12
|
+
defaultSender: {
|
|
13
|
+
email: 'oren.satterfield@ethereal.email',
|
|
14
|
+
name: 'Nest Server Development',
|
|
15
|
+
},
|
|
16
|
+
mailjet: {
|
|
17
|
+
api_key_private: 'MAILJET_API_KEY_PRIVATE',
|
|
18
|
+
api_key_public: 'MAILJET_API_KEY_PUBLIC',
|
|
19
|
+
},
|
|
20
|
+
passwordResetLink: 'http://localhost:4200/user/password-reset',
|
|
22
21
|
smtp: {
|
|
23
22
|
auth: {
|
|
24
|
-
user: 'oren.satterfield@ethereal.email',
|
|
25
23
|
pass: 'K4DvD8U31VKseT7vQC',
|
|
24
|
+
user: 'oren.satterfield@ethereal.email',
|
|
26
25
|
},
|
|
27
26
|
host: 'mailhog.lenne.tech',
|
|
28
27
|
port: 1025,
|
|
29
28
|
secure: false,
|
|
30
29
|
},
|
|
31
|
-
mailjet: {
|
|
32
|
-
api_key_public: 'MAILJET_API_KEY_PUBLIC',
|
|
33
|
-
api_key_private: 'MAILJET_API_KEY_PRIVATE',
|
|
34
|
-
},
|
|
35
|
-
defaultSender: {
|
|
36
|
-
email: 'oren.satterfield@ethereal.email',
|
|
37
|
-
name: 'Nest Server Local',
|
|
38
|
-
},
|
|
39
30
|
verificationLink: 'http://localhost:4200/user/verification',
|
|
40
|
-
passwordResetLink: 'http://localhost:4200/user/password-reset',
|
|
41
31
|
},
|
|
42
|
-
env: '
|
|
32
|
+
env: 'development',
|
|
43
33
|
execAfterInit: 'npm run docs:bootstrap',
|
|
44
34
|
filter: {
|
|
45
35
|
maxLimit: null,
|
|
@@ -51,75 +41,84 @@ const config = {
|
|
|
51
41
|
maxComplexity: 20,
|
|
52
42
|
},
|
|
53
43
|
healthCheck: {
|
|
54
|
-
enabled: true,
|
|
55
44
|
configs: {
|
|
56
45
|
database: {
|
|
57
46
|
enabled: true,
|
|
58
47
|
},
|
|
59
48
|
},
|
|
49
|
+
enabled: true,
|
|
60
50
|
},
|
|
61
|
-
hostname: '127.0.0.1',
|
|
62
51
|
ignoreSelectionsForPopulate: true,
|
|
63
52
|
jwt: {
|
|
64
|
-
secret: 'SECRET_OR_PRIVATE_KEY_LOCAL',
|
|
65
|
-
signInOptions: {
|
|
66
|
-
expiresIn: '15m',
|
|
67
|
-
},
|
|
68
53
|
refresh: {
|
|
69
54
|
renewal: true,
|
|
70
|
-
secret: '
|
|
55
|
+
secret: 'SECRET_OR_PRIVATE_KEY_DEV_REFRESH',
|
|
71
56
|
signInOptions: {
|
|
72
57
|
expiresIn: '7d',
|
|
73
58
|
},
|
|
74
59
|
},
|
|
75
60
|
sameTokenIdPeriod: 2000,
|
|
61
|
+
secret: 'SECRET_OR_PRIVATE_KEY_DEV',
|
|
62
|
+
signInOptions: {
|
|
63
|
+
expiresIn: '15m',
|
|
64
|
+
},
|
|
76
65
|
},
|
|
77
|
-
loadLocalConfig:
|
|
66
|
+
loadLocalConfig: false,
|
|
78
67
|
logExceptions: true,
|
|
79
68
|
mongoose: {
|
|
80
69
|
collation: {
|
|
81
70
|
locale: 'de',
|
|
82
71
|
},
|
|
83
|
-
modelDocumentation:
|
|
84
|
-
uri: 'mongodb://127.0.0.1/nest-server-
|
|
72
|
+
modelDocumentation: false,
|
|
73
|
+
uri: 'mongodb://127.0.0.1/nest-server-dev',
|
|
85
74
|
},
|
|
86
75
|
port: 3000,
|
|
87
76
|
sha256: true,
|
|
88
77
|
staticAssets: {
|
|
89
|
-
path: (0, path_1.join)(__dirname, '..', 'public'),
|
|
90
78
|
options: { prefix: '' },
|
|
79
|
+
path: (0, path_1.join)(__dirname, '..', 'public'),
|
|
91
80
|
},
|
|
92
81
|
templates: {
|
|
93
|
-
path: (0, path_1.join)(__dirname, 'templates'),
|
|
94
82
|
engine: 'ejs',
|
|
83
|
+
path: (0, path_1.join)(__dirname, 'templates'),
|
|
95
84
|
},
|
|
96
85
|
},
|
|
97
|
-
|
|
86
|
+
local: {
|
|
98
87
|
automaticObjectIdFiltering: true,
|
|
99
88
|
compression: true,
|
|
100
89
|
cookies: false,
|
|
90
|
+
cronJobs: {
|
|
91
|
+
sayHello: {
|
|
92
|
+
cronTime: schedule_1.CronExpression.EVERY_10_SECONDS,
|
|
93
|
+
disabled: false,
|
|
94
|
+
runOnInit: false,
|
|
95
|
+
runParallel: 1,
|
|
96
|
+
throwException: false,
|
|
97
|
+
timeZone: 'Europe/Berlin',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
101
100
|
email: {
|
|
101
|
+
defaultSender: {
|
|
102
|
+
email: 'oren.satterfield@ethereal.email',
|
|
103
|
+
name: 'Nest Server Local',
|
|
104
|
+
},
|
|
105
|
+
mailjet: {
|
|
106
|
+
api_key_private: 'MAILJET_API_KEY_PRIVATE',
|
|
107
|
+
api_key_public: 'MAILJET_API_KEY_PUBLIC',
|
|
108
|
+
},
|
|
109
|
+
passwordResetLink: 'http://localhost:4200/user/password-reset',
|
|
102
110
|
smtp: {
|
|
103
111
|
auth: {
|
|
104
|
-
user: 'oren.satterfield@ethereal.email',
|
|
105
112
|
pass: 'K4DvD8U31VKseT7vQC',
|
|
113
|
+
user: 'oren.satterfield@ethereal.email',
|
|
106
114
|
},
|
|
107
115
|
host: 'mailhog.lenne.tech',
|
|
108
116
|
port: 1025,
|
|
109
117
|
secure: false,
|
|
110
118
|
},
|
|
111
|
-
mailjet: {
|
|
112
|
-
api_key_public: 'MAILJET_API_KEY_PUBLIC',
|
|
113
|
-
api_key_private: 'MAILJET_API_KEY_PRIVATE',
|
|
114
|
-
},
|
|
115
|
-
defaultSender: {
|
|
116
|
-
email: 'oren.satterfield@ethereal.email',
|
|
117
|
-
name: 'Nest Server Development',
|
|
118
|
-
},
|
|
119
119
|
verificationLink: 'http://localhost:4200/user/verification',
|
|
120
|
-
passwordResetLink: 'http://localhost:4200/user/password-reset',
|
|
121
120
|
},
|
|
122
|
-
env: '
|
|
121
|
+
env: 'local',
|
|
123
122
|
execAfterInit: 'npm run docs:bootstrap',
|
|
124
123
|
filter: {
|
|
125
124
|
maxLimit: null,
|
|
@@ -131,46 +130,47 @@ const config = {
|
|
|
131
130
|
maxComplexity: 20,
|
|
132
131
|
},
|
|
133
132
|
healthCheck: {
|
|
134
|
-
enabled: true,
|
|
135
133
|
configs: {
|
|
136
134
|
database: {
|
|
137
135
|
enabled: true,
|
|
138
136
|
},
|
|
139
137
|
},
|
|
138
|
+
enabled: true,
|
|
140
139
|
},
|
|
140
|
+
hostname: '127.0.0.1',
|
|
141
141
|
ignoreSelectionsForPopulate: true,
|
|
142
142
|
jwt: {
|
|
143
|
-
secret: 'SECRET_OR_PRIVATE_KEY_DEV',
|
|
144
|
-
signInOptions: {
|
|
145
|
-
expiresIn: '15m',
|
|
146
|
-
},
|
|
147
143
|
refresh: {
|
|
148
144
|
renewal: true,
|
|
149
|
-
secret: '
|
|
145
|
+
secret: 'SECRET_OR_PRIVATE_KEY_LOCAL_REFRESH',
|
|
150
146
|
signInOptions: {
|
|
151
147
|
expiresIn: '7d',
|
|
152
148
|
},
|
|
153
149
|
},
|
|
154
150
|
sameTokenIdPeriod: 2000,
|
|
151
|
+
secret: 'SECRET_OR_PRIVATE_KEY_LOCAL',
|
|
152
|
+
signInOptions: {
|
|
153
|
+
expiresIn: '15m',
|
|
154
|
+
},
|
|
155
155
|
},
|
|
156
|
-
loadLocalConfig:
|
|
156
|
+
loadLocalConfig: true,
|
|
157
157
|
logExceptions: true,
|
|
158
158
|
mongoose: {
|
|
159
159
|
collation: {
|
|
160
160
|
locale: 'de',
|
|
161
161
|
},
|
|
162
|
-
modelDocumentation:
|
|
163
|
-
uri: 'mongodb://127.0.0.1/nest-server-
|
|
162
|
+
modelDocumentation: true,
|
|
163
|
+
uri: 'mongodb://127.0.0.1/nest-server-local',
|
|
164
164
|
},
|
|
165
165
|
port: 3000,
|
|
166
166
|
sha256: true,
|
|
167
167
|
staticAssets: {
|
|
168
|
-
path: (0, path_1.join)(__dirname, '..', 'public'),
|
|
169
168
|
options: { prefix: '' },
|
|
169
|
+
path: (0, path_1.join)(__dirname, '..', 'public'),
|
|
170
170
|
},
|
|
171
171
|
templates: {
|
|
172
|
-
path: (0, path_1.join)(__dirname, 'templates'),
|
|
173
172
|
engine: 'ejs',
|
|
173
|
+
path: (0, path_1.join)(__dirname, 'templates'),
|
|
174
174
|
},
|
|
175
175
|
},
|
|
176
176
|
production: {
|
|
@@ -178,25 +178,25 @@ const config = {
|
|
|
178
178
|
compression: true,
|
|
179
179
|
cookies: false,
|
|
180
180
|
email: {
|
|
181
|
+
defaultSender: {
|
|
182
|
+
email: 'oren.satterfield@ethereal.email',
|
|
183
|
+
name: 'Nest Server Production',
|
|
184
|
+
},
|
|
185
|
+
mailjet: {
|
|
186
|
+
api_key_private: 'MAILJET_API_KEY_PRIVATE',
|
|
187
|
+
api_key_public: 'MAILJET_API_KEY_PUBLIC',
|
|
188
|
+
},
|
|
189
|
+
passwordResetLink: 'http://localhost:4200/user/password-reset',
|
|
181
190
|
smtp: {
|
|
182
191
|
auth: {
|
|
183
|
-
user: 'oren.satterfield@ethereal.email',
|
|
184
192
|
pass: 'K4DvD8U31VKseT7vQC',
|
|
193
|
+
user: 'oren.satterfield@ethereal.email',
|
|
185
194
|
},
|
|
186
195
|
host: 'mailhog.lenne.tech',
|
|
187
196
|
port: 1025,
|
|
188
197
|
secure: false,
|
|
189
198
|
},
|
|
190
|
-
mailjet: {
|
|
191
|
-
api_key_public: 'MAILJET_API_KEY_PUBLIC',
|
|
192
|
-
api_key_private: 'MAILJET_API_KEY_PRIVATE',
|
|
193
|
-
},
|
|
194
|
-
defaultSender: {
|
|
195
|
-
email: 'oren.satterfield@ethereal.email',
|
|
196
|
-
name: 'Nest Server Production',
|
|
197
|
-
},
|
|
198
199
|
verificationLink: 'http://localhost:4200/user/verification',
|
|
199
|
-
passwordResetLink: 'http://localhost:4200/user/password-reset',
|
|
200
200
|
},
|
|
201
201
|
env: 'production',
|
|
202
202
|
execAfterInit: 'npm run docs:bootstrap',
|
|
@@ -210,19 +210,15 @@ const config = {
|
|
|
210
210
|
maxComplexity: 20,
|
|
211
211
|
},
|
|
212
212
|
healthCheck: {
|
|
213
|
-
enabled: true,
|
|
214
213
|
configs: {
|
|
215
214
|
database: {
|
|
216
215
|
enabled: true,
|
|
217
216
|
},
|
|
218
217
|
},
|
|
218
|
+
enabled: true,
|
|
219
219
|
},
|
|
220
220
|
ignoreSelectionsForPopulate: true,
|
|
221
221
|
jwt: {
|
|
222
|
-
secret: 'SECRET_OR_PRIVATE_KEY_PROD',
|
|
223
|
-
signInOptions: {
|
|
224
|
-
expiresIn: '15m',
|
|
225
|
-
},
|
|
226
222
|
refresh: {
|
|
227
223
|
renewal: true,
|
|
228
224
|
secret: 'SECRET_OR_PRIVATE_KEY_PROD_REFRESH',
|
|
@@ -231,6 +227,10 @@ const config = {
|
|
|
231
227
|
},
|
|
232
228
|
},
|
|
233
229
|
sameTokenIdPeriod: 2000,
|
|
230
|
+
secret: 'SECRET_OR_PRIVATE_KEY_PROD',
|
|
231
|
+
signInOptions: {
|
|
232
|
+
expiresIn: '15m',
|
|
233
|
+
},
|
|
234
234
|
},
|
|
235
235
|
loadLocalConfig: false,
|
|
236
236
|
logExceptions: true,
|
|
@@ -244,12 +244,12 @@ const config = {
|
|
|
244
244
|
port: 3000,
|
|
245
245
|
sha256: true,
|
|
246
246
|
staticAssets: {
|
|
247
|
-
path: (0, path_1.join)(__dirname, '..', 'public'),
|
|
248
247
|
options: { prefix: '' },
|
|
248
|
+
path: (0, path_1.join)(__dirname, '..', 'public'),
|
|
249
249
|
},
|
|
250
250
|
templates: {
|
|
251
|
-
path: (0, path_1.join)(__dirname, 'templates'),
|
|
252
251
|
engine: 'ejs',
|
|
252
|
+
path: (0, path_1.join)(__dirname, 'templates'),
|
|
253
253
|
},
|
|
254
254
|
},
|
|
255
255
|
};
|
package/dist/config.env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.env.js","sourceRoot":"","sources":["../src/config.env.ts"],"names":[],"mappings":";;AAAA,+
|
|
1
|
+
{"version":3,"file":"config.env.js","sourceRoot":"","sources":["../src/config.env.ts"],"names":[],"mappings":";;AAAA,+CAAkD;AAClD,+BAA4B;AAE5B,uEAA4D;AAM5D,MAAM,MAAM,GAAsC;IAIhD,WAAW,EAAE;QACX,0BAA0B,EAAE,IAAI;QAChC,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL,aAAa,EAAE;gBACb,KAAK,EAAE,iCAAiC;gBACxC,IAAI,EAAE,yBAAyB;aAChC;YACD,OAAO,EAAE;gBACP,eAAe,EAAE,yBAAyB;gBAC1C,cAAc,EAAE,wBAAwB;aACzC;YACD,iBAAiB,EAAE,2CAA2C;YAC9D,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ,IAAI,EAAE,oBAAoB;oB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11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FilterArgs = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
const filter_input_1 = require("../inputs/filter.input");
|
|
16
16
|
const pagination_args_1 = require("./pagination.args");
|
|
17
17
|
let FilterArgs = class FilterArgs extends pagination_args_1.PaginationArgs {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.args.js","sourceRoot":"","sources":["../../../../src/core/common/args/filter.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"filter.args.js","sourceRoot":"","sources":["../../../../src/core/common/args/filter.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAkD;AAClD,qDAA6C;AAE7C,yDAAqD;AACrD,uDAAmD;AAG5C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,gCAAc;IAAvC;;QASL,WAAM,GAAiB,SAAS,CAAC;QAUjC,YAAO,GAAY,SAAS,CAAC;IAsB/B,CAAC;IAbU,GAAG,CACV,IAAyC,EACzC,UAII,EAAE;QAEN,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,0BAAW,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC9E,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9E,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAzCY,gCAAU;AASrB;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAW,EAAE;QAC1B,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;8BACJ,0BAAW;0CAAa;AAUjC;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE;QACrB,WAAW,EACT,iHAAiH;QACnH,QAAQ,EAAE,IAAI;KACf,CAAC;;2CAC2B;qBAnBlB,UAAU;IADtB,IAAA,kBAAQ,GAAE;GACE,UAAU,CAyCtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.args.js","sourceRoot":"","sources":["../../../../src/core/common/args/pagination.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,qDAA6C;
|
|
1
|
+
{"version":3,"file":"pagination.args.js","sourceRoot":"","sources":["../../../../src/core/common/args/pagination.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,qDAA6C;AAE7C,0DAA+C;AAC/C,iEAAuD;AACvD,qDAAiD;AAG1C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAS;IAAtC;;QASL,UAAK,GAAY,SAAS,CAAC;QAU3B,WAAM,GAAY,SAAS,CAAC;QAU5B,SAAI,GAAY,SAAS,CAAC;QAU1B,SAAI,GAAiB,SAAS,CAAC;QAU/B,SAAI,GAAY,SAAS,CAAC;IAsB5B,CAAC;IAbU,GAAG,CACV,IAAyC,EACzC,UAII,EAAE;QAEN,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAA,mBAAI,EAAC,IAAI,CAAC,IAAI,EAAE,sBAAS,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAC1D,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9E,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAvEY,wCAAc;AASzB;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,EAAE;QAClB,WAAW,EAAE,8EAA8E;QAC3F,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;;6CACc;AAU3B;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,EAAE;QAClB,WAAW,EAAE,gBAAgB;QAC7B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;;8CACe;AAU5B;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,EAAE;QAClB,WAAW,EAAE,oEAAoE;QACjF,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;;4CACa;AAU1B;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,sBAAS,CAAC,EAAE;QAC1B,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;;4CACkB;AAU/B;IALC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,EAAE;QAClB,WAAW,EAAE,iBAAiB;QAC9B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;;4CACa;yBAjDf,cAAc;IAD1B,IAAA,kBAAQ,GAAE;GACE,cAAc,CAuE1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"current-user.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/current-user.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;
|
|
1
|
+
{"version":3,"file":"current-user.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/current-user.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AAEtD,kEAA6D;AAKhD,QAAA,WAAW,GAAG,IAAA,6BAAoB,EAAC,iCAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-populate.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/graphql-populate.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;
|
|
1
|
+
{"version":3,"file":"graphql-populate.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/graphql-populate.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AAEtD,kEAAiE;AAapD,QAAA,eAAe,GAAG,IAAA,6BAAoB,EAAC,qCAAkB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-service-options.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/graphql-service-options.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;
|
|
1
|
+
{"version":3,"file":"graphql-service-options.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/graphql-service-options.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAExE,kEAAiF;AAoBpE,QAAA,qBAAqB,GAAG,IAAA,6BAAoB,EACvD,CAAC,IAAsD,EAAE,GAAqB,EAAkB,EAAE;IAChG,OAAO;QACL,WAAW,EAAE,IAAA,iCAAc,EAAC,IAAI,EAAE,GAAG,CAAC;QACtC,QAAQ,EAAE,IAAA,qCAAkB,EAAC,IAAI,EAAE,GAAG,CAAC;KACxC,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import { ProcessType } from '../enums/process-type.enum';
|
|
3
3
|
import { RequireAtLeastOne } from '../types/required-at-least-one.type';
|
|
4
|
-
export type RestrictedType = (
|
|
4
|
+
export type RestrictedType = (RequireAtLeastOne<{
|
|
5
5
|
memberOf?: string | string[];
|
|
6
|
-
roles?: string | string[];
|
|
7
6
|
processType?: ProcessType;
|
|
8
|
-
|
|
7
|
+
roles?: string | string[];
|
|
8
|
+
}, 'memberOf' | 'roles'> | string)[];
|
|
9
9
|
export declare const Restricted: (...rolesOrMember: RestrictedType) => ClassDecorator & PropertyDecorator;
|
|
10
10
|
export declare const getRestricted: (object: unknown, propertyKey?: string) => RestrictedType;
|
|
11
11
|
export declare const checkRestricted: (data: any, user: {
|
|
12
|
-
id: any;
|
|
13
12
|
hasRole: (roles: string[]) => boolean;
|
|
13
|
+
id: any;
|
|
14
14
|
}, options?: {
|
|
15
15
|
checkObjectItself?: boolean;
|
|
16
16
|
dbObject?: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkRestricted = exports.getRestricted = exports.Restricted = void 0;
|
|
4
|
-
require("reflect-metadata");
|
|
5
4
|
const common_1 = require("@nestjs/common");
|
|
6
|
-
|
|
5
|
+
require("reflect-metadata");
|
|
7
6
|
const role_enum_1 = require("../enums/role.enum");
|
|
8
7
|
const db_helper_1 = require("../helpers/db.helper");
|
|
8
|
+
const _ = require("lodash");
|
|
9
9
|
const restrictedMetaKey = Symbol('restricted');
|
|
10
10
|
const Restricted = (...rolesOrMember) => {
|
|
11
11
|
return Reflect.metadata(restrictedMetaKey, rolesOrMember);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restricted.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/restricted.decorator.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"restricted.decorator.js","sourceRoot":"","sources":["../../../../src/core/common/decorators/restricted.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AACvD,4BAA0B;AAG1B,kDAA8C;AAC9C,oDAAsD;AAGtD,4BAA6B;AAK7B,MAAM,iBAAiB,GAAG,MAAM,CAAC,YAAY,CAA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,CAAC;QAE5C,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,SAAS,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;YAC9D,SAAS;QACX,CAAC;QAGD,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;QAC1D,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;QAC/E,MAAM,KAAK,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,CAAC;QAG3D,IAAI,KAAK,EAAE,CAAC;YAEV,IAAI,CAAC,WAAW,CAAC,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;QACzF,CAAC;aAAM,CAAC;YAEN,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;gBACtB,MAAM,IAAI,8BAAqB,CAC7B,6CACE,WACA,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CACpE,CAAC;YACJ,CAAC;YAGD,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAGD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AArLW,QAAA,eAAe,mBAqL1B"}
|
|
@@ -15,7 +15,7 @@ var ComparisonOperatorEnum;
|
|
|
15
15
|
ComparisonOperatorEnum["REGEX"] = "REGEX";
|
|
16
16
|
})(ComparisonOperatorEnum || (exports.ComparisonOperatorEnum = ComparisonOperatorEnum = {}));
|
|
17
17
|
(0, graphql_1.registerEnumType)(ComparisonOperatorEnum, {
|
|
18
|
-
name: 'ComparisonOperatorEnum',
|
|
19
18
|
description: '[Comparison Operators](https://docs.mongodb.com/manual/reference/operator/query-comparison/) for filters',
|
|
19
|
+
name: 'ComparisonOperatorEnum',
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=comparison-operator.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comparison-operator.enum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/comparison-operator.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAKnD,IAAY,sBA2BX;AA3BD,WAAY,sBAAsB;IAEhC,mCAAS,CAAA;IAGT,mCAAS,CAAA;IAGT,qCAAW,CAAA;IAGX,mCAAS,CAAA;IAGT,mCAAS,CAAA;IAGT,qCAAW,CAAA;IAGX,mCAAS,CAAA;IAGT,qCAAW,CAAA;IAGX,yCAAe,CAAA;AACjB,CAAC,EA3BW,sBAAsB,sCAAtB,sBAAsB,QA2BjC;AAGD,IAAA,0BAAgB,EAAC,sBAAsB,EAAE;IACvC,
|
|
1
|
+
{"version":3,"file":"comparison-operator.enum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/comparison-operator.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAKnD,IAAY,sBA2BX;AA3BD,WAAY,sBAAsB;IAEhC,mCAAS,CAAA;IAGT,mCAAS,CAAA;IAGT,qCAAW,CAAA;IAGX,mCAAS,CAAA;IAGT,mCAAS,CAAA;IAGT,qCAAW,CAAA;IAGX,mCAAS,CAAA;IAGT,qCAAW,CAAA;IAGX,yCAAe,CAAA;AACjB,CAAC,EA3BW,sBAAsB,sCAAtB,sBAAsB,QA2BjC;AAGD,IAAA,0BAAgB,EAAC,sBAAsB,EAAE;IACvC,WAAW,EACT,0GAA0G;IAC5G,IAAI,EAAE,wBAAwB;CAC/B,CAAC,CAAC"}
|
|
@@ -9,7 +9,7 @@ var LogicalOperatorEnum;
|
|
|
9
9
|
LogicalOperatorEnum["OR"] = "OR";
|
|
10
10
|
})(LogicalOperatorEnum || (exports.LogicalOperatorEnum = LogicalOperatorEnum = {}));
|
|
11
11
|
(0, graphql_1.registerEnumType)(LogicalOperatorEnum, {
|
|
12
|
-
name: 'LogicalOperatorEnum',
|
|
13
12
|
description: 'Logical operators to combine filters',
|
|
13
|
+
name: 'LogicalOperatorEnum',
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=logical-operator.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logical-operator.enum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/logical-operator.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAKnD,IAAY,mBASX;AATD,WAAY,mBAAmB;IAE7B,kCAAW,CAAA;IAGX,kCAAW,CAAA;IAGX,gCAAS,CAAA;AACX,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAGD,IAAA,0BAAgB,EAAC,mBAAmB,EAAE;IACpC,
|
|
1
|
+
{"version":3,"file":"logical-operator.enum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/logical-operator.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAKnD,IAAY,mBASX;AATD,WAAY,mBAAmB;IAE7B,kCAAW,CAAA;IAGX,kCAAW,CAAA;IAGX,gCAAS,CAAA;AACX,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAGD,IAAA,0BAAgB,EAAC,mBAAmB,EAAE;IACpC,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,qBAAqB;CAC5B,CAAC,CAAC"}
|
|
@@ -4,10 +4,10 @@ exports.RoleEnum = void 0;
|
|
|
4
4
|
var RoleEnum;
|
|
5
5
|
(function (RoleEnum) {
|
|
6
6
|
RoleEnum["ADMIN"] = "admin";
|
|
7
|
+
RoleEnum["S_CREATOR"] = "s_creator";
|
|
7
8
|
RoleEnum["S_EVERYONE"] = "s_everyone";
|
|
8
9
|
RoleEnum["S_NO_ONE"] = "s_no_one";
|
|
9
|
-
RoleEnum["S_USER"] = "s_user";
|
|
10
|
-
RoleEnum["S_CREATOR"] = "s_creator";
|
|
11
10
|
RoleEnum["S_SELF"] = "s_self";
|
|
11
|
+
RoleEnum["S_USER"] = "s_user";
|
|
12
12
|
})(RoleEnum || (exports.RoleEnum = RoleEnum = {}));
|
|
13
13
|
//# sourceMappingURL=role.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/role.enum.ts"],"names":[],"mappings":";;;AAuBA,IAAY,QAmCX;AAnCD,WAAY,QAAQ;IAOlB,2BAAe,CAAA;IASf,qCAAyB,CAAA;IAGzB,iCAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/role.enum.ts"],"names":[],"mappings":";;;AAuBA,IAAY,QAmCX;AAnCD,WAAY,QAAQ;IAOlB,2BAAe,CAAA;IASf,mCAAuB,CAAA;IAGvB,qCAAyB,CAAA;IAGzB,iCAAqB,CAAA;IASrB,6BAAiB,CAAA;IAGjB,6BAAiB,CAAA;AACnB,CAAC,EAnCW,QAAQ,wBAAR,QAAQ,QAmCnB"}
|
|
@@ -8,7 +8,7 @@ var SortOrderEnum;
|
|
|
8
8
|
SortOrderEnum["DESC"] = "DESC";
|
|
9
9
|
})(SortOrderEnum || (exports.SortOrderEnum = SortOrderEnum = {}));
|
|
10
10
|
(0, graphql_1.registerEnumType)(SortOrderEnum, {
|
|
11
|
-
name: 'SortOrderEnum',
|
|
12
11
|
description: 'SortInput order of items',
|
|
12
|
+
name: 'SortOrderEnum',
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=sort-order.emum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-order.emum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/sort-order.emum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAKnD,IAAY,aAMX;AAND,WAAY,aAAa;IAEvB,4BAAW,CAAA;IAGX,8BAAa,CAAA;AACf,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAGD,IAAA,0BAAgB,EAAC,aAAa,EAAE;IAC9B,
|
|
1
|
+
{"version":3,"file":"sort-order.emum.js","sourceRoot":"","sources":["../../../../src/core/common/enums/sort-order.emum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAKnD,IAAY,aAMX;AAND,WAAY,aAAa;IAEvB,4BAAW,CAAA;IAGX,8BAAa,CAAA;AACf,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAGD,IAAA,0BAAgB,EAAC,aAAa,EAAE;IAC9B,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-exception-log.filter.js","sourceRoot":"","sources":["../../../../src/core/common/filters/http-exception-log.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAmH;AAK5G,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAIjC,KAAK,CAAC,SAAwB,EAAE,IAAmB;QAEjD,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAG/B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAkB,CAAC;QAC5C,IAAI,IAAI,KAAK,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"http-exception-log.filter.js","sourceRoot":"","sources":["../../../../src/core/common/filters/http-exception-log.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAmH;AAK5G,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAIjC,KAAK,CAAC,SAAwB,EAAE,IAAmB;QAEjD,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAG/B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAkB,CAAC;QAC5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAGD,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAY,CAAC;QACxC,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;QACrC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CACrB,SAAS,YAAY,oCAA2B,CAAC,CAAC,CAAE,EAAE,GAAG,SAAS,EAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,SAAS,EAAE,CACzG,CAAC;IACJ,CAAC;CACF,CAAA;AAtBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,cAAK,EAAC,sBAAa,CAAC;GACR,sBAAsB,CAsBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.helper.js","sourceRoot":"","sources":["../../../../src/core/common/helpers/config.helper.ts"],"names":[],"mappings":";;;AAAA,4BAA6B;AAM7B,MAAqB,MAAM;IAelB,MAAM,CAAC,KAAK,CAAC,GAAwB,EAAE,GAAG,OAAc;QAC7D,OAAO,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;CACF;AAlBD,yBAkBC;AAiBD,SAAgB,KAAK,CAAC,GAAwB,EAAE,GAAG,OAAc;IAC/D,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,QAAa,EAAE,QAAa,EAAE,EAAE;QACnE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"config.helper.js","sourceRoot":"","sources":["../../../../src/core/common/helpers/config.helper.ts"],"names":[],"mappings":";;;AAAA,4BAA6B;AAM7B,MAAqB,MAAM;IAelB,MAAM,CAAC,KAAK,CAAC,GAAwB,EAAE,GAAG,OAAc;QAC7D,OAAO,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;CACF;AAlBD,yBAkBC;AAiBD,SAAgB,KAAK,CAAC,GAAwB,EAAE,GAAG,OAAc;IAC/D,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,QAAa,EAAE,QAAa,EAAE,EAAE;QACnE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5B,OAAO,QAAQ,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAND,sBAMC"}
|
|
@@ -10,7 +10,7 @@ class Context {
|
|
|
10
10
|
exports.default = Context;
|
|
11
11
|
function getContextData(context) {
|
|
12
12
|
if (!context) {
|
|
13
|
-
return {
|
|
13
|
+
return { args: null, currentUser: null, request: null };
|
|
14
14
|
}
|
|
15
15
|
let user;
|
|
16
16
|
let rawContext = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.helper.js","sourceRoot":"","sources":["../../../../src/core/common/helpers/context.helper.ts"],"names":[],"mappings":";;;AACA,6CAAsD;AAOtD,MAAqB,OAAO;IAKnB,MAAM,CAAC,OAAO,CAAC,OAAyB;QAK7C,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACF;AAZD,0BAYC;AAKD,SAAgB,cAAc,CAAC,OAAyB;IAMtD,IAAI,CAAC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"context.helper.js","sourceRoot":"","sources":["../../../../src/core/common/helpers/context.helper.ts"],"names":[],"mappings":";;;AACA,6CAAsD;AAOtD,MAAqB,OAAO;IAKnB,MAAM,CAAC,OAAO,CAAC,OAAyB;QAK7C,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACF;AAZD,0BAYC;AAKD,SAAgB,cAAc,CAAC,OAAyB;IAMtD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IAGD,IAAI,IAA4B,CAAC;IACjC,IAAI,UAAU,GAAQ,IAAI,CAAC;IAC3B,IAAI,GAAG,GAAQ,IAAI,CAAC;IACpB,IAAI,OAAY,CAAC;IACjB,IAAI,CAAC;QACH,UAAU,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACjD,GAAG,GAAG,UAAU,EAAE,UAAU,EAAE,CAAC;QAC/B,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC;IACpB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;IAEb,CAAC;IAED,IAAI,IAAS,CAAC;IACd,IAAI,UAAU,EAAE,CAAC;QACf,IAAI,CAAC;YACH,IAAI,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;QAC9B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;QAEb,CAAC;IACH,CAAC;IAGD,IAAI,GAAG,EAAE,CAAC;QAER,IAAI,GAAG,GAAG,EAAE,IAAI,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;IACrC,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9E,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAGpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACtB,CAAC;IACH,CAAC;IAGD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC9C,CAAC;AAhDD,wCAgDC"}
|
|
@@ -1,10 +1,34 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
1
25
|
import { GraphQLResolveInfo, SelectionNode } from 'graphql';
|
|
2
26
|
import { Document, Model, PopulateOptions, Query, Types } from 'mongoose';
|
|
3
27
|
import { CoreModel } from '../models/core-model.model';
|
|
4
28
|
import { FieldSelection } from '../types/field-selection.type';
|
|
5
29
|
import { IdsType } from '../types/ids.type';
|
|
6
30
|
import { StringOrObjectId } from '../types/string-or-object-id.type';
|
|
7
|
-
export declare function addIds(target: any, ids: StringOrObjectId | StringOrObjectId[], convert?: '
|
|
31
|
+
export declare function addIds(target: any, ids: StringOrObjectId | StringOrObjectId[], convert?: 'auto' | 'object' | 'string' | false, options?: {
|
|
8
32
|
unique?: boolean;
|
|
9
33
|
}): any[];
|
|
10
34
|
export declare function checkStringIds(ids: string | string[]): boolean;
|
|
@@ -30,11 +54,11 @@ export declare function getPopulateOptions(info: GraphQLResolveInfo, dotSeparate
|
|
|
30
54
|
export declare function getPopulatOptionsFromSelections(selectionNodes: readonly SelectionNode[]): PopulateOptions[];
|
|
31
55
|
export declare function getJSONClone<T = any>(obj: T): Partial<T>;
|
|
32
56
|
export declare function objectIdsToStrings(element: any, prepared?: WeakMap<any, any>): any;
|
|
33
|
-
export declare function removeUnresolvedReferences<T = any>(populated: T, populatedOptions: string | PopulateOptions | PopulateOptions[] |
|
|
34
|
-
export declare function popAndMap<T extends CoreModel>(queryOrDocument:
|
|
57
|
+
export declare function removeUnresolvedReferences<T = any>(populated: T, populatedOptions: (PopulateOptions | string)[] | PopulateOptions | PopulateOptions[] | string, ignoreFirst?: boolean): T;
|
|
58
|
+
export declare function popAndMap<T extends CoreModel>(queryOrDocument: Document | Document[] | Query<any, any>, populate: FieldSelection, modelClass: new (...args: any[]) => T, mongooseModel?: Model<any>, options?: {
|
|
35
59
|
ignoreSelections?: boolean;
|
|
36
60
|
}): Promise<T | T[]>;
|
|
37
61
|
export declare function removeIds(source: any[], ids: StringOrObjectId | StringOrObjectId[]): any[];
|
|
38
|
-
export declare function setPopulates<T = Query<any, any
|
|
62
|
+
export declare function setPopulates<T = Document | Query<any, any>>(queryOrDocument: T, populateOptions: (PopulateOptions | string)[] | PopulateOptions[] | string[], mongooseModel: Model<any>, options?: {
|
|
39
63
|
ignoreSelections: boolean;
|
|
40
64
|
}): Promise<T>;
|