@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.factory.js","sources":["../../../../../src/factory/api/controller.factory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+Ba,oBAAoB,CAAA;AAQrB,IAAA,MAAA;AACO,IAAA,UAAA;AARlB,IAAA,IAAc,eAAe,GAAA;AAC5B,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,SAA6C;IACjE;AAEiB,IAAA,MAAM;IAEvB,WAAA,CACW,MAAqC,EAC9B,UAAuC,EAAA;QAD9C,IAAA,CAAA,MAAM,GAAN,MAAM;QACC,IAAA,CAAA,UAAU,GAAV,UAAU;QAE3B,IAAI,CAAC,MAAM,GAAG,yBAAyB,CAAI,UAAU,CAAC,MAAM,CAAC;AAC7D,QAAA,qBAAqB,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;A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BAA4B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAE,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE3O,gBAAA,MAAM,KAAK;YACZ;QACD,CAAC,EACD,MAAM,EACN,EAAE,KAAK,EAAE,UAAU,EAAE,CACrB;IACF;AACA;;;;"}
|
|
1
|
+
{"version":3,"file":"controller.factory.js","sources":["../../../../../src/factory/api/controller.factory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+Ba,oBAAoB,CAAA;AAQrB,IAAA,MAAA;AACO,IAAA,UAAA;AARlB,IAAA,IAAc,eAAe,GAAA;AAC5B,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,SAA6C;IACjE;AAEiB,IAAA,MAAM;IAEvB,WAAA,CACW,MAAqC,EAC9B,UAAuC,EAAA;QAD9C,IAAA,CAAA,MAAM,GAAN,MAAM;QACC,IAAA,CAAA,UAAU,GAAV,UAAU;QAE3B,IAAI,CAAC,MAAM,GAAG,yBAAyB,CAAI,UAAU,CAAC,MAAM,CAAC;AAE7D,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;AAC5B,YAAA,MAAM,cAAc,CAAC,CAAA,uBAAA,EAA0B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,iBAAiB,CAAA,UAAA,CAAY,CAAC;QAC7G;AAEA,QAAA,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QAC9I,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,IAAI,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AAM,MAAM,gCAAgC,CAAO,qBAAqB,EAAE,aAAa,CAAC;AACjH,gBAAA,MAAM,GAAG,GAA8B,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC;AAEjO,gBAAA,OAAO,eAAe,CAAC,GAA0B,EAAE,mBAAmB,EAAE;;AAEvE,oBAAA,uBAAuB,EAAE,IAAI;AAC7B,iBAAA,CAAC;YACH;YAAE,OAAO,KAAK,EAAE;AACf,gBAAA,MAAM,qBAAqB,GAAgD;AAC1E,oBAAA,IAAI,EAAE,EAAE,GAAI,sBAAsB,CAAC,IAAe,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE;AACjI,oBAAA,MAAM,EAAE,cAAc;oBACtB,UAAU,EAAE,aAAa,CAAC,MAAM;iBAChC;gBACD,MAAM,qBAAqB,CAAC,4BAA4B,CAAC,IAAI,CAAC,WAA6D,EAAE,cAAc,EAAE,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAc,CAAC;AAE3O,gBAAA,MAAM,KAAK;YACZ;QACD,CAAC,EACD,MAAM,EACN,EAAE,KAAK,EAAE,UAAU,EAAE,CACrB;IACF;AACA;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -31,6 +31,7 @@ export { DATE_CONSTANT } from './constant/date.constant.js';
|
|
|
31
31
|
export { CONTROLLER_API_DECORATOR_CONSTANT } from './constant/decorator/api/controller.constant.js';
|
|
32
32
|
export { FUNCTION_API_DECORATOR_CONSTANT } from './constant/decorator/api/function.constant.js';
|
|
33
33
|
export { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from './constant/decorator/api/property-describe.constant.js';
|
|
34
|
+
export { AUTO_CONTEXT_DTO_CONSTANT } from './constant/dto/auto-context.constant.js';
|
|
34
35
|
export { EXCEPTION_DTO_CONSTANT } from './constant/dto/exception.constant.js';
|
|
35
36
|
export { LIST_DTO_CONSTANT } from './constant/dto/list.constant.js';
|
|
36
37
|
export { TRANSFORMER_VALUE_DTO_CONSTANT } from './constant/dto/transformer-value.constant.js';
|
|
@@ -115,7 +116,9 @@ export { AuthorizationScopeMergeWhere } from './utility/authorization/scope/merg
|
|
|
115
116
|
export { AuthorizationResolveDefaultSubject } from './utility/authorization/subject/resolve-default-subject.utility.js';
|
|
116
117
|
export { CamelCaseString } from './utility/camel-case-string.utility.js';
|
|
117
118
|
export { CapitalizeString } from './utility/capitalize-string.utility.js';
|
|
118
|
-
export {
|
|
119
|
+
export { DeferPropertyDecoratorExecution } from './utility/defer-property-decorator-execution.utility.js';
|
|
120
|
+
export { DtoAutoContextPop } from './utility/dto/auto-context-pop.utility.js';
|
|
121
|
+
export { DtoAutoContextPush } from './utility/dto/auto-context-push.utility.js';
|
|
119
122
|
export { DtoBuildDecorator } from './utility/dto/build-decorator.utility.js';
|
|
120
123
|
export { DtoGenerateCacheKey } from './utility/dto/generate-cache-key.utility.js';
|
|
121
124
|
export { DtoGenerateDecorator } from './utility/dto/generate-decorator.utility.js';
|
|
@@ -135,9 +138,18 @@ export { DtoValidatePropertyConfig } from './utility/dto/validate-property-confi
|
|
|
135
138
|
export { ErrorException } from './utility/error-exception.utility.js';
|
|
136
139
|
export { ErrorString } from './utility/error-string.utility.js';
|
|
137
140
|
export { GenerateEntityInformation } from './utility/generate-entity-information.utility.js';
|
|
141
|
+
export { GetAutoDtoContext } from './utility/get-auto-dto-context.utility.js';
|
|
138
142
|
export { GetEntityColumns } from './utility/get-entity-columns.utility.js';
|
|
143
|
+
export { IsEntityConstructor } from './utility/is-entity-constructor.utility.js';
|
|
144
|
+
export { IsEntityFactory } from './utility/is-entity-factory.utility.js';
|
|
145
|
+
export { IsEntityLiteral } from './utility/is-entity-literal.utility.js';
|
|
139
146
|
export { IsErrorOfType } from './utility/is-error-of-type.utility.js';
|
|
140
147
|
export { LoggerUtility } from './utility/logger.utility.js';
|
|
148
|
+
export { QueueAutoContextRetry } from './utility/queue-auto-context-retry.utility.js';
|
|
149
|
+
export { GetRegisteredAutoDtoChildren, RegisterAutoDtoChild } from './utility/register-auto-dto-child.utility.js';
|
|
150
|
+
export { ResolveDecoratorContext } from './utility/resolve/decorator-context.utility.js';
|
|
151
|
+
export { ResolvePropertyEntity } from './utility/resolve/property-entity.utility.js';
|
|
152
|
+
export { WithResolvedPropertyEntity } from './utility/with-resolved-property-entity.utility.js';
|
|
141
153
|
export { AllOrNoneOfListedPropertiesValidator } from './validator/all-or-none-of-listed-properties.validator.js';
|
|
142
154
|
export { HasAtLeastOneAndOnlyOneOfListedPropertiesValidator } from './validator/has-at-least-one-and-only-one-of-listed-properties.validator.js';
|
|
143
155
|
export { HasAtLeastOneOfListedPropertiesValidator } from './validator/has-at-least-one-of-listed-properties.validator.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,6 +5,5 @@ import type { TApiAuthorizationPolicyHookResult } from '../../../../../type/clas
|
|
|
5
5
|
export interface IApiAuthorizationPolicyRegistry {
|
|
6
6
|
buildAggregatedPolicy<E extends IApiBaseEntity, TAction extends string>(entity: new () => E, action: TAction): Promise<IApiAuthorizationPolicy<E, TApiAuthorizationPolicyHookResult<TAction, E>> | undefined>;
|
|
7
7
|
clear(): void;
|
|
8
|
-
registerPolicy<E extends IApiBaseEntity, R>(policy: IApiAuthorizationPolicy<E, R>): void;
|
|
9
8
|
registerSubscriber<E extends IApiBaseEntity>(registration: IApiAuthorizationPolicySubscriberRegistration<E>): void;
|
|
10
9
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../../../interface/api-base-entity.interface';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
2
3
|
import type { TApiPropertyBaseArrayOptionalProperties, TApiPropertyBaseArrayRequiredProperties, TApiPropertyBaseRequestProperties, TApiPropertyBaseResponseProperties } from '../index';
|
|
3
4
|
export type TApiPropertyBaseProperties = {
|
|
4
5
|
description?: string;
|
|
5
|
-
entity: IApiBaseEntity
|
|
6
|
+
entity: IApiBaseEntity | Type<IApiBaseEntity>;
|
|
6
7
|
isNullable?: boolean;
|
|
7
8
|
} & (TApiPropertyBaseArrayOptionalProperties | TApiPropertyBaseArrayRequiredProperties) & (TApiPropertyBaseRequestProperties | TApiPropertyBaseResponseProperties);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EApiDtoType, EApiRouteType } from '../../../../enum/index';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
import type { IAuthGuard } from "@nestjs/passport";
|
|
4
|
+
import type { TApiPropertyDescribeProperties } from '../../../index';
|
|
5
|
+
export type TApiPropertyCopyProperties<E> = {
|
|
6
|
+
dtoType?: EApiDtoType;
|
|
7
|
+
entity: (() => Type<E> | undefined) | Type<E>;
|
|
8
|
+
guard?: Type<IAuthGuard>;
|
|
9
|
+
metadata?: Partial<TApiPropertyDescribeProperties>;
|
|
10
|
+
method?: EApiRouteType;
|
|
11
|
+
propertyName: keyof E;
|
|
12
|
+
shouldAutoResolveContext?: boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../../../../interface/api-base-entity.interface';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
export type TApiPropertyEntity<E extends IApiBaseEntity = IApiBaseEntity> = (() => IApiBaseEntity | Type<E> | undefined) | IApiBaseEntity | Type<E>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type * from './base/index';
|
|
2
|
+
export { type TApiPropertyCopyProperties } from './copy-properties.type';
|
|
2
3
|
export { type TApiPropertyDateProperties } from './date-properties.type';
|
|
3
4
|
export type * from './default/string/index';
|
|
4
5
|
export type * from './describe/index';
|
|
6
|
+
export { type TApiPropertyEntity } from './entity.type';
|
|
5
7
|
export { type TApiPropertyEnumProperties } from './enum-properties.type';
|
|
6
8
|
export { type TApiPropertyNumberProperties } from './number-properties.type';
|
|
7
9
|
export type * from './object/index';
|
package/dist/esm/type/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type TApiRequestTransformer } from './api-request-transformer.type';
|
|
2
|
+
export { type IDtoAutoContextMetadata } from './auto-context-metadata.type';
|
|
2
3
|
export type * from './class/index';
|
|
3
4
|
export type * from './class/api/authorization/index';
|
|
4
5
|
export type * from './decorator/api/controller/index';
|
|
@@ -15,7 +15,6 @@ import '../../../enum/decorator/api/route-type.enum.js';
|
|
|
15
15
|
import { assignMetadata } from '@nestjs/common';
|
|
16
16
|
import { ROUTE_ARGS_METADATA, PARAMTYPES_METADATA } from '@nestjs/common/constants';
|
|
17
17
|
import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum';
|
|
18
|
-
import '../../../constant/decorator/api/function.constant.js';
|
|
19
18
|
import '../../../constant/utility/dto/constant.js';
|
|
20
19
|
import '@nestjs/swagger';
|
|
21
20
|
import '../../../external/tslib/tslib.es6.js';
|
|
@@ -29,6 +28,7 @@ import '../../../enum/filter-operation.enum.js';
|
|
|
29
28
|
import '../../../validator/must-match-one-of-schemas.validator.js';
|
|
30
29
|
import { DtoGenerate } from '../../dto/generate.utility.js';
|
|
31
30
|
import '../../../enum/filter-order-direction.enum.js';
|
|
31
|
+
import '../../../constant/decorator/api/function.constant.js';
|
|
32
32
|
import 'typeorm';
|
|
33
33
|
import 'reflect-metadata';
|
|
34
34
|
import '../../../validator/all-or-none-of-listed-properties.validator.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executes and clears all queued handlers that were waiting for the DTO context on the specified prototype.
|
|
3
|
+
* @param {object} target - DTO prototype whose queued handlers should run.
|
|
4
|
+
*/
|
|
5
|
+
export declare function FlushAutoDtoContextExecutions(target: object): void;
|
|
6
|
+
/**
|
|
7
|
+
* Queues a handler to run once the DTO context becomes available for the specified prototype.
|
|
8
|
+
* @param {object} target - DTO prototype awaiting context.
|
|
9
|
+
* @param {() => void} handler - Callback to execute after context is defined.
|
|
10
|
+
*/
|
|
11
|
+
export declare function QueueAutoDtoContextExecution(target: object, handler: () => void): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const AUTO_DTO_CONTEXT_QUEUE = new WeakMap();
|
|
2
|
+
/**
|
|
3
|
+
* Executes and clears all queued handlers that were waiting for the DTO context on the specified prototype.
|
|
4
|
+
* @param {object} target - DTO prototype whose queued handlers should run.
|
|
5
|
+
*/
|
|
6
|
+
function FlushAutoDtoContextExecutions(target) {
|
|
7
|
+
const queue = AUTO_DTO_CONTEXT_QUEUE.get(target);
|
|
8
|
+
if (!queue)
|
|
9
|
+
return;
|
|
10
|
+
AUTO_DTO_CONTEXT_QUEUE.delete(target);
|
|
11
|
+
for (const handler of queue.values()) {
|
|
12
|
+
try {
|
|
13
|
+
handler();
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
// ignore to avoid breaking other handlers
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Queues a handler to run once the DTO context becomes available for the specified prototype.
|
|
22
|
+
* @param {object} target - DTO prototype awaiting context.
|
|
23
|
+
* @param {() => void} handler - Callback to execute after context is defined.
|
|
24
|
+
*/
|
|
25
|
+
function QueueAutoDtoContextExecution(target, handler) {
|
|
26
|
+
if (!target || typeof handler !== "function")
|
|
27
|
+
return;
|
|
28
|
+
let queue = AUTO_DTO_CONTEXT_QUEUE.get(target);
|
|
29
|
+
if (!queue) {
|
|
30
|
+
queue = new Set();
|
|
31
|
+
AUTO_DTO_CONTEXT_QUEUE.set(target, queue);
|
|
32
|
+
}
|
|
33
|
+
queue.add(handler);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { FlushAutoDtoContextExecutions, QueueAutoDtoContextExecution };
|
|
37
|
+
//# sourceMappingURL=auto-dto-context-queue.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-dto-context-queue.utility.js","sources":["../../../../src/utility/auto-dto-context-queue.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAAqC,IAAI,OAAO,EAA2B;AAEvG;;;AAGG;AACG,SAAU,6BAA6B,CAAC,MAAc,EAAA;IAC3D,MAAM,KAAK,GAAgC,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC;AAE7E,IAAA,IAAI,CAAC,KAAK;QAAE;AAEZ,IAAA,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC;IAErC,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE;AACrC,QAAA,IAAI;AACH,YAAA,OAAO,EAAE;QACV;AAAE,QAAA,MAAM;;QAER;IACD;AACD;AAEA;;;;AAIG;AACG,SAAU,4BAA4B,CAAC,MAAc,EAAE,OAAmB,EAAA;AAC/E,IAAA,IAAI,CAAC,MAAM,IAAI,OAAO,OAAO,KAAK,UAAU;QAAE;IAE9C,IAAI,KAAK,GAAgC,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC;IAE3E,IAAI,CAAC,KAAK,EAAE;AACX,QAAA,KAAK,GAAG,IAAI,GAAG,EAAc;AAC7B,QAAA,sBAAsB,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC;IAC1C;AAEA,IAAA,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AACnB;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defers decorator execution to the next microtask (or macrotask) to allow entity factories to resolve.
|
|
3
|
+
* @param {() => void} handler - Callback executed after the current call stack completes.
|
|
4
|
+
*/
|
|
5
|
+
export declare function DeferPropertyDecoratorExecution(handler: () => void): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defers decorator execution to the next microtask (or macrotask) to allow entity factories to resolve.
|
|
3
|
+
* @param {() => void} handler - Callback executed after the current call stack completes.
|
|
4
|
+
*/
|
|
5
|
+
function DeferPropertyDecoratorExecution(handler) {
|
|
6
|
+
if (typeof queueMicrotask === "function") {
|
|
7
|
+
queueMicrotask(handler);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
setTimeout(handler, 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { DeferPropertyDecoratorExecution };
|
|
14
|
+
//# sourceMappingURL=defer-property-decorator-execution.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defer-property-decorator-execution.utility.js","sources":["../../../../src/utility/defer-property-decorator-execution.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;AAGG;AACG,SAAU,+BAA+B,CAAC,OAAmB,EAAA;AAClE,IAAA,IAAI,OAAO,cAAc,KAAK,UAAU,EAAE;QACzC,cAAc,CAAC,OAAO,CAAC;QAEvB;IACD;AAEA,IAAA,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;AACvB;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pops DTO auto-context from the provided DTO prototype.
|
|
3
|
+
* @param {object} target - DTO prototype to update.
|
|
4
|
+
* @param {WeakSet<object>} [visited] - Set of visited prototypes to avoid infinite recursion.
|
|
5
|
+
*/
|
|
6
|
+
export declare function DtoAutoContextPop(target: object, visited?: WeakSet<object>): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DTO_AUTO_CONTEXT_METADATA_KEY } from '../../constant/dto/auto-context.constant.js';
|
|
2
|
+
import { GetRegisteredAutoDtoChildren } from '../register-auto-dto-child.utility.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Pops DTO auto-context from the provided DTO prototype.
|
|
6
|
+
* @param {object} target - DTO prototype to update.
|
|
7
|
+
* @param {WeakSet<object>} [visited] - Set of visited prototypes to avoid infinite recursion.
|
|
8
|
+
*/
|
|
9
|
+
function DtoAutoContextPop(target, visited) {
|
|
10
|
+
if (!target)
|
|
11
|
+
return;
|
|
12
|
+
const stack = Reflect.getMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, target);
|
|
13
|
+
if (stack && stack.length > 0) {
|
|
14
|
+
stack.pop();
|
|
15
|
+
if (stack.length === 0) {
|
|
16
|
+
Reflect.deleteMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, target);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
Reflect.defineMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, stack, target);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
visited ??= new WeakSet();
|
|
23
|
+
if (visited.has(target))
|
|
24
|
+
return;
|
|
25
|
+
visited.add(target);
|
|
26
|
+
// eslint-disable-next-line @elsikora/typescript/no-unsafe-function-type
|
|
27
|
+
const children = GetRegisteredAutoDtoChildren(target);
|
|
28
|
+
if (!children)
|
|
29
|
+
return;
|
|
30
|
+
for (const child of children) {
|
|
31
|
+
DtoAutoContextPop(child.prototype, visited);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { DtoAutoContextPop };
|
|
36
|
+
//# sourceMappingURL=auto-context-pop.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-context-pop.utility.js","sources":["../../../../../src/utility/dto/auto-context-pop.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAKA;;;;AAIG;AACG,SAAU,iBAAiB,CAAC,MAAc,EAAE,OAAyB,EAAA;AAC1E,IAAA,IAAI,CAAC,MAAM;QAAE;IAEb,MAAM,KAAK,GAA+C,OAAO,CAAC,WAAW,GAAG,6BAA6B,EAAE,MAAM,CAA+C;IAEpK,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QAC9B,KAAK,CAAC,GAAG,EAAE;AAEX,QAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACvB,OAAO,CAAC,cAAc,GAAG,6BAA6B,EAAE,MAAM,CAAC;QAChE;aAAO;YACN,OAAO,CAAC,cAAc,GAAG,6BAA6B,EAAE,KAAK,EAAE,MAAM,CAAC;QACvE;IACD;AAEA,IAAA,OAAO,KAAK,IAAI,OAAO,EAAU;AAEjC,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;QAAE;AACzB,IAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;;AAGnB,IAAA,MAAM,QAAQ,GAA8B,4BAA4B,CAAC,MAAM,CAAC;AAEhF,IAAA,IAAI,CAAC,QAAQ;QAAE;AAEf,IAAA,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;AAC7B,QAAA,iBAAiB,CAAC,KAAK,CAAC,SAAmB,EAAE,OAAO,CAAC;IACtD;AACD;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EApiDtoType, EApiRouteType } from '../../enum/index';
|
|
2
|
+
/**
|
|
3
|
+
* Pushes DTO auto-context onto the provided DTO prototype so property decorators can read it later.
|
|
4
|
+
* @param {object} target - DTO prototype to annotate.
|
|
5
|
+
* @param {EApiRouteType} method - Route method currently being generated.
|
|
6
|
+
* @param {EApiDtoType} dtoType - DTO type currently being generated.
|
|
7
|
+
* @param {WeakSet<object>} [visited] - Set of visited prototypes to avoid infinite recursion.
|
|
8
|
+
*/
|
|
9
|
+
export declare function DtoAutoContextPush(target: object, method: EApiRouteType, dtoType: EApiDtoType, visited?: WeakSet<object>): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DTO_AUTO_CONTEXT_METADATA_KEY } from '../../constant/dto/auto-context.constant.js';
|
|
2
|
+
import { FlushAutoDtoContextExecutions } from '../auto-dto-context-queue.utility.js';
|
|
3
|
+
import { GetRegisteredAutoDtoChildren } from '../register-auto-dto-child.utility.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Pushes DTO auto-context onto the provided DTO prototype so property decorators can read it later.
|
|
7
|
+
* @param {object} target - DTO prototype to annotate.
|
|
8
|
+
* @param {EApiRouteType} method - Route method currently being generated.
|
|
9
|
+
* @param {EApiDtoType} dtoType - DTO type currently being generated.
|
|
10
|
+
* @param {WeakSet<object>} [visited] - Set of visited prototypes to avoid infinite recursion.
|
|
11
|
+
*/
|
|
12
|
+
function DtoAutoContextPush(target, method, dtoType, visited) {
|
|
13
|
+
if (!target)
|
|
14
|
+
return;
|
|
15
|
+
const stack = Reflect.getMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, target) ?? [];
|
|
16
|
+
stack.push({ dtoType, method });
|
|
17
|
+
Reflect.defineMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, stack, target);
|
|
18
|
+
FlushAutoDtoContextExecutions(target);
|
|
19
|
+
visited ??= new WeakSet();
|
|
20
|
+
if (visited.has(target))
|
|
21
|
+
return;
|
|
22
|
+
visited.add(target);
|
|
23
|
+
// eslint-disable-next-line @elsikora/typescript/no-unsafe-function-type
|
|
24
|
+
const children = GetRegisteredAutoDtoChildren(target);
|
|
25
|
+
if (!children)
|
|
26
|
+
return;
|
|
27
|
+
for (const child of children) {
|
|
28
|
+
DtoAutoContextPush(child.prototype, method, dtoType, visited);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { DtoAutoContextPush };
|
|
33
|
+
//# sourceMappingURL=auto-context-push.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-context-push.utility.js","sources":["../../../../../src/utility/dto/auto-context-push.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAOA;;;;;;AAMG;AACG,SAAU,kBAAkB,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAoB,EAAE,OAAyB,EAAA;AACxH,IAAA,IAAI,CAAC,MAAM;QAAE;AAEb,IAAA,MAAM,KAAK,GAAoC,OAAO,CAAC,WAAW,GAAG,6BAA6B,EAAE,MAAM,CAAoC,IAAI,EAAE;IACpJ,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAC/B,OAAO,CAAC,cAAc,GAAG,6BAA6B,EAAE,KAAK,EAAE,MAAM,CAAC;IACtE,6BAA6B,CAAC,MAAM,CAAC;AAErC,IAAA,OAAO,KAAK,IAAI,OAAO,EAAU;AAEjC,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;QAAE;AACzB,IAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;;AAGnB,IAAA,MAAM,QAAQ,GAA8B,4BAA4B,CAAC,MAAM,CAAC;AAEhF,IAAA,IAAI,CAAC,QAAQ;QAAE;AAEf,IAAA,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC7B,kBAAkB,CAAC,KAAK,CAAC,SAAmB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;IACxE;AACD;;;;"}
|
|
@@ -16,6 +16,7 @@ import { DtoGenerateDecorator } from './generate-decorator.utility.js';
|
|
|
16
16
|
import { DtoGetDecoratorConfig } from './get-decorator-config.utility.js';
|
|
17
17
|
import { DtoHandleDateProperty } from './handle-date-property.utility.js';
|
|
18
18
|
import { DtoIsPropertyExposedForGuard } from './is-property-exposed-for-guard.utility.js';
|
|
19
|
+
import { RegisterAutoDtoChild } from '../register-auto-dto-child.utility.js';
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* Creates property decorators for DTOs based on property metadata, entity information, and context.
|
|
@@ -56,7 +57,14 @@ function DtoBuildDecorator(method, propertyMetadata, entity, dtoType, propertyNa
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
const config = DtoGetDecoratorConfig(method, propertyMetadata, dtoType);
|
|
59
|
-
|
|
60
|
+
const decorators = [];
|
|
61
|
+
if (propertyMetadata.type === EApiPropertyDescribeType.OBJECT && propertyMetadata.dataType) {
|
|
62
|
+
decorators.push((target) => {
|
|
63
|
+
RegisterAutoDtoChild(target, propertyMetadata.dataType);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
decorators.push(DtoGenerateDecorator(propertyMetadata, entity, config, method, dtoType, propertyName, generatedDTOs));
|
|
67
|
+
return decorators;
|
|
60
68
|
}
|
|
61
69
|
|
|
62
70
|
export { DtoBuildDecorator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-decorator.utility.js","sources":["../../../../../src/utility/dto/build-decorator.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-decorator.utility.js","sources":["../../../../../src/utility/dto/build-decorator.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA;;;;;;;;;;;;;;AAcG;AACH;AACM,SAAU,iBAAiB,CAAoD,MAAS,EAAE,gBAAgD,EAAE,MAAqB,EAAE,OAAU,EAAE,YAAoB,EAAE,YAA+B,EAAE,aAA6C,EAAA;IAKxR,MAAM,UAAU,GAA2C,gBAAgB,CAAC,UAAU,GAAG,MAAM,CAA2C;AAE1I,IAAA,IAAI,UAAU,GAAG,OAAO,CAAC,EAAE,SAAS,KAAK,KAAK,KAAK,UAAU,GAAG,OAAO,CAAC,EAAE,UAAU,IAAI,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AAI,gBAAgB,CAAC,QAAQ,EAAE;AAC3F,QAAA,UAAU,CAAC,IAAI,CAAC,CAAC,MAAc,KAAU;AACxC,YAAA,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC;AACxD,QAAA,CAAC,CAAC;IACH;IAEA,UAAU,CAAC,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AAErH,IAAA,OAAO,UAAU;AAClB;;;;"}
|
|
@@ -16,6 +16,8 @@ import { ApiExtraModels } from '@nestjs/swagger';
|
|
|
16
16
|
import { CamelCaseString } from '../camel-case-string.utility.js';
|
|
17
17
|
import { DtoBuildDecorator } from './build-decorator.utility.js';
|
|
18
18
|
import { DtoIsPropertyExposedForGuard } from './is-property-exposed-for-guard.utility.js';
|
|
19
|
+
import { DtoAutoContextPop } from './auto-context-pop.utility.js';
|
|
20
|
+
import { DtoAutoContextPush } from './auto-context-push.utility.js';
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
23
|
* Generates dynamic DTOs for object-type properties based on property metadata.
|
|
@@ -88,24 +90,30 @@ function DtoGenerateDynamic(method, propertyMetadata, entity, dtoType, _property
|
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
DtoAutoContextPush(GeneratedDTO.prototype, method, dtoType);
|
|
94
|
+
try {
|
|
95
|
+
for (const propertyName of Object.keys(data)) {
|
|
96
|
+
if (data[propertyName]) {
|
|
97
|
+
const propertyGeneratedDTOs = nestedDTOs[propertyName] ?? {};
|
|
98
|
+
const decorators = DtoBuildDecorator(method, data[propertyName], entity, dtoType, propertyName, currentGuard, propertyGeneratedDTOs);
|
|
99
|
+
if (decorators) {
|
|
100
|
+
for (const [, decorator] of decorators.entries()) {
|
|
101
|
+
decorator(GeneratedDTO.prototype, propertyName);
|
|
102
|
+
}
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
}
|
|
106
|
+
Object.defineProperty(GeneratedDTO, "name", {
|
|
107
|
+
value: `${entity.name ?? "UnknownResource"}${CamelCaseString(method)}${CamelCaseString(dtoType)}${CamelCaseString(_propertyName)}${CamelCaseString(name)}DTO`,
|
|
108
|
+
});
|
|
109
|
+
if (allNestedTypes.length > 0) {
|
|
110
|
+
ApiExtraModels(...allNestedTypes)(GeneratedDTO);
|
|
111
|
+
}
|
|
112
|
+
generatedDTOs[name] = GeneratedDTO;
|
|
101
113
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
105
|
-
if (allNestedTypes.length > 0) {
|
|
106
|
-
ApiExtraModels(...allNestedTypes)(GeneratedDTO);
|
|
114
|
+
finally {
|
|
115
|
+
DtoAutoContextPop(GeneratedDTO.prototype);
|
|
107
116
|
}
|
|
108
|
-
generatedDTOs[name] = GeneratedDTO;
|
|
109
117
|
}
|
|
110
118
|
}
|
|
111
119
|
return generatedDTOs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-dynamic.utility.js","sources":["../../../../../src/utility/dto/generate-dynamic.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-dynamic.utility.js","sources":["../../../../../src/utility/dto/generate-dynamic.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;;;;;;;;;AAcG;AACH;AACM,SAAU,kBAAkB,CAAoD,MAAS,EAAE,gBAAgD,EAAE,MAAqB,EAAE,OAAU,EAAE,aAAqB,EAAE,YAA+B,EAAA;IAC3O,IAAI,gBAAgB,CAAC,IAAI,KAAK,wBAAwB,CAAC,MAAM,EAAE;AAC9D,QAAA,OAAO,SAAS;IACjB;IAMA,MAAM,UAAU,GAA2C,gBAAgB,CAAC,UAAU,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AAE;AAC7C,oBAAA,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE;wBACvB,MAAM,qBAAqB,GAAkC,UAAU,CAAC,YAAY,CAAC,IAAI,EAAE;wBAE3F,MAAM,UAAU,GAAyC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAqB,CAAC;wBAE1K,IAAI,UAAU,EAAE;4BACf,KAAK,MAAM,GAAG,SAAS,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE;AACjD,gCAAA,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC;4BAChD;wBACD;oBACD;gBACD;AAEA,gBAAA,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE;oBAC3C,KAAK,EAAE,CAAA,EAAG,MAAM,CAAC,IAAI,IAAI,iBAAiB,CAAA,EAAG,eAAe,CAAC,MAAM,CAAC,CAAA,EAAG,eAAe,CAAC,OAAO,CAAC,CAAA,EAAG,eAAe,CAAC,aAAa,CAAC,CAAA,EAAG,eAAe,CAAC,IAAI,CAAC,CAAA,GAAA,CAAK;AAC7J,iBAAA,CAAC;AAEF,gBAAA,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;AAC9B,oBAAA,cAAc,CAAC,GAAG,cAAc,CAAC,CAAC,YAAY,CAAC;gBAChD;AAEA,gBAAA,aAAa,CAAC,IAAI,CAAC,GAAG,YAAY;YACnC;oBAAU;AACT,gBAAA,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC;YAC1C;QACD;IACD;AAEA,IAAA,OAAO,aAAa;AACrB;;;;"}
|
|
@@ -28,6 +28,8 @@ import { DtoIsShouldBeGenerated } from './is-should-be-generated.utility.js';
|
|
|
28
28
|
import { ErrorException } from '../error-exception.utility.js';
|
|
29
29
|
import { HasPairedCustomSuffixesFieldsValidator } from '../../validator/has-paired-custom-suffixes-fields.validator.js';
|
|
30
30
|
import { Validate } from 'class-validator';
|
|
31
|
+
import { DtoAutoContextPop } from './auto-context-pop.utility.js';
|
|
32
|
+
import { DtoAutoContextPush } from './auto-context-push.utility.js';
|
|
31
33
|
|
|
32
34
|
const dtoGenerateCache = new Map();
|
|
33
35
|
/**
|
|
@@ -123,40 +125,46 @@ function DtoGenerate(entity, entityMetadata, method, dtoType, dtoConfig, current
|
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
128
|
+
DtoAutoContextPush(GeneratedDTO.prototype, method, dtoType);
|
|
129
|
+
try {
|
|
130
|
+
for (const property of markedProperties) {
|
|
131
|
+
const generatedDTOs = DtoGenerateDynamic(method, property.metadata, entityMetadata, dtoType, property.name, currentGuard);
|
|
132
|
+
const decorators = DtoBuildDecorator(method, property.metadata, entityMetadata, dtoType, property.name, currentGuard, generatedDTOs);
|
|
133
|
+
if (decorators) {
|
|
134
|
+
for (const [, decorator] of decorators.entries()) {
|
|
135
|
+
if (method === EApiRouteType.GET_LIST && dtoType === EApiDtoType.QUERY) {
|
|
136
|
+
decorator(GeneratedDTO.prototype, `${property.name}[value]`);
|
|
137
|
+
DtoGenerateFilterDecorator(property.metadata, entityMetadata)(GeneratedDTO.prototype, `${property.name}[operator]`);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
decorator(GeneratedDTO.prototype, property.name);
|
|
141
|
+
}
|
|
137
142
|
}
|
|
138
143
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
if (method === EApiRouteType.GET_LIST && dtoType === EApiDtoType.QUERY) {
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
const metadataArray = { ...property.metadata, isArray: true, isUniqueItems: false, maxItems: DTO_GENERATE_CONSTANT.MAXIMUM_FILTER_PROPERTIES, minItems: DTO_GENERATE_CONSTANT.MINIMUM_FILTER_PROPERTIES };
|
|
147
|
+
const decoratorsArray = DtoBuildDecorator(method, metadataArray, entityMetadata, dtoType, property.name, currentGuard);
|
|
148
|
+
if (decoratorsArray) {
|
|
149
|
+
for (const [, decorator] of decoratorsArray.entries()) {
|
|
150
|
+
decorator(GeneratedDTO.prototype, `${property.name}[values]`);
|
|
151
|
+
}
|
|
147
152
|
}
|
|
148
153
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
if (property.metadata.type === EApiPropertyDescribeType.OBJECT && Array.isArray(property.metadata.dataType)) {
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
extraModels.push(...property.metadata.dataType);
|
|
157
|
+
}
|
|
158
|
+
if (generatedDTOs) {
|
|
159
|
+
for (const [, value] of Object.entries(generatedDTOs)) {
|
|
160
|
+
extraModels.push(value);
|
|
161
|
+
}
|
|
157
162
|
}
|
|
158
163
|
}
|
|
159
164
|
}
|
|
165
|
+
finally {
|
|
166
|
+
DtoAutoContextPop(GeneratedDTO.prototype);
|
|
167
|
+
}
|
|
160
168
|
if (dtoConfig?.validators) {
|
|
161
169
|
for (const validator of dtoConfig.validators) {
|
|
162
170
|
Validate(validator.constraintClass, validator.options)(GeneratedDTO.prototype, "object");
|