@elsikora/nestjs-crud-automator 1.17.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":"generate.utility.js","sources":["../../../../../src/utility/dto/generate.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate.utility.js","sources":["../../../../../src/utility/dto/generate.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,gBAAgB,GAA+B,IAAI,GAAG,EAAyB;AAErF;;;;;;;;;;;;;AAaG;AACG,SAAU,WAAW,CAAI,MAAqB,EAAE,cAA6B,EAAE,MAAqB,EAAE,OAAoB,EAAE,SAAsD,EAAE,YAA+B,EAAA;IACxN,IAAI,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;AAC7C,QAAA,OAAO,SAAS;IACjB;IAEA,MAAM,QAAQ,GAAW,mBAAmB,CAAC;QAC5C,SAAS;QACT,OAAO;AACP,QAAA,UAAU,E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AI;;AAGlB,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,KAAK,EAAE,YAAA;AACN,gBAAA,OAAO,IAAI;YACZ,CAAC;;AAGD,YAAA,QAAQ,EAAE,IAAI;AACd,SAAA,CAAC;QAEF,QAAQ,CAAC,sCAAsC,EAAE,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC;IACtH;AAEA,IAAA,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;AAC3B,QAAA,cAAc,CAAC,GAAG,WAAW,CAAC,CAAC,YAAY,CAAC;IAC7C;AAEA,IAAA,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE;AAC3C,QAAA,KAAK,EAAE,CAAA,EAAG,cAAc,CAAC,IAAI,IAAI,iBAAiB,CAAA,EAAG,eAAe,CAAC,MAAM,CAAC,CAAA,EAAG,eAAe,CAAC,OAAO,CAAC,CAAA,GAAA,CAAK;AAC5G,KAAA,CAAC;;IAGF,MAAM,MAAM,GAAkB,MAAM,KAAK,aAAa,CAAC,QAAQ,IAAI,OAAO,KAAK,WAAW,CAAC,QAAQ,GAAG,0BAA0B,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,cAAc,CAAC,IAAI,IAAI,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA,EAAG,eAAe,CAAC,OAAO,CAAC,CAAA,QAAA,CAAU,CAAC,GAAG,YAAY;AAEjR,IAAA,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC;AAEtC,IAAA,OAAO,MAAM;AACd;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { DtoAutoContextPop } from './auto-context-pop.utility';
|
|
2
|
+
export { DtoAutoContextPush } from './auto-context-push.utility';
|
|
2
3
|
export { DtoBuildDecorator } from './build-decorator.utility';
|
|
3
4
|
export { DtoGenerateCacheKey } from './generate-cache-key.utility';
|
|
4
5
|
export { DtoGenerateDecorator } from './generate-decorator.utility';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDtoAutoContextMetadata } from '../type/auto-context-metadata.type';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves stored DTO auto-context (route method + dto type) for a generated DTO prototype.
|
|
4
|
+
* @param {object} target - DTO prototype that may contain context metadata.
|
|
5
|
+
* @returns {IDtoAutoContextMetadata | undefined} Stored context metadata if available.
|
|
6
|
+
*/
|
|
7
|
+
export declare function GetAutoDtoContext(target: object): IDtoAutoContextMetadata | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DTO_AUTO_CONTEXT_METADATA_KEY } from '../constant/dto/auto-context.constant.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves stored DTO auto-context (route method + dto type) for a generated DTO prototype.
|
|
5
|
+
* @param {object} target - DTO prototype that may contain context metadata.
|
|
6
|
+
* @returns {IDtoAutoContextMetadata | undefined} Stored context metadata if available.
|
|
7
|
+
*/
|
|
8
|
+
function GetAutoDtoContext(target) {
|
|
9
|
+
const stack = Reflect.getMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, target);
|
|
10
|
+
if (!stack || stack.length === 0) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
return stack.at(-1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { GetAutoDtoContext };
|
|
17
|
+
//# sourceMappingURL=get-auto-dto-context.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-auto-dto-context.utility.js","sources":["../../../../src/utility/get-auto-dto-context.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;AAIG;AACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;IAC/C,MAAM,KAAK,GAA+C,OAAO,CAAC,WAAW,GAAG,6BAA6B,EAAE,MAAM,CAA+C;IAEpK,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACjC,QAAA,OAAO,SAAS;IACjB;AAEA,IAAA,OAAO,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB;;;;"}
|
|
@@ -2,10 +2,19 @@ export * from './api/index';
|
|
|
2
2
|
export * from './authorization/index';
|
|
3
3
|
export { CamelCaseString } from './camel-case-string.utility';
|
|
4
4
|
export { CapitalizeString } from './capitalize-string.utility';
|
|
5
|
+
export { DeferPropertyDecoratorExecution } from './defer-property-decorator-execution.utility';
|
|
5
6
|
export * from './dto/index';
|
|
6
7
|
export { ErrorException } from './error-exception.utility';
|
|
7
8
|
export { ErrorString } from './error-string.utility';
|
|
8
9
|
export { GenerateEntityInformation } from './generate-entity-information.utility';
|
|
10
|
+
export { GetAutoDtoContext } from './get-auto-dto-context.utility';
|
|
9
11
|
export { GetEntityColumns } from './get-entity-columns.utility';
|
|
12
|
+
export { IsEntityConstructor } from './is-entity-constructor.utility';
|
|
13
|
+
export { IsEntityFactory } from './is-entity-factory.utility';
|
|
14
|
+
export { IsEntityLiteral } from './is-entity-literal.utility';
|
|
10
15
|
export { IsErrorOfType } from './is-error-of-type.utility';
|
|
11
16
|
export { LoggerUtility } from './logger.utility';
|
|
17
|
+
export { QueueAutoContextRetry } from './queue-auto-context-retry.utility';
|
|
18
|
+
export { GetRegisteredAutoDtoChildren, RegisterAutoDtoChild } from './register-auto-dto-child.utility';
|
|
19
|
+
export * from './resolve/index';
|
|
20
|
+
export { WithResolvedPropertyEntity } from './with-resolved-property-entity.utility';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../interface/api-base-entity.interface';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether the candidate is a class constructor reference.
|
|
5
|
+
* @param {unknown} candidate - Value to inspect.
|
|
6
|
+
* @returns {boolean} True when candidate is a constructor function.
|
|
7
|
+
*/
|
|
8
|
+
export declare function IsEntityConstructor(candidate: unknown): candidate is Type<IApiBaseEntity>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks whether the candidate is a class constructor reference.
|
|
3
|
+
* @param {unknown} candidate - Value to inspect.
|
|
4
|
+
* @returns {boolean} True when candidate is a constructor function.
|
|
5
|
+
*/
|
|
6
|
+
function IsEntityConstructor(candidate) {
|
|
7
|
+
return typeof candidate === "function" && Object.prototype.hasOwnProperty.call(candidate, "prototype");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { IsEntityConstructor };
|
|
11
|
+
//# sourceMappingURL=is-entity-constructor.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-entity-constructor.utility.js","sources":["../../../../src/utility/is-entity-constructor.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAGA;;;;AAIG;AACG,SAAU,mBAAmB,CAAC,SAAkB,EAAA;AACrD,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC;AACvG;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../interface/api-base-entity.interface';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether the candidate is a factory returning an entity reference.
|
|
5
|
+
* @param {unknown} candidate - Value to inspect.
|
|
6
|
+
* @returns {boolean} True when candidate is a lazy resolver function.
|
|
7
|
+
*/
|
|
8
|
+
export declare function IsEntityFactory(candidate: unknown): candidate is () => IApiBaseEntity | Type<IApiBaseEntity> | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsEntityConstructor } from './is-entity-constructor.utility.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether the candidate is a factory returning an entity reference.
|
|
5
|
+
* @param {unknown} candidate - Value to inspect.
|
|
6
|
+
* @returns {boolean} True when candidate is a lazy resolver function.
|
|
7
|
+
*/
|
|
8
|
+
function IsEntityFactory(candidate) {
|
|
9
|
+
return typeof candidate === "function" && !IsEntityConstructor(candidate);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { IsEntityFactory };
|
|
13
|
+
//# sourceMappingURL=is-entity-factory.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-entity-factory.utility.js","sources":["../../../../src/utility/is-entity-factory.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;AAIG;AACG,SAAU,eAAe,CAAC,SAAkB,EAAA;IACjD,OAAO,OAAO,SAAS,KAAK,UAAU,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC;AAC1E;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../interface/api-base-entity.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Checks whether the candidate is an object literal representing metadata.
|
|
4
|
+
* @param {unknown} candidate - Value to inspect.
|
|
5
|
+
* @returns {boolean} True when candidate is a non-null object.
|
|
6
|
+
*/
|
|
7
|
+
export declare function IsEntityLiteral(candidate: unknown): candidate is IApiBaseEntity;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks whether the candidate is an object literal representing metadata.
|
|
3
|
+
* @param {unknown} candidate - Value to inspect.
|
|
4
|
+
* @returns {boolean} True when candidate is a non-null object.
|
|
5
|
+
*/
|
|
6
|
+
function IsEntityLiteral(candidate) {
|
|
7
|
+
return typeof candidate === "object" && candidate !== null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { IsEntityLiteral };
|
|
11
|
+
//# sourceMappingURL=is-entity-literal.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-entity-literal.utility.js","sources":["../../../../src/utility/is-entity-literal.utility.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;AAIG;AACG,SAAU,eAAe,CAAC,SAAkB,EAAA;IACjD,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI;AAC3D;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Queues execution until auto DTO context becomes available on the provided prototype.
|
|
3
|
+
* @param {object} target - DTO prototype awaiting context.
|
|
4
|
+
* @param {() => void} executor - Callback to execute once context is ready.
|
|
5
|
+
*/
|
|
6
|
+
export declare function QueueAutoContextRetry(target: object, executor: () => void): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { QueueAutoDtoContextExecution } from './auto-dto-context-queue.utility.js';
|
|
2
|
+
import { GetAutoDtoContext } from './get-auto-dto-context.utility.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Queues execution until auto DTO context becomes available on the provided prototype.
|
|
6
|
+
* @param {object} target - DTO prototype awaiting context.
|
|
7
|
+
* @param {() => void} executor - Callback to execute once context is ready.
|
|
8
|
+
*/
|
|
9
|
+
function QueueAutoContextRetry(target, executor) {
|
|
10
|
+
const context = GetAutoDtoContext(target);
|
|
11
|
+
if (context) {
|
|
12
|
+
executor();
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
QueueAutoDtoContextExecution(target, () => {
|
|
16
|
+
executor();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { QueueAutoContextRetry };
|
|
21
|
+
//# sourceMappingURL=queue-auto-context-retry.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue-auto-context-retry.utility.js","sources":["../../../../src/utility/queue-auto-context-retry.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAKA;;;;AAIG;AACG,SAAU,qBAAqB,CAAC,MAAc,EAAE,QAAoB,EAAA;AACzE,IAAA,MAAM,OAAO,GAAgE,iBAAiB,CAAC,MAAM,CAAC;IAEtG,IAAI,OAAO,EAAE;AACZ,QAAA,QAAQ,EAAE;QAEV;IACD;AAEA,IAAA,4BAA4B,CAAC,MAAM,EAAE,MAAK;AACzC,QAAA,QAAQ,EAAE;AACX,IAAA,CAAC,CAAC;AACH;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Type } from "@nestjs/common";
|
|
2
|
+
/**
|
|
3
|
+
* Returns registered child DTO constructors for the provided parent prototype.
|
|
4
|
+
* @param {object} parentPrototype - Parent DTO prototype.
|
|
5
|
+
* @returns {Set<Type<unknown>> | undefined} Set of registered child constructors.
|
|
6
|
+
*/
|
|
7
|
+
export declare function GetRegisteredAutoDtoChildren(parentPrototype: object): Set<Type<unknown>> | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Registers DTO constructors as children of the provided parent prototype.
|
|
10
|
+
* Used to propagate auto DTO context to nested manual DTOs.
|
|
11
|
+
* @param {object} parentPrototype - Parent DTO prototype.
|
|
12
|
+
* @param {unknown} child - Child constructor or array of constructors.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RegisterAutoDtoChild(parentPrototype: object, child: unknown): void;
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
4
|
+
const AUTO_DTO_CHILDREN = new WeakMap();
|
|
5
|
+
/**
|
|
6
|
+
* Returns registered child DTO constructors for the provided parent prototype.
|
|
7
|
+
* @param {object} parentPrototype - Parent DTO prototype.
|
|
8
|
+
* @returns {Set<Type<unknown>> | undefined} Set of registered child constructors.
|
|
9
|
+
*/
|
|
10
|
+
function GetRegisteredAutoDtoChildren(parentPrototype) {
|
|
11
|
+
return AUTO_DTO_CHILDREN.get(parentPrototype);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Registers DTO constructors as children of the provided parent prototype.
|
|
15
|
+
* Used to propagate auto DTO context to nested manual DTOs.
|
|
16
|
+
* @param {object} parentPrototype - Parent DTO prototype.
|
|
17
|
+
* @param {unknown} child - Child constructor or array of constructors.
|
|
18
|
+
*/
|
|
19
|
+
function RegisterAutoDtoChild(parentPrototype, child) {
|
|
20
|
+
if (!parentPrototype || !child)
|
|
21
|
+
return;
|
|
22
|
+
if (Array.isArray(child)) {
|
|
23
|
+
for (const entry of child) {
|
|
24
|
+
RegisterAutoDtoChild(parentPrototype, entry);
|
|
25
|
+
}
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (typeof child === "function") {
|
|
29
|
+
const childConstructor = child;
|
|
30
|
+
let children = AUTO_DTO_CHILDREN.get(parentPrototype);
|
|
31
|
+
if (!children) {
|
|
32
|
+
children = new Set();
|
|
33
|
+
AUTO_DTO_CHILDREN.set(parentPrototype, children);
|
|
34
|
+
}
|
|
35
|
+
if (!children.has(childConstructor)) {
|
|
36
|
+
children.add(childConstructor);
|
|
37
|
+
inheritExistingContexts(parentPrototype, childConstructor.prototype);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Copies currently active auto DTO contexts from parent prototype to child prototype.
|
|
43
|
+
* @param {object} parentPrototype - Parent DTO prototype.
|
|
44
|
+
* @param {object} childPrototype - Child DTO prototype.
|
|
45
|
+
*/
|
|
46
|
+
function inheritExistingContexts(parentPrototype, childPrototype) {
|
|
47
|
+
const parentStack = Reflect.getMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, parentPrototype);
|
|
48
|
+
if (!parentStack || parentStack.length === 0) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const childStack = Reflect.getMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, childPrototype) ?? [];
|
|
52
|
+
if (childStack.length < parentStack.length) {
|
|
53
|
+
const updatedStack = [...childStack, ...parentStack.slice(childStack.length)];
|
|
54
|
+
Reflect.defineMetadata?.(DTO_AUTO_CONTEXT_METADATA_KEY, updatedStack, childPrototype);
|
|
55
|
+
FlushAutoDtoContextExecutions(childPrototype);
|
|
56
|
+
}
|
|
57
|
+
const grandchildren = AUTO_DTO_CHILDREN.get(childPrototype);
|
|
58
|
+
if (!grandchildren)
|
|
59
|
+
return;
|
|
60
|
+
for (const grandchild of grandchildren) {
|
|
61
|
+
inheritExistingContexts(childPrototype, grandchild.prototype);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { GetRegisteredAutoDtoChildren, RegisterAutoDtoChild };
|
|
66
|
+
//# sourceMappingURL=register-auto-dto-child.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-auto-dto-child.utility.js","sources":["../../../../src/utility/register-auto-dto-child.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAMA,MAAM,iBAAiB,GAAwC,IAAI,OAAO,EAA8B;AAExG;;;;AAIG;AACG,SAAU,4BAA4B,CAAC,eAAuB,EAAA;AACnE,IAAA,OAAO,iBAAiB,CAAC,GAAG,CAAC,eAAe,CAAC;AAC9C;AAEA;;;;;AAKG;AACG,SAAU,oBAAoB,CAAC,eAAuB,EAAE,KAAc,EAAA;AAC3E,IAAA,IAAI,CAAC,eAAe,IAAI,CAAC,KAAK;QAAE;AAEhC,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACzB,QAAA,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE;AAC1B,YAAA,oBAAoB,CAAC,eAAe,EAAE,KAAK,CAAC;QAC7C;QAEA;IACD;AAEA,IAAA,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;QAChC,MAAM,gBAAgB,GAAkB,KAAsB;QAC9D,IAAI,QAAQ,GAAmC,iBAAiB,CAAC,GAAG,CAAC,eAAe,CAAC;QAErF,IAAI,CAAC,QAAQ,EAAE;AACd,YAAA,QAAQ,GAAG,IAAI,GAAG,EAAiB;AACn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DTO metadata.
|
|
4
|
+
* @param {object} target - Decorated DTO prototype.
|
|
5
|
+
* @param {EApiRouteType | undefined} method - Explicit method override.
|
|
6
|
+
* @param {EApiDtoType | undefined} dtoType - Explicit DTO type override.
|
|
7
|
+
* @param {boolean} shouldAutoResolve - Whether to pull context from auto DTO pipeline.
|
|
8
|
+
* @returns {{ dtoType: EApiDtoType; method: EApiRouteType } | undefined} Resolved context if available.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ResolveDecoratorContext(target: object, method: EApiRouteType | undefined, dtoType: EApiDtoType | undefined, shouldAutoResolve: boolean): {
|
|
11
|
+
dtoType: EApiDtoType;
|
|
12
|
+
method: EApiRouteType;
|
|
13
|
+
} | undefined;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GetAutoDtoContext } from '../get-auto-dto-context.utility.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Resolves decorator context using explicit config or auto-propagated DTO metadata.
|
|
5
|
+
* @param {object} target - Decorated DTO prototype.
|
|
6
|
+
* @param {EApiRouteType | undefined} method - Explicit method override.
|
|
7
|
+
* @param {EApiDtoType | undefined} dtoType - Explicit DTO type override.
|
|
8
|
+
* @param {boolean} shouldAutoResolve - Whether to pull context from auto DTO pipeline.
|
|
9
|
+
* @returns {{ dtoType: EApiDtoType; method: EApiRouteType } | undefined} Resolved context if available.
|
|
10
|
+
*/
|
|
11
|
+
function ResolveDecoratorContext(target, method, dtoType, shouldAutoResolve) {
|
|
12
|
+
let resolvedMethod = method;
|
|
13
|
+
let resolvedDtoType = dtoType;
|
|
14
|
+
if (shouldAutoResolve && (!resolvedMethod || !resolvedDtoType)) {
|
|
15
|
+
const context = GetAutoDtoContext(target);
|
|
16
|
+
if (!context) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
resolvedMethod ??= context.method;
|
|
20
|
+
resolvedDtoType ??= context.dtoType;
|
|
21
|
+
}
|
|
22
|
+
if (!resolvedMethod || !resolvedDtoType) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return { dtoType: resolvedDtoType, method: resolvedMethod };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { ResolveDecoratorContext };
|
|
29
|
+
//# sourceMappingURL=decorator-context.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator-context.utility.js","sources":["../../../../../src/utility/resolve/decorator-context.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;AAOG;AACG,SAAU,uBAAuB,CAAC,MAAc,EAAE,MAAiC,EAAE,OAAgC,EAAE,iBAA0B,EAAA;IACtJ,IAAI,cAAc,GAA8B,MAAM;IACtD,IAAI,eAAe,GAA4B,OAAO;IAEtD,IAAI,iBAAiB,KAAK,CAAC,cAAc,IAAI,CAAC,eAAe,CAAC,EAAE;AAC/D,QAAA,MAAM,OAAO,GAAgE,iBAAiB,CAAC,MAAM,CAAC;QAEtG,IAAI,CAAC,OAAO,EAAE;AACb,YAAA,OAAO,SAAS;QACjB;AAEA,QAAA,cAAc,KAAK,OAAO,CAAC,MAAM;AACjC,QAAA,eAAe,KAAK,OAAO,CAAC,OAAO;IACpC;AAEA,IAAA,IAAI,CAAC,cAAc,IAAI,CAAC,eAAe,EAAE;AACxC,QAAA,OAAO,SAAS;IACjB;IAEA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,cAAc,EAAE;AAC5D;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../../interface/api-base-entity.interface';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
import type { TApiPropertyEntity } from '../../type/index';
|
|
4
|
+
/**
|
|
5
|
+
* Resolves property decorator entity references immediately or throws if unavailable.
|
|
6
|
+
* @param {TApiPropertyEntity} entity - Entity reference or resolver.
|
|
7
|
+
* @param {string} decoratorName - Decorator name for error context.
|
|
8
|
+
* @returns {IApiBaseEntity | Type<IApiBaseEntity>} Normalized entity reference.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ResolvePropertyEntity(entity: TApiPropertyEntity, decoratorName: string): IApiBaseEntity | Type<IApiBaseEntity>;
|
|
11
|
+
/**
|
|
12
|
+
* Attempts to resolve the entity reference without throwing when the resolver returns undefined.
|
|
13
|
+
* @param {TApiPropertyEntity} entity - Entity reference or factory.
|
|
14
|
+
* @returns {IApiBaseEntity | Type<IApiBaseEntity> | undefined} Resolved entity or undefined when not ready.
|
|
15
|
+
*/
|
|
16
|
+
export declare function TryResolvePropertyEntity(entity: TApiPropertyEntity): IApiBaseEntity | Type<IApiBaseEntity> | undefined;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ErrorException } from '../error-exception.utility.js';
|
|
2
|
+
import { IsEntityConstructor } from '../is-entity-constructor.utility.js';
|
|
3
|
+
import { IsEntityFactory } from '../is-entity-factory.utility.js';
|
|
4
|
+
import { IsEntityLiteral } from '../is-entity-literal.utility.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Resolves property decorator entity references immediately or throws if unavailable.
|
|
8
|
+
* @param {TApiPropertyEntity} entity - Entity reference or resolver.
|
|
9
|
+
* @param {string} decoratorName - Decorator name for error context.
|
|
10
|
+
* @returns {IApiBaseEntity | Type<IApiBaseEntity>} Normalized entity reference.
|
|
11
|
+
*/
|
|
12
|
+
function ResolvePropertyEntity(entity, decoratorName) {
|
|
13
|
+
// eslint-disable-next-line @elsikora/sonar/use-type-alias
|
|
14
|
+
const resolved = TryResolvePropertyEntity(entity);
|
|
15
|
+
if (!resolved) {
|
|
16
|
+
throw ErrorException(`Entity for ${decoratorName} could not be resolved. Provide the entity class or a factory that returns it.`);
|
|
17
|
+
}
|
|
18
|
+
return resolved;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Attempts to resolve the entity reference without throwing when the resolver returns undefined.
|
|
22
|
+
* @param {TApiPropertyEntity} entity - Entity reference or factory.
|
|
23
|
+
* @returns {IApiBaseEntity | Type<IApiBaseEntity> | undefined} Resolved entity or undefined when not ready.
|
|
24
|
+
*/
|
|
25
|
+
function TryResolvePropertyEntity(entity) {
|
|
26
|
+
if (IsEntityConstructor(entity)) {
|
|
27
|
+
return entity;
|
|
28
|
+
}
|
|
29
|
+
if (IsEntityLiteral(entity)) {
|
|
30
|
+
return entity;
|
|
31
|
+
}
|
|
32
|
+
if (IsEntityFactory(entity)) {
|
|
33
|
+
const factory = entity;
|
|
34
|
+
return factory();
|
|
35
|
+
}
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { ResolvePropertyEntity, TryResolvePropertyEntity };
|
|
40
|
+
//# sourceMappingURL=property-entity.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-entity.utility.js","sources":["../../../../../src/utility/resolve/property-entity.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AASA;;;;;AAKG;AACG,SAAU,qBAAqB,CAAC,MAA0B,EAAE,aAAqB,EAAA;;AAEtF,IAAA,MAAM,QAAQ,GAAsD,wBAAwB,CAAC,MAAM,CAAC;IAEpG,IAAI,CAAC,QAAQ,EAAE;AACd,QAAA,MAAM,cAAc,CAAC,CAAA,WAAA,EAAc,aAAa,CAAA,8EAAA,CAAgF,CAAC;IAClI;AAEA,IAAA,OAAO,QAAQ;AAChB;AAEA;;;;AAIG;AACG,SAAU,wBAAwB,CAAC,MAA0B,EAAA;AAClE,IAAA,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;AAChC,QAAA,OAAO,MAAM;IACd;AAEA,IAAA,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE;AAC5B,QAAA,OAAO,MAAM;IACd;AAEA,IAAA,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE;QAC5B,MAAM,OAAO,GAA4D,MAAM;QAE/E,OAAO,OAAO,EAAE;IACjB;AAEA,IAAA,OAAO,SAAS;AACjB;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IApiBaseEntity } from '../interface/api-base-entity.interface';
|
|
2
|
+
import type { Type } from "@nestjs/common";
|
|
3
|
+
import type { TApiPropertyEntity } from '../type/decorator/api/property/entity.type';
|
|
4
|
+
/**
|
|
5
|
+
* Executes the provided callback once the entity reference resolves.
|
|
6
|
+
* If the entity cannot be resolved immediately, the callback runs in a microtask after modules finish loading.
|
|
7
|
+
* @param {TApiPropertyEntity} entity - Entity reference or resolver.
|
|
8
|
+
* @param {string} decoratorName - Decorator name for error context.
|
|
9
|
+
* @param {(resolved: IApiBaseEntity | Type<IApiBaseEntity>) => void} onResolved - Callback executed with the resolved entity.
|
|
10
|
+
*/
|
|
11
|
+
export declare function WithResolvedPropertyEntity(entity: TApiPropertyEntity, decoratorName: string, onResolved: (resolved: IApiBaseEntity | Type<IApiBaseEntity>) => void): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeferPropertyDecoratorExecution } from './defer-property-decorator-execution.utility.js';
|
|
2
|
+
import { ErrorException } from './error-exception.utility.js';
|
|
3
|
+
import { TryResolvePropertyEntity } from './resolve/property-entity.utility.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Executes the provided callback once the entity reference resolves.
|
|
7
|
+
* If the entity cannot be resolved immediately, the callback runs in a microtask after modules finish loading.
|
|
8
|
+
* @param {TApiPropertyEntity} entity - Entity reference or resolver.
|
|
9
|
+
* @param {string} decoratorName - Decorator name for error context.
|
|
10
|
+
* @param {(resolved: IApiBaseEntity | Type<IApiBaseEntity>) => void} onResolved - Callback executed with the resolved entity.
|
|
11
|
+
*/
|
|
12
|
+
function WithResolvedPropertyEntity(entity, decoratorName, onResolved) {
|
|
13
|
+
const resolved = TryResolvePropertyEntity(entity);
|
|
14
|
+
if (resolved) {
|
|
15
|
+
onResolved(resolved);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
DeferPropertyDecoratorExecution(() => {
|
|
19
|
+
const deferredResolved = TryResolvePropertyEntity(entity);
|
|
20
|
+
if (!deferredResolved) {
|
|
21
|
+
throw ErrorException(`Entity for ${decoratorName} could not be resolved. Provide the entity class or a factory that returns it.`);
|
|
22
|
+
}
|
|
23
|
+
onResolved(deferredResolved);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { WithResolvedPropertyEntity };
|
|
28
|
+
//# sourceMappingURL=with-resolved-property-entity.utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-resolved-property-entity.utility.js","sources":["../../../../src/utility/with-resolved-property-entity.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAQA;;;;;;AAMG;SACa,0BAA0B,CAAC,MAA0B,EAAE,aAAqB,EAAE,UAAqE,EAAA;AAClK,IAAA,MAAM,QAAQ,GAAsD,wBAAwB,CAAC,MAAM,CAAC;IAEpG,IAAI,QAAQ,EAAE;QACb,UAAU,CAAC,QAAQ,CAAC;QAEpB;IACD;IAEA,+BAA+B,CAAC,MAAK;AACpC,QAAA,MAAM,gBAAgB,GAAsD,wBAAwB,CAAC,MAAM,CAAC;QAE5G,IAAI,CAAC,gBAAgB,EAAE;AACtB,YAAA,MAAM,cAAc,CAAC,CAAA,WAAA,EAAc,aAAa,CAAA,8EAAA,CAAgF,CAAC;QAClI;QAEA,UAAU,CAAC,gBAAgB,CAAC;AAC7B,IAAA,CAAC,CAAC;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsikora/nestjs-crud-automator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0-dev.1",
|
|
4
4
|
"description": "A library for automating the creation of CRUD operations in NestJS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NestJS",
|
|
@@ -105,6 +105,9 @@
|
|
|
105
105
|
"lodash": ">=4.17.21",
|
|
106
106
|
"typeorm": ">=0.3.20"
|
|
107
107
|
},
|
|
108
|
+
"engines": {
|
|
109
|
+
"node": ">=20.0.0"
|
|
110
|
+
},
|
|
108
111
|
"publishConfig": {
|
|
109
112
|
"access": "public"
|
|
110
113
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IApiBaseEntity } from '../../interface/api-base-entity.interface';
|
|
2
|
-
/**
|
|
3
|
-
* Analyzes entity metadata using the MetadataStorage singleton class.
|
|
4
|
-
* Currently only retrieves metadata but doesn't perform further operations.
|
|
5
|
-
* @param {IApiBaseEntity} entity - The entity to analyze metadata for
|
|
6
|
-
* @returns {void}
|
|
7
|
-
*/
|
|
8
|
-
export declare function analyzeEntityMetadata(entity: IApiBaseEntity): void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var metadataStorage_class = require('../../class/metadata-storage.class.js');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Analyzes entity metadata using the MetadataStorage singleton class.
|
|
7
|
-
* Currently only retrieves metadata but doesn't perform further operations.
|
|
8
|
-
* @param {IApiBaseEntity} entity - The entity to analyze metadata for
|
|
9
|
-
* @returns {void}
|
|
10
|
-
*/
|
|
11
|
-
function analyzeEntityMetadata(entity) {
|
|
12
|
-
const storage = metadataStorage_class.MetadataStorage.getInstance();
|
|
13
|
-
storage.getMetadata(entity.name ?? "UnknownResource");
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
exports.analyzeEntityMetadata = analyzeEntityMetadata;
|
|
17
|
-
//# sourceMappingURL=analize.utility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analize.utility.js","sources":["../../../../../src/utility/dto/analize.utility.ts"],"sourcesContent":[null],"names":["MetadataStorage"],"mappings":";;;;AAKA;;;;;AAKG;AACG,SAAU,qBAAqB,CAAC,MAAsB,EAAA;AAC3D,IAAA,MAAM,OAAO,GAAoBA,qCAAe,CAAC,WAAW,EAAE;AAE9D,IAA4C,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,iBAAiB;AAIjG;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IApiBaseEntity } from '../../interface/api-base-entity.interface';
|
|
2
|
-
/**
|
|
3
|
-
* Analyzes entity metadata using the MetadataStorage singleton class.
|
|
4
|
-
* Currently only retrieves metadata but doesn't perform further operations.
|
|
5
|
-
* @param {IApiBaseEntity} entity - The entity to analyze metadata for
|
|
6
|
-
* @returns {void}
|
|
7
|
-
*/
|
|
8
|
-
export declare function analyzeEntityMetadata(entity: IApiBaseEntity): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MetadataStorage } from '../../class/metadata-storage.class.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Analyzes entity metadata using the MetadataStorage singleton class.
|
|
5
|
-
* Currently only retrieves metadata but doesn't perform further operations.
|
|
6
|
-
* @param {IApiBaseEntity} entity - The entity to analyze metadata for
|
|
7
|
-
* @returns {void}
|
|
8
|
-
*/
|
|
9
|
-
function analyzeEntityMetadata(entity) {
|
|
10
|
-
const storage = MetadataStorage.getInstance();
|
|
11
|
-
storage.getMetadata(entity.name ?? "UnknownResource");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { analyzeEntityMetadata };
|
|
15
|
-
//# sourceMappingURL=analize.utility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analize.utility.js","sources":["../../../../../src/utility/dto/analize.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;;AAKG;AACG,SAAU,qBAAqB,CAAC,MAAsB,EAAA;AAC3D,IAAA,MAAM,OAAO,GAAoB,eAAe,CAAC,WAAW,EAAE;AAE9D,IAA4C,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,iBAAiB;AAIjG;;;;"}
|