@elsikora/nestjs-crud-automator 1.17.1-dev.1 → 1.18.0-dev.1
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/cjs/class/api/authorization/policy/registry.class.d.ts +1 -5
- package/dist/cjs/class/api/authorization/policy/registry.class.js +41 -34
- package/dist/cjs/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/registry.class.js +13 -0
- package/dist/cjs/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/cjs/class/metadata-storage.class.d.ts +2 -1
- package/dist/cjs/class/metadata-storage.class.js +53 -17
- package/dist/cjs/class/metadata-storage.class.js.map +1 -1
- package/dist/cjs/constant/dto/auto-context.constant.d.ts +4 -0
- package/dist/cjs/constant/dto/auto-context.constant.js +10 -0
- package/dist/cjs/constant/dto/auto-context.constant.js.map +1 -0
- package/dist/cjs/constant/dto/index.d.ts +1 -0
- package/dist/cjs/decorator/api/authorization/policy.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/authorization/policy.decorator.js +1 -0
- package/dist/cjs/decorator/api/authorization/policy.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/controller/decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/controller/decorator.js +1 -1
- package/dist/cjs/decorator/api/controller/observable.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js +1 -0
- package/dist/cjs/decorator/api/controller/observable.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/controller/securable.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/controller/securable.decorator.js +1 -0
- package/dist/cjs/decorator/api/controller/securable.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/create.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/decorator.js +1 -0
- package/dist/cjs/decorator/api/function/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/delete.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/get-list.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/get-many.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/get.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/update.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/function/update.decorator.js +1 -0
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/method.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/method.decorator.js +1 -0
- package/dist/cjs/decorator/api/method.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/boolean.decorator.js +11 -4
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/copy.decorator.d.ts +34 -14
- package/dist/cjs/decorator/api/property/copy.decorator.js +83 -30
- package/dist/cjs/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/date.decorator.js +11 -4
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/enum.decorator.js +11 -4
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/number.decorator.js +15 -5
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/object.decorator.js +13 -4
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/string.decorator.js +15 -5
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/property/uuid.decorator.js +12 -5
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service/observable.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/service/observable.decorator.js +1 -0
- package/dist/cjs/decorator/api/service/observable.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service.decorator.d.ts +1 -1
- package/dist/cjs/decorator/api/service.decorator.js +1 -1
- package/dist/cjs/decorator/api/subscriber/function.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/subscriber/function.decorator.js +1 -0
- package/dist/cjs/decorator/api/subscriber/function.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/subscriber/route.decorator.d.ts +1 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.js +1 -0
- package/dist/cjs/decorator/api/subscriber/route.decorator.js.map +1 -1
- package/dist/cjs/factory/api/controller.factory.js +0 -2
- package/dist/cjs/factory/api/controller.factory.js.map +1 -1
- package/dist/cjs/index.js +27 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interface/class/api/authorization/policy/registry.interface.d.ts +0 -1
- package/dist/cjs/type/auto-context-metadata.type.d.ts +5 -0
- package/dist/cjs/type/decorator/api/property/base/properties.type.d.ts +2 -1
- package/dist/cjs/type/decorator/api/property/copy-properties.type.d.ts +13 -0
- package/dist/cjs/type/decorator/api/property/entity.type.d.ts +3 -0
- package/dist/cjs/type/decorator/api/property/index.d.ts +2 -0
- package/dist/cjs/type/index.d.ts +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -1
- package/dist/cjs/utility/auto-dto-context-queue.utility.d.ts +11 -0
- package/dist/cjs/utility/auto-dto-context-queue.utility.js +40 -0
- package/dist/cjs/utility/auto-dto-context-queue.utility.js.map +1 -0
- package/dist/cjs/utility/defer-property-decorator-execution.utility.d.ts +5 -0
- package/dist/cjs/utility/defer-property-decorator-execution.utility.js +16 -0
- package/dist/cjs/utility/defer-property-decorator-execution.utility.js.map +1 -0
- package/dist/cjs/utility/dto/auto-context-pop.utility.d.ts +6 -0
- package/dist/cjs/utility/dto/auto-context-pop.utility.js +38 -0
- package/dist/cjs/utility/dto/auto-context-pop.utility.js.map +1 -0
- package/dist/cjs/utility/dto/auto-context-push.utility.d.ts +9 -0
- package/dist/cjs/utility/dto/auto-context-push.utility.js +35 -0
- package/dist/cjs/utility/dto/auto-context-push.utility.js.map +1 -0
- package/dist/cjs/utility/dto/build-decorator.utility.js +9 -1
- package/dist/cjs/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.js +21 -13
- package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate.utility.js +35 -27
- package/dist/cjs/utility/dto/generate.utility.js.map +1 -1
- package/dist/cjs/utility/dto/index.d.ts +2 -1
- package/dist/cjs/utility/get-auto-dto-context.utility.d.ts +7 -0
- package/dist/cjs/utility/get-auto-dto-context.utility.js +19 -0
- package/dist/cjs/utility/get-auto-dto-context.utility.js.map +1 -0
- package/dist/cjs/utility/index.d.ts +9 -0
- package/dist/cjs/utility/is-entity-constructor.utility.d.ts +8 -0
- package/dist/cjs/utility/is-entity-constructor.utility.js +13 -0
- package/dist/cjs/utility/is-entity-constructor.utility.js.map +1 -0
- package/dist/cjs/utility/is-entity-factory.utility.d.ts +8 -0
- package/dist/cjs/utility/is-entity-factory.utility.js +15 -0
- package/dist/cjs/utility/is-entity-factory.utility.js.map +1 -0
- package/dist/cjs/utility/is-entity-literal.utility.d.ts +7 -0
- package/dist/cjs/utility/is-entity-literal.utility.js +13 -0
- package/dist/cjs/utility/is-entity-literal.utility.js.map +1 -0
- package/dist/cjs/utility/queue-auto-context-retry.utility.d.ts +6 -0
- package/dist/cjs/utility/queue-auto-context-retry.utility.js +23 -0
- package/dist/cjs/utility/queue-auto-context-retry.utility.js.map +1 -0
- package/dist/cjs/utility/register-auto-dto-child.utility.d.ts +14 -0
- package/dist/cjs/utility/register-auto-dto-child.utility.js +69 -0
- package/dist/cjs/utility/register-auto-dto-child.utility.js.map +1 -0
- package/dist/cjs/utility/resolve/decorator-context.utility.d.ts +13 -0
- package/dist/cjs/utility/resolve/decorator-context.utility.js +31 -0
- package/dist/cjs/utility/resolve/decorator-context.utility.js.map +1 -0
- package/dist/cjs/utility/resolve/index.d.ts +2 -0
- package/dist/cjs/utility/resolve/property-entity.utility.d.ts +16 -0
- package/dist/cjs/utility/resolve/property-entity.utility.js +43 -0
- package/dist/cjs/utility/resolve/property-entity.utility.js.map +1 -0
- package/dist/cjs/utility/with-resolved-property-entity.utility.d.ts +11 -0
- package/dist/cjs/utility/with-resolved-property-entity.utility.js +30 -0
- package/dist/cjs/utility/with-resolved-property-entity.utility.js.map +1 -0
- package/dist/esm/class/api/authorization/policy/registry.class.d.ts +1 -5
- package/dist/esm/class/api/authorization/policy/registry.class.js +41 -34
- package/dist/esm/class/api/authorization/policy/registry.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/registry.class.js +13 -0
- package/dist/esm/class/api/subscriber/registry.class.js.map +1 -1
- package/dist/esm/class/metadata-storage.class.d.ts +2 -1
- package/dist/esm/class/metadata-storage.class.js +53 -17
- package/dist/esm/class/metadata-storage.class.js.map +1 -1
- package/dist/esm/constant/dto/auto-context.constant.d.ts +4 -0
- package/dist/esm/constant/dto/auto-context.constant.js +7 -0
- package/dist/esm/constant/dto/auto-context.constant.js.map +1 -0
- package/dist/esm/constant/dto/index.d.ts +1 -0
- package/dist/esm/decorator/api/authorization/policy.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/authorization/policy.decorator.js +1 -0
- package/dist/esm/decorator/api/authorization/policy.decorator.js.map +1 -1
- package/dist/esm/decorator/api/controller/decorator.d.ts +1 -1
- package/dist/esm/decorator/api/controller/decorator.js +1 -1
- package/dist/esm/decorator/api/controller/observable.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js +1 -0
- package/dist/esm/decorator/api/controller/observable.decorator.js.map +1 -1
- package/dist/esm/decorator/api/controller/securable.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/controller/securable.decorator.js +1 -0
- package/dist/esm/decorator/api/controller/securable.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/create.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/create.decorator.js +1 -0
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/decorator.js +1 -0
- package/dist/esm/decorator/api/function/decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/delete.decorator.js +1 -0
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-list.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/get-list.decorator.js +1 -0
- package/dist/esm/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-many.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/get-many.decorator.js +1 -0
- package/dist/esm/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/get.decorator.js +1 -0
- package/dist/esm/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/update.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/function/update.decorator.js +1 -0
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/method.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/method.decorator.js +1 -0
- package/dist/esm/decorator/api/method.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/boolean.decorator.js +12 -5
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/copy.decorator.d.ts +34 -14
- package/dist/esm/decorator/api/property/copy.decorator.js +83 -30
- package/dist/esm/decorator/api/property/copy.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/date.decorator.js +12 -5
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.js +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/enum.decorator.js +12 -5
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/number.decorator.js +17 -7
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/object.decorator.js +14 -5
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/string.decorator.js +17 -7
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/property/uuid.decorator.js +13 -6
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service/observable.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/service/observable.decorator.js +1 -0
- package/dist/esm/decorator/api/service/observable.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service.decorator.d.ts +1 -1
- package/dist/esm/decorator/api/service.decorator.js +1 -1
- package/dist/esm/decorator/api/subscriber/function.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/subscriber/function.decorator.js +1 -0
- package/dist/esm/decorator/api/subscriber/function.decorator.js.map +1 -1
- package/dist/esm/decorator/api/subscriber/route.decorator.d.ts +1 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.js +1 -0
- package/dist/esm/decorator/api/subscriber/route.decorator.js.map +1 -1
- package/dist/esm/factory/api/controller.factory.js +0 -2
- package/dist/esm/factory/api/controller.factory.js.map +1 -1
- package/dist/esm/index.js +13 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interface/class/api/authorization/policy/registry.interface.d.ts +0 -1
- package/dist/esm/type/auto-context-metadata.type.d.ts +5 -0
- package/dist/esm/type/decorator/api/property/base/properties.type.d.ts +2 -1
- package/dist/esm/type/decorator/api/property/copy-properties.type.d.ts +13 -0
- package/dist/esm/type/decorator/api/property/entity.type.d.ts +3 -0
- package/dist/esm/type/decorator/api/property/index.d.ts +2 -0
- package/dist/esm/type/index.d.ts +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -1
- package/dist/esm/utility/auto-dto-context-queue.utility.d.ts +11 -0
- package/dist/esm/utility/auto-dto-context-queue.utility.js +37 -0
- package/dist/esm/utility/auto-dto-context-queue.utility.js.map +1 -0
- package/dist/esm/utility/defer-property-decorator-execution.utility.d.ts +5 -0
- package/dist/esm/utility/defer-property-decorator-execution.utility.js +14 -0
- package/dist/esm/utility/defer-property-decorator-execution.utility.js.map +1 -0
- package/dist/esm/utility/dto/auto-context-pop.utility.d.ts +6 -0
- package/dist/esm/utility/dto/auto-context-pop.utility.js +36 -0
- package/dist/esm/utility/dto/auto-context-pop.utility.js.map +1 -0
- package/dist/esm/utility/dto/auto-context-push.utility.d.ts +9 -0
- package/dist/esm/utility/dto/auto-context-push.utility.js +33 -0
- package/dist/esm/utility/dto/auto-context-push.utility.js.map +1 -0
- package/dist/esm/utility/dto/build-decorator.utility.js +9 -1
- package/dist/esm/utility/dto/build-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-dynamic.utility.js +21 -13
- package/dist/esm/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate.utility.js +35 -27
- package/dist/esm/utility/dto/generate.utility.js.map +1 -1
- package/dist/esm/utility/dto/index.d.ts +2 -1
- package/dist/esm/utility/get-auto-dto-context.utility.d.ts +7 -0
- package/dist/esm/utility/get-auto-dto-context.utility.js +17 -0
- package/dist/esm/utility/get-auto-dto-context.utility.js.map +1 -0
- package/dist/esm/utility/index.d.ts +9 -0
- package/dist/esm/utility/is-entity-constructor.utility.d.ts +8 -0
- package/dist/esm/utility/is-entity-constructor.utility.js +11 -0
- package/dist/esm/utility/is-entity-constructor.utility.js.map +1 -0
- package/dist/esm/utility/is-entity-factory.utility.d.ts +8 -0
- package/dist/esm/utility/is-entity-factory.utility.js +13 -0
- package/dist/esm/utility/is-entity-factory.utility.js.map +1 -0
- package/dist/esm/utility/is-entity-literal.utility.d.ts +7 -0
- package/dist/esm/utility/is-entity-literal.utility.js +11 -0
- package/dist/esm/utility/is-entity-literal.utility.js.map +1 -0
- package/dist/esm/utility/queue-auto-context-retry.utility.d.ts +6 -0
- package/dist/esm/utility/queue-auto-context-retry.utility.js +21 -0
- package/dist/esm/utility/queue-auto-context-retry.utility.js.map +1 -0
- package/dist/esm/utility/register-auto-dto-child.utility.d.ts +14 -0
- package/dist/esm/utility/register-auto-dto-child.utility.js +66 -0
- package/dist/esm/utility/register-auto-dto-child.utility.js.map +1 -0
- package/dist/esm/utility/resolve/decorator-context.utility.d.ts +13 -0
- package/dist/esm/utility/resolve/decorator-context.utility.js +29 -0
- package/dist/esm/utility/resolve/decorator-context.utility.js.map +1 -0
- package/dist/esm/utility/resolve/index.d.ts +2 -0
- package/dist/esm/utility/resolve/property-entity.utility.d.ts +16 -0
- package/dist/esm/utility/resolve/property-entity.utility.js +40 -0
- package/dist/esm/utility/resolve/property-entity.utility.js.map +1 -0
- package/dist/esm/utility/with-resolved-property-entity.utility.d.ts +11 -0
- package/dist/esm/utility/with-resolved-property-entity.utility.js +28 -0
- package/dist/esm/utility/with-resolved-property-entity.utility.js.map +1 -0
- package/package.json +4 -1
- package/dist/cjs/utility/dto/analize.utility.d.ts +0 -8
- package/dist/cjs/utility/dto/analize.utility.js +0 -17
- package/dist/cjs/utility/dto/analize.utility.js.map +0 -1
- package/dist/esm/utility/dto/analize.utility.d.ts +0 -8
- package/dist/esm/utility/dto/analize.utility.js +0 -15
- package/dist/esm/utility/dto/analize.utility.js.map +0 -1
|
@@ -27,6 +27,7 @@ var logger_utility = require('../../../utility/logger.utility.js');
|
|
|
27
27
|
* @template E The entity type
|
|
28
28
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the get-list function
|
|
29
29
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity list retrieval
|
|
30
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get-list | API Reference - ApiFunctionGetList}
|
|
30
31
|
*/
|
|
31
32
|
function ApiFunctionGetList(properties) {
|
|
32
33
|
const { entity } = properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA
|
|
1
|
+
{"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;AAMG;AACG,SAAU,kBAAkB,CAA2B,UAAqC,EAAA;AACjG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AACtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,iBAAmD,EAAE,YAA4B,EAAA;AACxJ,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAAgF;gBACrG,IAAI,EAAE,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACtE,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAEA,0BAAgB,CAAC,QAAQ;AACxC,gBAAA,MAAM,EAAE,iBAAiB;aACzB;YAED,MAAM,MAAM,GAAmC,MAAMC,oCAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAED,0BAAgB,CAAC,QAAQ,EAAEE,gCAAoB,CAAC,MAAM,EAAE,gBAAgB,CAAC;YAEnQ,IAAI,MAAM,EAAE;AACX,gBAAA,gBAAgB,CAAC,MAAM,GAAG,MAAM;YACjC;AAEA,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAM,qBAAqB,GAA4E;oBACtG,IAAI,EAAE,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,C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,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,QAAQ,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,CAAC;AAEnL,YAAA,MAAM,KAAK;QACZ;AAEA,QAAAG,4BAAa,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAA,+BAAA,EAAkC,MAAM,CAAC,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;QAC9G,MAAMJ,oCAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,QAAQ,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE5L,QAAA,MAAM,IAAII,mCAA4B,CACrCC,+BAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAEC,8BAAkB,CAAC,mBAAmB;AAC5C,SAAA,CAAC,CACF;IACF;AACD;;;;"}
|
|
@@ -5,5 +5,6 @@ import type { IApiFunctionProperties } from '../../../interface/decorator/api/in
|
|
|
5
5
|
* @template E The entity type
|
|
6
6
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the get-many function
|
|
7
7
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle retrieving multiple entities
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get-many | API Reference - ApiFunctionGetMany}
|
|
8
9
|
*/
|
|
9
10
|
export declare function ApiFunctionGetMany<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -27,6 +27,7 @@ var logger_utility = require('../../../utility/logger.utility.js');
|
|
|
27
27
|
* @template E The entity type
|
|
28
28
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the get-many function
|
|
29
29
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle retrieving multiple entities
|
|
30
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get-many | API Reference - ApiFunctionGetMany}
|
|
30
31
|
*/
|
|
31
32
|
function ApiFunctionGetMany(properties) {
|
|
32
33
|
const { entity } = properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-many.decorator.js","sources":["../../../../../../src/decorator/api/function/get-many.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA
|
|
1
|
+
{"version":3,"file":"get-many.decorator.js","sources":["../../../../../../src/decorator/api/function/get-many.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;AAMG;AACG,SAAU,kBAAkB,CAA2B,UAAqC,EAAA;AACjG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AAMtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,iBAAmD,EAAE,YAA4B,EAAA;AACxJ,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAAgF;gBACrG,IAAI,EAAE,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACtE,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAEA,0BAAgB,CAAC,QAAQ;AACxC,gB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AgB,CAAC,QAAQ,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,CAAC;AAEnL,YAAA,MAAM,KAAK;QACZ;AAEA,QAAAM,4BAAa,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAA,+BAAA,EAAkC,MAAM,CAAC,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;QAC9G,MAAMP,oCAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,QAAQ,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE5L,QAAA,MAAM,IAAIO,mCAA4B,CACrCJ,+BAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
|
|
@@ -5,5 +5,6 @@ import type { IApiFunctionProperties } from '../../../interface/decorator/api/in
|
|
|
5
5
|
* @template E The entity type
|
|
6
6
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the get function
|
|
7
7
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle single entity retrieval
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get | API Reference - ApiFunctionGet}
|
|
8
9
|
*/
|
|
9
10
|
export declare function ApiFunctionGet<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -27,6 +27,7 @@ var logger_utility = require('../../../utility/logger.utility.js');
|
|
|
27
27
|
* @template E The entity type
|
|
28
28
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the get function
|
|
29
29
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle single entity retrieval
|
|
30
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-get | API Reference - ApiFunctionGet}
|
|
30
31
|
*/
|
|
31
32
|
function ApiFunctionGet(properties) {
|
|
32
33
|
const { entity } = properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA
|
|
1
|
+
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA;;;;;;AAMG;AACG,SAAU,cAAc,CAA2B,UAAqC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;AAExD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AAMtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAAqD,aAA2C,EAAE,YAA4B,EAAA;AAChJ,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAA4E;gBACjG,IAAI,EAAE,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AAClE,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAEA,0BAAgB,CAAC,GAAG;AACnC,gBAAA,MAAM,EAAE,aAAa;aACrB;YAED,MAAM,MAAM,GAAkC,MAAMC,oCAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA6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AAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;QACjG,MAAMP,oCAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,GAAG,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAEvL,QAAA,MAAM,IAAIO,mCAA4B,CACrCJ,+BAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
|
|
@@ -5,5 +5,6 @@ import type { IApiFunctionProperties } from '../../../interface/decorator/api/fu
|
|
|
5
5
|
* @template E The entity type
|
|
6
6
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the update function
|
|
7
7
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-update | API Reference - ApiFunctionUpdate}
|
|
8
9
|
*/
|
|
9
10
|
export declare function ApiFunctionUpdate<E extends IApiBaseEntity>(properties: IApiFunctionProperties<E>): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -28,6 +28,7 @@ var get_decorator = require('./get.decorator.js');
|
|
|
28
28
|
* @template E The entity type
|
|
29
29
|
* @param {IApiFunctionProperties<E>} properties - Configuration properties for the update function
|
|
30
30
|
* @returns {(target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor} A decorator function that modifies the target method to handle entity updates
|
|
31
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-function/api-function-update | API Reference - ApiFunctionUpdate}
|
|
31
32
|
*/
|
|
32
33
|
function ApiFunctionUpdate(properties) {
|
|
33
34
|
const { entity } = properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA
|
|
1
|
+
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","EApiFunctionType","ApiSubscriberExecutor","EApiSubscriberOnType","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA;;;;;;AAMG;AACG,SAAU,iBAAiB,CAA2B,UAAqC,EAAA;AAChG,IAAA,MAAM,EAAE,MAAM,EAAE,GAA8B,UAAU;IACxD,MAAM,YAAY,GAAiGA,4BAAc,CAAI,EAAE,MAAM,EAAE,CAAC;AAChJ,IAAA,IAAI,WAAmG;AAEvG,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;QACtF,UAAU,CAAC,KAAK,GAAG,gBAAqD,QAAuC,EAAE,gBAAiD,EAAE,YAA4B,EAAA;AAC/L,YAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,YAAA,MAAM,gBAAgB,GAA+E;gBACpG,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AAC7D,gBAAA,MAAM,EAAE,cAAc;gBACtB,aAAa,EAAEC,0BAAgB,CAAC,MAAM;AACtC,gBAAA,MAAM,EAAE,gBAAgB;aACxB;YAED,MAAM,MAAM,GAAgD,MAAMC,oCAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAED,0BAAgB,CAAC,MAAM,EAAEE,gCA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0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAED,0BAAgB,CAAC,MAAM,EAAEE,gCAAoB,CAAC,KAAK,EAAE,gBAAgB,CAAC;QAErL,IAAI,WAAW,EAAE;AAChB,YAAA,OAAO,WAAW;QACnB;AAEA,QAAA,OAAO,MAAM;IACd;IAAE,OAAO,KAAK,EAAE;AACf,QAAA,MAAM,cAAc,GAAM,IAAI,MAAM,EAAE;AAEtC,QAAA,MAAM,qBAAqB,GAA4E;YACtG,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE;AACxD,YAAA,MAAM,EAAE,cAAc;YACtB,aAAa,EAAEF,0BAAgB,CAAC,MAAM;SACtC;AAED,QAAA,IAAI,KAAK,YAAYI,oBAAa,EAAE;YACnC,MAAMH,oCAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,MAAM,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,CAAC;AAEjL,YAAA,MAAM,KAAK;QACZ;AAEA,QAAAG,4BAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,IAAI,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC;QACpG,MAAMJ,oCAAqB,CAAC,+BAA+B,CAAC,WAAW,EAAE,cAAc,EAAED,0BAAgB,CAAC,MAAM,EAAEE,gCAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE1L,QAAA,MAAM,IAAII,mCAA4B,CACrCC,+BAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;IACF;AACD;;;;"}
|
|
@@ -5,5 +5,6 @@ import type { IApiMethodProperties } from '../../interface/decorator/api/index';
|
|
|
5
5
|
* @param {IApiMethodProperties<T>} options - Configuration options for the API method
|
|
6
6
|
* @returns {Function} A decorator function that applies multiple decorators to a controller method
|
|
7
7
|
* @template T - The entity type for the API method
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-method/api-method | API Reference - ApiMethod}
|
|
8
9
|
*/
|
|
9
10
|
export declare function ApiMethod<T extends IApiBaseEntity>(options: IApiMethodProperties<T>): <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
|
|
@@ -26,6 +26,7 @@ var generateException_utility = require('../../utility/dto/generate-exception.ut
|
|
|
26
26
|
* @param {IApiMethodProperties<T>} options - Configuration options for the API method
|
|
27
27
|
* @returns {Function} A decorator function that applies multiple decorators to a controller method
|
|
28
28
|
* @template T - The entity type for the API method
|
|
29
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-method/api-method | API Reference - ApiMethod}
|
|
29
30
|
*/
|
|
30
31
|
// eslint-disable-next-line @elsikora/typescript/no-unnecessary-type-parameters,@elsikora/typescript/no-unsafe-function-type
|
|
31
32
|
function ApiMethod(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.decorator.js","sources":["../../../../../src/decorator/api/method.decorator.ts"],"sourcesContent":[null],"names":["EApiAction","pluralizer","ApiOperation","ApiResponse","HttpCode","Throttle","ApiUnauthorizedResponse","DtoGenerateException","HttpStatus","ApiForbiddenResponse","ApiInternalServerErrorResponse","ApiNotFoundResponse","ApiBadRequestResponse","ApiTooManyRequestsResponse","RequestMethod","Delete","Get","Patch","Post","Put","ApiBearerAuth","ApiSecurity","ApiAuthorizationGuard","UseGuards","applyDecorators"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;AAKG;AACH;AACM,SAAU,SAAS,CAA2B,OAAgC,EAAA;IACnF,IAAI,OAAO,GAAW,EAAE;AAExB,IAAA,IAAI,OAAO,CAAC,MAAM,EAAE;AACnB,QAAA,QAAQ,OAAO,C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"names":["EApiAction","pluralizer","ApiOperation","ApiResponse","HttpCode","Throttle","ApiUnauthorizedResponse","DtoGenerateException","HttpStatus","ApiForbiddenResponse","ApiInternalServerErrorResponse","ApiNotFoundResponse","ApiBadRequestResponse","ApiTooManyRequestsResponse","RequestMethod","Delete","Get","Patch","Post","Put","ApiBearerAuth","ApiSecurity","ApiAuthorizationGuard","UseGuards","applyDecorators"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;;AAMG;AACH;AACM,SAAU,SAAS,CAA2B,OAAgC,EAAA;IACnF,IAAI,OAAO,GAAW,EAAE;AAExB,IAAA,IAAI,OAAO,CAAC,MAAM,EAAE;AACnB,QAAA,QAAQ,OAAO,CAAC,MAAM;AACrB,YAAA,KAAKA,sBAAU,CAAC,OAAO,EAAE;AACxB,gBAAA,OAAO,GAAG,CAAA,YAAA,EAAeC,qBAAU,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAE/E;YACD;AAEA,YAAA,KAAKD,sBAAU,CAAC,cAAc,EAAE;AAC/B,gBAAA,OAAO,GAAG,CAAA,oBAAA,EAAuBC,qBAAU,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAEvF;YACD;AAEA,YAAA,KAAKD,sBAAU,CAAC,WAAW,EAAE;AAC5B,gBAAA,OAAO,GAAG,CAAA,gBAAA,EAAmBC,qBAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAEjF;YACD;AAEA,YAAA,KAAKD,sBAAU,CAAC,WAAW,EAAE;AAC5B,gBAAA,OAAO,GAAG,CAAA,gBAAA,EAAmBC,qBAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI;gBAEjF;YACD;AAEA,YAAA,KAAK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ACC,mBAAW,CAAC,QAAQ,CAAC,CAAC;YACvC;QACD;AAEA,QAAA,IAAI,OAAO,CAAC,cAAc,CAAC,KAAK,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC;QAC1C;IACD;AAEA,IAAA,MAAM,CAAC,IAAI,CAACC,iCAAqB,CAAC;IAElC,UAAU,CAAC,IAAI,CAACC,gBAAS,CAAC,GAAG,MAAM,CAAC,CAAC;AAErC,IAAA,OAAOC,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;;;;"}
|
|
@@ -15,6 +15,7 @@ import type { TApiPropertyBaseProperties } from '../../../type/decorator/api/pro
|
|
|
15
15
|
* form data and query parameters.
|
|
16
16
|
* @param {TApiPropertyBaseProperties} properties - Configuration options for the boolean property
|
|
17
17
|
* @returns {Function} A decorator function that can be applied to a class property
|
|
18
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-boolean | API Reference - ApiPropertyBoolean}
|
|
18
19
|
* @example
|
|
19
20
|
* ```typescript
|
|
20
21
|
* // Simple boolean property
|
|
@@ -16,6 +16,7 @@ require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
|
16
16
|
require('../../../enum/decorator/api/route-type.enum.js');
|
|
17
17
|
var common = require('@nestjs/common');
|
|
18
18
|
var swagger = require('@nestjs/swagger');
|
|
19
|
+
var withResolvedPropertyEntity_utility = require('../../../utility/with-resolved-property-entity.utility.js');
|
|
19
20
|
var classTransformer = require('class-transformer');
|
|
20
21
|
var classValidator = require('class-validator');
|
|
21
22
|
|
|
@@ -35,6 +36,7 @@ var classValidator = require('class-validator');
|
|
|
35
36
|
* form data and query parameters.
|
|
36
37
|
* @param {TApiPropertyBaseProperties} properties - Configuration options for the boolean property
|
|
37
38
|
* @returns {Function} A decorator function that can be applied to a class property
|
|
39
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-boolean | API Reference - ApiPropertyBoolean}
|
|
38
40
|
* @example
|
|
39
41
|
* ```typescript
|
|
40
42
|
* // Simple boolean property
|
|
@@ -71,10 +73,15 @@ var classValidator = require('class-validator');
|
|
|
71
73
|
* ```
|
|
72
74
|
*/
|
|
73
75
|
function ApiPropertyBoolean(properties) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
return (target, propertyKey) => {
|
|
77
|
+
withResolvedPropertyEntity_utility.WithResolvedPropertyEntity(properties.entity, "ApiPropertyBoolean", (resolvedEntity) => {
|
|
78
|
+
const normalizedProperties = { ...properties, entity: resolvedEntity };
|
|
79
|
+
validateOptions(normalizedProperties);
|
|
80
|
+
const apiPropertyOptions = buildApiPropertyOptions(normalizedProperties);
|
|
81
|
+
const decorators = buildDecorators(normalizedProperties, apiPropertyOptions);
|
|
82
|
+
common.applyDecorators(...decorators)(target, propertyKey);
|
|
83
|
+
});
|
|
84
|
+
};
|
|
78
85
|
}
|
|
79
86
|
/**
|
|
80
87
|
* Builds the API property options object from the provided property configuration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["WithResolvedPropertyEntity","applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDG;AACG,S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AAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;QAEA,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;QAC/E;IACD;AAEA,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,0BAAA,EAA6B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IAClE;AACD;;;;"}
|
|
@@ -1,16 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Type } from "@nestjs/common";
|
|
3
|
-
import type { IAuthGuard } from "@nestjs/passport";
|
|
4
|
-
import type { TApiPropertyDescribeProperties } from '../../../type/decorator/api/property/index';
|
|
1
|
+
import type { TApiPropertyCopyProperties } from '../../../type/decorator/api/property/copy-properties.type';
|
|
5
2
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
3
|
+
* Copies every generated decorator (Swagger metadata, validators, transformers, DTO hooks) from an entity property
|
|
4
|
+
* onto a manual DTO property.
|
|
5
|
+
*
|
|
6
|
+
* Supports:
|
|
7
|
+
* - Direct entity references or lazy factories to break circular imports
|
|
8
|
+
* - Overriding the source route/method (`method` + `dtoType`)
|
|
9
|
+
* - Guard-aware decorator copies (pass the guard used during auto DTO generation)
|
|
10
|
+
* - Metadata extension (supply `metadata` to merge additional describe fields)
|
|
11
|
+
* - Auto context resolution for nested DTOs generated through the CRUD automator pipeline
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* class DepositCallbackRequestBodyDto {
|
|
15
|
+
* @ApiPropertyCopy({
|
|
16
|
+
* entity: () => Deposit,
|
|
17
|
+
* propertyName: "status",
|
|
18
|
+
* method: EApiRouteType.GET,
|
|
19
|
+
* dtoType: EApiDtoType.RESPONSE,
|
|
20
|
+
* })
|
|
21
|
+
* status!: EDepositStatus;
|
|
22
|
+
*
|
|
23
|
+
* @ApiPropertyCopy({
|
|
24
|
+
* entity: () => Deposit,
|
|
25
|
+
* propertyName: "amount",
|
|
26
|
+
* shouldAutoResolveContext: true,
|
|
27
|
+
* })
|
|
28
|
+
* amount!: number;
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
* @template E
|
|
32
|
+
* @param {TApiPropertyCopyProperties<E>} properties - Configuration describing which entity property to mirror.
|
|
33
|
+
* @returns {PropertyDecorator} Property decorator that applies copied metadata.
|
|
34
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-copy | API Reference - ApiPropertyCopy}
|
|
15
35
|
*/
|
|
16
|
-
export declare function ApiPropertyCopy<E>(
|
|
36
|
+
export declare function ApiPropertyCopy<E>(properties: TApiPropertyCopyProperties<E>): PropertyDecorator;
|
|
@@ -7,41 +7,94 @@ var buildDecorator_utility = require('../../../utility/dto/build-decorator.utili
|
|
|
7
7
|
var generateDynamic_utility = require('../../../utility/dto/generate-dynamic.utility.js');
|
|
8
8
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
9
9
|
var generateEntityInformation_utility = require('../../../utility/generate-entity-information.utility.js');
|
|
10
|
+
var queueAutoContextRetry_utility = require('../../../utility/queue-auto-context-retry.utility.js');
|
|
11
|
+
var decoratorContext_utility = require('../../../utility/resolve/decorator-context.utility.js');
|
|
12
|
+
var withResolvedPropertyEntity_utility = require('../../../utility/with-resolved-property-entity.utility.js');
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
15
|
+
* Copies every generated decorator (Swagger metadata, validators, transformers, DTO hooks) from an entity property
|
|
16
|
+
* onto a manual DTO property.
|
|
17
|
+
*
|
|
18
|
+
* Supports:
|
|
19
|
+
* - Direct entity references or lazy factories to break circular imports
|
|
20
|
+
* - Overriding the source route/method (`method` + `dtoType`)
|
|
21
|
+
* - Guard-aware decorator copies (pass the guard used during auto DTO generation)
|
|
22
|
+
* - Metadata extension (supply `metadata` to merge additional describe fields)
|
|
23
|
+
* - Auto context resolution for nested DTOs generated through the CRUD automator pipeline
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* class DepositCallbackRequestBodyDto {
|
|
27
|
+
* @ApiPropertyCopy({
|
|
28
|
+
* entity: () => Deposit,
|
|
29
|
+
* propertyName: "status",
|
|
30
|
+
* method: EApiRouteType.GET,
|
|
31
|
+
* dtoType: EApiDtoType.RESPONSE,
|
|
32
|
+
* })
|
|
33
|
+
* status!: EDepositStatus;
|
|
34
|
+
*
|
|
35
|
+
* @ApiPropertyCopy({
|
|
36
|
+
* entity: () => Deposit,
|
|
37
|
+
* propertyName: "amount",
|
|
38
|
+
* shouldAutoResolveContext: true,
|
|
39
|
+
* })
|
|
40
|
+
* amount!: number;
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
* @template E
|
|
44
|
+
* @param {TApiPropertyCopyProperties<E>} properties - Configuration describing which entity property to mirror.
|
|
45
|
+
* @returns {PropertyDecorator} Property decorator that applies copied metadata.
|
|
46
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-copy | API Reference - ApiPropertyCopy}
|
|
21
47
|
*/
|
|
22
|
-
function ApiPropertyCopy(
|
|
48
|
+
function ApiPropertyCopy(properties) {
|
|
49
|
+
const { dtoType, entity, guard, metadata, method, propertyName, shouldAutoResolveContext } = properties;
|
|
23
50
|
return function (target, key) {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
51
|
+
const executeWithEntity = (decoratorTarget) => {
|
|
52
|
+
withResolvedPropertyEntity_utility.WithResolvedPropertyEntity(entity, "ApiPropertyCopy", (resolvedEntity) => {
|
|
53
|
+
executeWithContext(decoratorTarget, resolvedEntity);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
const executeWithContext = (decoratorTarget, resolvedEntity) => {
|
|
57
|
+
const shouldUseAutoContext = shouldAutoResolveContext ?? false;
|
|
58
|
+
const resolvedContext = decoratorContext_utility.ResolveDecoratorContext(decoratorTarget, method, dtoType, shouldUseAutoContext);
|
|
59
|
+
if (!resolvedContext) {
|
|
60
|
+
if (shouldUseAutoContext) {
|
|
61
|
+
queueAutoContextRetry_utility.QueueAutoContextRetry(decoratorTarget, () => {
|
|
62
|
+
executeWithEntity(decoratorTarget);
|
|
63
|
+
});
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
throw errorException_utility.ErrorException("ApiPropertyCopy requires method and dtoType or a valid autoResolveContext.");
|
|
67
|
+
}
|
|
68
|
+
const { dtoType: resolvedDtoType, method: resolvedMethod } = resolvedContext;
|
|
69
|
+
const entityMetadata = generateEntityInformation_utility.GenerateEntityInformation(resolvedEntity);
|
|
70
|
+
if (!entityMetadata?.columns) {
|
|
71
|
+
throw errorException_utility.ErrorException(`Entity metadata for ${resolvedEntity.name} not found or invalid`);
|
|
72
|
+
}
|
|
73
|
+
const column = entityMetadata.columns.find((entityColumn) => entityColumn.name == propertyName);
|
|
74
|
+
if (!column) {
|
|
75
|
+
throw errorException_utility.ErrorException(`Property ${String(propertyName)} not found in entity ${resolvedEntity.name}`);
|
|
76
|
+
}
|
|
77
|
+
let propertyMetadata = column.metadata?.[propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY];
|
|
78
|
+
if (!propertyMetadata) {
|
|
79
|
+
throw errorException_utility.ErrorException(`Metadata for property ${String(propertyName)} in entity ${resolvedEntity.name} not found`);
|
|
80
|
+
}
|
|
81
|
+
if (metadata) {
|
|
82
|
+
propertyMetadata = { ...propertyMetadata, ...metadata };
|
|
83
|
+
}
|
|
84
|
+
const generatedDTOs = generateDynamic_utility.DtoGenerateDynamic(resolvedMethod, propertyMetadata, entityMetadata, resolvedDtoType, propertyName, guard);
|
|
85
|
+
const decorators = buildDecorator_utility.DtoBuildDecorator(resolvedMethod, propertyMetadata, entityMetadata, resolvedDtoType, propertyName, guard, generatedDTOs);
|
|
86
|
+
if (!decorators || decorators.length === 0) {
|
|
87
|
+
throw errorException_utility.ErrorException(`No decorators generated for property ${String(propertyName)} in entity ${resolvedEntity.name}`);
|
|
88
|
+
}
|
|
89
|
+
common.applyDecorators(...decorators)(target, key);
|
|
90
|
+
};
|
|
91
|
+
if (shouldAutoResolveContext) {
|
|
92
|
+
queueAutoContextRetry_utility.QueueAutoContextRetry(target, () => {
|
|
93
|
+
executeWithEntity(target);
|
|
94
|
+
});
|
|
95
|
+
return;
|
|
27
96
|
}
|
|
28
|
-
|
|
29
|
-
if (!column) {
|
|
30
|
-
throw errorException_utility.ErrorException(`Property ${String(propertyName)} not found in entity ${entity.name}`);
|
|
31
|
-
}
|
|
32
|
-
let propertyMetadata = column.metadata?.[propertyDescribe_constant.PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT.METADATA_KEY];
|
|
33
|
-
if (!propertyMetadata) {
|
|
34
|
-
throw errorException_utility.ErrorException(`Metadata for property ${String(propertyName)} in entity ${entity.name} not found`);
|
|
35
|
-
}
|
|
36
|
-
if (metadata) {
|
|
37
|
-
propertyMetadata = { ...propertyMetadata, ...metadata };
|
|
38
|
-
}
|
|
39
|
-
const generatedDTOs = generateDynamic_utility.DtoGenerateDynamic(method, propertyMetadata, entityMetadata, dtoType, propertyName, currentGuard);
|
|
40
|
-
const decorators = buildDecorator_utility.DtoBuildDecorator(method, propertyMetadata, entityMetadata, dtoType, propertyName, currentGuard, generatedDTOs);
|
|
41
|
-
if (!decorators || decorators.length === 0) {
|
|
42
|
-
throw errorException_utility.ErrorException(`No decorators generated for property ${String(propertyName)} in entity ${entity.name}`);
|
|
43
|
-
}
|
|
44
|
-
common.applyDecorators(...decorators)(target, key);
|
|
97
|
+
executeWithEntity(target);
|
|
45
98
|
};
|
|
46
99
|
}
|
|
47
100
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.decorator.js","sources":["../../../../../../src/decorator/api/property/copy.decorator.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"copy.decorator.js","sources":["../../../../../../src/decorator/api/property/copy.decorator.ts"],"sourcesContent":[null],"names":["WithResolvedPropertyEntity","ResolveDecoratorContext","QueueAutoContextRetry","ErrorException","GenerateEntityInformation","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT","DtoGenerateDynamic","DtoBuildDecorator","applyDecorators"],"mappings":";;;;;;;;;;;;;AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCG;AACG,SAAU,eAAe,CAAI,UAAyC,EAAA;AAC3E,IAAA,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,wBAAwB,EAAE,GAAkC,UAAU;IAEtI,OAAO,UAAU,MAAc,EAAE,GAAoB,EAAA;AACpD,QAAA,MAAM,iBAAiB,GAAG,CAAC,eAAuB,KAAU;YAC3DA,6DAA0B,CAAC,MAA4B,EAAE,iBAAiB,EAAE,CAAC,cAAqD,KAAI;AACrI,gBAAA,kBAAkB,CAAC,eAAe,EAAE,cAAyB,CAAC;AAC/D,YAAA,CAAC,CAAC;AACH,QAAA,CAAC;AAED,QAAA,MAAM,kBAAkB,GAAG,CAAC,eAAuB,EAAE,cAAuB,KAAU;AACrF,YAAA,MAAM,oBAAoB,GAAY,wBAAwB,IAAI,KAAK;AACvE,YAAA,MAAM,eAAe,GAAgEC,gDAAuB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,CAAC;YAEpK,IA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EAAE,cAAc,EAAE,eAAe,EAAE,YAAsB,EAAE,KAAK,CAAC;AAErL,YAAA,MAAM,UAAU,GAAyCC,wCAAiB,CAAC,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,YAAsB,EAAE,KAAK,EAAE,aAAa,CAAC;YAE3L,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;AAC3C,gBAAA,MAAMJ,qCAAc,CAAC,CAAA,qCAAA,EAAwC,MAAM,CAAC,YAAY,CAAC,CAAA,WAAA,EAAc,cAAc,CAAC,IAAI,CAAA,CAAE,CAAC;YACtH;YAEAK,sBAAe,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC;AAC5C,QAAA,CAAC;QAED,IAAI,wBAAwB,EAAE;AAC7B,YAAAN,mDAAqB,CAAC,MAAM,EAAE,MAAK;gBAClC,iBAAiB,CAAC,MAAM,CAAC;AAC1B,YAAA,CAAC,CAAC;YAEF;QACD;QAEA,iBAAiB,CAAC,MAAM,CAAC;AAC1B,IAAA,CAAC;AACF;;;;"}
|
|
@@ -15,6 +15,7 @@ import type { TApiPropertyDateProperties } from '../../../type/decorator/api/pro
|
|
|
15
15
|
* and handles string-to-Date transformation for request DTOs.
|
|
16
16
|
* @param {TApiPropertyDateProperties} properties - Configuration options for the date property
|
|
17
17
|
* @returns {Function} A decorator function that can be applied to a class property
|
|
18
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-date | API Reference - ApiPropertyDate}
|
|
18
19
|
* @example
|
|
19
20
|
* ```typescript
|
|
20
21
|
* // Simple date property (YYYY-MM-DD)
|
|
@@ -16,6 +16,7 @@ require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
|
16
16
|
require('../../../enum/decorator/api/route-type.enum.js');
|
|
17
17
|
var common = require('@nestjs/common');
|
|
18
18
|
var swagger = require('@nestjs/swagger');
|
|
19
|
+
var withResolvedPropertyEntity_utility = require('../../../utility/with-resolved-property-entity.utility.js');
|
|
19
20
|
var classTransformer = require('class-transformer');
|
|
20
21
|
var classValidator = require('class-validator');
|
|
21
22
|
|
|
@@ -35,6 +36,7 @@ var classValidator = require('class-validator');
|
|
|
35
36
|
* and handles string-to-Date transformation for request DTOs.
|
|
36
37
|
* @param {TApiPropertyDateProperties} properties - Configuration options for the date property
|
|
37
38
|
* @returns {Function} A decorator function that can be applied to a class property
|
|
39
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-date | API Reference - ApiPropertyDate}
|
|
38
40
|
* @example
|
|
39
41
|
* ```typescript
|
|
40
42
|
* // Simple date property (YYYY-MM-DD)
|
|
@@ -75,10 +77,15 @@ var classValidator = require('class-validator');
|
|
|
75
77
|
* ```
|
|
76
78
|
*/
|
|
77
79
|
function ApiPropertyDate(properties) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
return (target, propertyKey) => {
|
|
81
|
+
withResolvedPropertyEntity_utility.WithResolvedPropertyEntity(properties.entity, "ApiPropertyDate", (resolvedEntity) => {
|
|
82
|
+
const normalizedProperties = { ...properties, entity: resolvedEntity };
|
|
83
|
+
validateOptions(normalizedProperties);
|
|
84
|
+
const apiPropertyOptions = buildApiPropertyOptions(normalizedProperties);
|
|
85
|
+
const decorators = buildDecorators(normalizedProperties, apiPropertyOptions);
|
|
86
|
+
common.applyDecorators(...decorators)(target, propertyKey);
|
|
87
|
+
});
|
|
88
|
+
};
|
|
82
89
|
}
|
|
83
90
|
/**
|
|
84
91
|
* Builds the API property options object from the provided date property configuration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["WithResolvedPropertyEntity","applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;AACrE,IAAA,OAAO,CAAC,MAAc,EAAE,WAA4B,KAAU;QAC7DA,6DAA0B,CAAC,UAAU,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,cAAqD,KAAI;YAC1H,MAAM,oBAAoB,GAA+B,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE;YAElG,eAAe,CAAC,oBAAoB,CAAC;AAErC,YAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,oBAAoB,CAAC;YAC5F,MAAM,UAAU,GAA6B,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAEtGC,sBAAe,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC;AACpD,QAAA,CAAC,CAAC;AACH,IAAA,CAAC;AACF;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;IACtE,MAAM,OAAO,GAAW,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;AAErD,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAA,EAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA,CAAE;;AAEzF,QAAA,Q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AEA,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;QAC/E;IACD;AAEA,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IAC/D;AACD;;;;"}
|
|
@@ -79,7 +79,7 @@ import type { TApiPropertyDescribeProperties } from '../../../type/decorator/api
|
|
|
79
79
|
* })
|
|
80
80
|
* posts: Post[];
|
|
81
81
|
* ```
|
|
82
|
-
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators
|
|
82
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators/api-property/api-property-describe | API Reference - ApiPropertyDescribe}
|
|
83
83
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
|
|
84
84
|
*/
|
|
85
85
|
export declare function ApiPropertyDescribe(properties: TApiPropertyDescribeProperties): PropertyDecorator;
|