@thisisagile/easy 15.29.2 → 16.0.0
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/{chunk-3MOFYE2N.mjs → chunk-2ZUDYGPP.mjs} +5 -5
- package/dist/chunk-2ZUDYGPP.mjs.map +1 -0
- package/dist/{chunk-A5MC57TL.mjs → chunk-3L4RAR24.mjs} +9 -7
- package/dist/chunk-3L4RAR24.mjs.map +1 -0
- package/dist/chunk-45GNHDKA.mjs +27 -0
- package/dist/chunk-45GNHDKA.mjs.map +1 -0
- package/dist/{chunk-BAXNN36F.mjs → chunk-4DJNTF2D.mjs} +5 -3
- package/dist/chunk-4DJNTF2D.mjs.map +1 -0
- package/dist/chunk-4G6AW6D6.mjs +35 -0
- package/dist/chunk-4G6AW6D6.mjs.map +1 -0
- package/dist/{chunk-I5MPU33B.mjs → chunk-5WSP2IYF.mjs} +4 -4
- package/dist/chunk-5WSP2IYF.mjs.map +1 -0
- package/dist/{chunk-GCPVSACZ.mjs → chunk-5YM5CLOG.mjs} +2 -2
- package/dist/{chunk-GUSPHVF2.mjs → chunk-6BQEFLOS.mjs} +5 -3
- package/dist/chunk-6BQEFLOS.mjs.map +1 -0
- package/dist/{chunk-MRIELSWP.mjs → chunk-6VLC4Z4H.mjs} +2 -2
- package/dist/chunk-6VLC4Z4H.mjs.map +1 -0
- package/dist/chunk-6YVMQB26.mjs +94 -0
- package/dist/chunk-6YVMQB26.mjs.map +1 -0
- package/dist/{chunk-YHL2CUBI.mjs → chunk-73UD7JJL.mjs} +2 -2
- package/dist/chunk-73UD7JJL.mjs.map +1 -0
- package/dist/{chunk-2L3GZ6NK.mjs → chunk-7K4QMDUN.mjs} +2 -2
- package/dist/chunk-7K4QMDUN.mjs.map +1 -0
- package/dist/{chunk-S5RHU67S.mjs → chunk-7TJ4VCBE.mjs} +15 -9
- package/dist/chunk-7TJ4VCBE.mjs.map +1 -0
- package/dist/{chunk-NKHZO3ME.mjs → chunk-A2JYVEBB.mjs} +4 -4
- package/dist/chunk-A2JYVEBB.mjs.map +1 -0
- package/dist/{chunk-57QV3J5N.mjs → chunk-A62OK7XE.mjs} +10 -6
- package/dist/{chunk-57QV3J5N.mjs.map → chunk-A62OK7XE.mjs.map} +1 -1
- package/dist/{chunk-TQUDYF6E.mjs → chunk-APYISY5K.mjs} +2 -2
- package/dist/chunk-APYISY5K.mjs.map +1 -0
- package/dist/{chunk-XLFC44Y3.mjs → chunk-ARTSACXM.mjs} +17 -22
- package/dist/chunk-ARTSACXM.mjs.map +1 -0
- package/dist/chunk-ARZEQQW5.mjs +315 -0
- package/dist/chunk-ARZEQQW5.mjs.map +1 -0
- package/dist/chunk-CAHTK3AT.mjs +30 -0
- package/dist/chunk-CAHTK3AT.mjs.map +1 -0
- package/dist/{chunk-ARN4MTMY.mjs → chunk-D4K4MC24.mjs} +3 -3
- package/dist/chunk-D4K4MC24.mjs.map +1 -0
- package/dist/{chunk-624IHTEI.mjs → chunk-D5FLGKVR.mjs} +18 -12
- package/dist/chunk-D5FLGKVR.mjs.map +1 -0
- package/dist/{chunk-UWNXWKBU.mjs → chunk-DEJ7A5PY.mjs} +1 -35
- package/dist/chunk-DEJ7A5PY.mjs.map +1 -0
- package/dist/chunk-DXQSIBC7.mjs +13 -0
- package/dist/chunk-DXQSIBC7.mjs.map +1 -0
- package/dist/{chunk-SG6BDC6T.mjs → chunk-EDVJUOFU.mjs} +18 -12
- package/dist/chunk-EDVJUOFU.mjs.map +1 -0
- package/dist/{chunk-IWLJEAQZ.mjs → chunk-EIJ3GSGG.mjs} +5 -3
- package/dist/chunk-EIJ3GSGG.mjs.map +1 -0
- package/dist/chunk-FHW5K2RR.mjs +150 -0
- package/dist/chunk-FHW5K2RR.mjs.map +1 -0
- package/dist/{chunk-WYT52YAX.mjs → chunk-GSZLYZSW.mjs} +23 -11
- package/dist/chunk-GSZLYZSW.mjs.map +1 -0
- package/dist/{chunk-I3DRDMCS.mjs → chunk-HBJMCX2I.mjs} +3 -3
- package/dist/chunk-HBJMCX2I.mjs.map +1 -0
- package/dist/{chunk-2KKIXOMB.mjs → chunk-HNVAFEZP.mjs} +3 -3
- package/dist/{chunk-QRN4Y2QC.mjs → chunk-HV4CI2QX.mjs} +18 -12
- package/dist/chunk-HV4CI2QX.mjs.map +1 -0
- package/dist/chunk-IAXKOENJ.mjs +55 -0
- package/dist/chunk-IAXKOENJ.mjs.map +1 -0
- package/dist/chunk-J6KN572O.mjs +20 -0
- package/dist/chunk-J6KN572O.mjs.map +1 -0
- package/dist/chunk-J7XKOXMW.mjs +203 -0
- package/dist/chunk-J7XKOXMW.mjs.map +1 -0
- package/dist/{chunk-RFG5LNDQ.mjs → chunk-JBJ2YERG.mjs} +6 -4
- package/dist/{chunk-RFG5LNDQ.mjs.map → chunk-JBJ2YERG.mjs.map} +1 -1
- package/dist/{chunk-J64VE55O.mjs → chunk-JFJLDIJB.mjs} +10 -10
- package/dist/chunk-JFJLDIJB.mjs.map +1 -0
- package/dist/{chunk-F4CWMZCV.mjs → chunk-JFU65NZU.mjs} +11 -9
- package/dist/chunk-JFU65NZU.mjs.map +1 -0
- package/dist/{chunk-PWCGCUT7.mjs → chunk-JSON7A4X.mjs} +6 -4
- package/dist/chunk-JSON7A4X.mjs.map +1 -0
- package/dist/chunk-JTGB3TSZ.mjs +24 -0
- package/dist/chunk-JTGB3TSZ.mjs.map +1 -0
- package/dist/{chunk-NOMZAVQC.mjs → chunk-KRLEHX37.mjs} +12 -6
- package/dist/chunk-KRLEHX37.mjs.map +1 -0
- package/dist/{chunk-H7NDGISC.mjs → chunk-LAR7AT6R.mjs} +2 -2
- package/dist/chunk-LAR7AT6R.mjs.map +1 -0
- package/dist/{chunk-OXVJLJIE.mjs → chunk-LXQQ5N6S.mjs} +2 -2
- package/dist/chunk-LYAPQ4QZ.mjs +40 -0
- package/dist/chunk-LYAPQ4QZ.mjs.map +1 -0
- package/dist/{chunk-QRLGQY7M.mjs → chunk-M47EOYDK.mjs} +6 -4
- package/dist/chunk-M47EOYDK.mjs.map +1 -0
- package/dist/{chunk-CJDDGEEK.mjs → chunk-NFWIUPZU.mjs} +8 -6
- package/dist/chunk-NFWIUPZU.mjs.map +1 -0
- package/dist/{chunk-7Z3YQCXR.mjs → chunk-NYYHRFBW.mjs} +6 -4
- package/dist/chunk-NYYHRFBW.mjs.map +1 -0
- package/dist/{chunk-4ROYPQPC.mjs → chunk-OFGI5FLG.mjs} +2 -2
- package/dist/chunk-PPWHEIZW.mjs +58 -0
- package/dist/chunk-PPWHEIZW.mjs.map +1 -0
- package/dist/chunk-Q5HABVOK.mjs +20 -0
- package/dist/chunk-Q5HABVOK.mjs.map +1 -0
- package/dist/{chunk-TG5IPJOG.mjs → chunk-QQRGOHU6.mjs} +2 -2
- package/dist/chunk-QQRGOHU6.mjs.map +1 -0
- package/dist/{chunk-5J3LAY32.mjs → chunk-QTPKH4PY.mjs} +5 -5
- package/dist/chunk-QTPKH4PY.mjs.map +1 -0
- package/dist/{chunk-65W3AYRE.mjs → chunk-RNROH3VJ.mjs} +6 -4
- package/dist/chunk-RNROH3VJ.mjs.map +1 -0
- package/dist/{chunk-GARRF3U7.mjs → chunk-TMZRZLA2.mjs} +3 -3
- package/dist/chunk-TMZRZLA2.mjs.map +1 -0
- package/dist/{chunk-L7JZMM3J.mjs → chunk-U53FLD4J.mjs} +4 -4
- package/dist/chunk-U53FLD4J.mjs.map +1 -0
- package/dist/{chunk-EB26LF5Z.mjs → chunk-UJEQAXZI.mjs} +4 -4
- package/dist/chunk-UJEQAXZI.mjs.map +1 -0
- package/dist/{chunk-ELFAMVTF.mjs → chunk-UKHDSTTZ.mjs} +5 -5
- package/dist/chunk-UKHDSTTZ.mjs.map +1 -0
- package/dist/chunk-UNHWYQ54.mjs +64 -0
- package/dist/chunk-UNHWYQ54.mjs.map +1 -0
- package/dist/chunk-USGZFNWP.mjs +34 -0
- package/dist/chunk-USGZFNWP.mjs.map +1 -0
- package/dist/{chunk-Y5WPU3ZU.mjs → chunk-UW6S2PNO.mjs} +12 -6
- package/dist/chunk-UW6S2PNO.mjs.map +1 -0
- package/dist/chunk-UYDZZAEK.mjs +11 -0
- package/dist/chunk-UYDZZAEK.mjs.map +1 -0
- package/dist/{chunk-GJFFYHHX.mjs → chunk-VV534JNS.mjs} +5 -3
- package/dist/chunk-VV534JNS.mjs.map +1 -0
- package/dist/{chunk-V7FP66LM.mjs → chunk-WJZFE5NE.mjs} +2 -2
- package/dist/chunk-WJZFE5NE.mjs.map +1 -0
- package/dist/{chunk-ZELLSP3E.mjs → chunk-X7FZPY3P.mjs} +6 -4
- package/dist/{chunk-ZELLSP3E.mjs.map → chunk-X7FZPY3P.mjs.map} +1 -1
- package/dist/{chunk-Q6RSBDMM.mjs → chunk-XBYDAQGZ.mjs} +2 -2
- package/dist/chunk-XBYDAQGZ.mjs.map +1 -0
- package/dist/{chunk-ZJKVMRGU.mjs → chunk-YSBACFUR.mjs} +5 -5
- package/dist/chunk-YSBACFUR.mjs.map +1 -0
- package/dist/chunk-ZHXKBOK2.mjs +22 -0
- package/dist/chunk-ZHXKBOK2.mjs.map +1 -0
- package/dist/chunk-ZPNFXK7Y.mjs +36 -0
- package/dist/chunk-ZPNFXK7Y.mjs.map +1 -0
- package/dist/data/Condition.d.ts +3 -2
- package/dist/data/Condition.mjs +12 -8
- package/dist/data/Database.d.ts +2 -1
- package/dist/data/Database.mjs +12 -7
- package/dist/data/Field.d.ts +1 -1
- package/dist/data/Field.mjs +15 -11
- package/dist/data/Field.mjs.map +1 -1
- package/dist/data/InMemoryGateway.d.ts +5 -1
- package/dist/data/InMemoryGateway.mjs +25 -10
- package/dist/data/InMemoryGateway.mjs.map +1 -1
- package/dist/data/Query.d.ts +1 -1
- package/dist/data/QueryProvider.d.ts +2 -1
- package/dist/domain/Audit.d.ts +3 -2
- package/dist/domain/Audit.mjs +25 -10
- package/dist/domain/Child.d.ts +2 -1
- package/dist/domain/Child.mjs +25 -10
- package/dist/domain/Child.mjs.map +1 -1
- package/dist/domain/{values/DateTime.d.ts → DateTime.d.ts} +3 -1
- package/dist/domain/DateTime.mjs +35 -0
- package/dist/domain/Entity.d.ts +2 -1
- package/dist/domain/Entity.mjs +27 -12
- package/dist/domain/Entity.mjs.map +1 -1
- package/dist/domain/Repo.d.ts +7 -1
- package/dist/domain/Repo.mjs +31 -12
- package/dist/domain/Repo.mjs.map +1 -1
- package/dist/domain/Struct.d.ts +2 -1
- package/dist/domain/Struct.mjs +22 -7
- package/dist/domain/Typo.d.ts +7 -2
- package/dist/domain/Typo.mjs +23 -8
- package/dist/domain/Typo.mjs.map +1 -1
- package/dist/health/HealthResource.d.ts +2 -2
- package/dist/health/HealthResource.mjs +30 -16
- package/dist/health/HealthResource.mjs.map +1 -1
- package/dist/health/HealthUri.d.ts +2 -2
- package/dist/health/HealthUri.mjs +22 -8
- package/dist/http/CacheControl.d.ts +1 -1
- package/dist/http/CacheControl.mjs +23 -9
- package/dist/http/ContentType.d.ts +2 -1
- package/dist/http/ContentType.mjs +12 -7
- package/dist/http/HttpStatus.d.ts +3 -1
- package/dist/http/HttpStatus.mjs +12 -7
- package/dist/http/HttpVerb.d.ts +1 -1
- package/dist/http/HttpVerb.mjs +12 -7
- package/dist/http/LocalRequestStore.d.ts +2 -1
- package/dist/http/LocalRequestStore.mjs +12 -6
- package/dist/http/LocalRequestStore.mjs.map +1 -1
- package/dist/http/OriginatedError.d.ts +1 -1
- package/dist/http/OriginatedError.mjs +1 -2
- package/dist/http/OriginatedError.mjs.map +1 -1
- package/dist/http/Request.d.ts +1 -1
- package/dist/http/RequestOptions.d.ts +6 -1
- package/dist/http/RequestOptions.mjs +16 -9
- package/dist/http/Response.d.ts +2 -5
- package/dist/http/Response.mjs +7 -13
- package/dist/http/RestResult.d.ts +3 -1
- package/dist/http/RestResult.mjs +23 -8
- package/dist/http/Verb.d.ts +4 -1
- package/dist/http/Verb.mjs +27 -13
- package/dist/http/toResponse.d.ts +6 -0
- package/dist/http/toResponse.mjs +33 -0
- package/dist/index.d.ts +118 -12
- package/dist/index.js +1645 -2904
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -12
- package/dist/index.mjs.map +1 -1
- package/dist/process/App.mjs +13 -7
- package/dist/process/App.mjs.map +1 -1
- package/dist/process/Manage.d.ts +3 -1
- package/dist/process/Manage.mjs +22 -8
- package/dist/process/Manage.mjs.map +1 -1
- package/dist/process/Scope.d.ts +4 -1
- package/dist/process/Scope.mjs +13 -7
- package/dist/process/Search.d.ts +7 -2
- package/dist/process/Search.mjs +22 -8
- package/dist/process/UseCase.d.ts +4 -1
- package/dist/process/UseCase.mjs +19 -10
- package/dist/process/UseCase.mjs.map +1 -1
- package/dist/resources/AppProvider.d.ts +1 -1
- package/dist/resources/Req.d.ts +6 -1
- package/dist/resources/Req.mjs +21 -7
- package/dist/resources/Req.mjs.map +1 -1
- package/dist/resources/Requires.d.ts +2 -1
- package/dist/resources/Requires.mjs +10 -6
- package/dist/resources/Requires.mjs.map +1 -1
- package/dist/resources/Route.d.ts +5 -3
- package/dist/resources/Route.mjs +21 -7
- package/dist/resources/Service.d.ts +3 -1
- package/dist/resources/Service.mjs +24 -8
- package/dist/resources/Service.mjs.map +1 -1
- package/dist/security/Jwt.d.ts +5 -1
- package/dist/security/Jwt.mjs +24 -8
- package/dist/security/Jwt.mjs.map +1 -1
- package/dist/services/Api.d.ts +8 -2
- package/dist/services/Api.mjs +32 -16
- package/dist/services/ApiGateway.d.ts +6 -2
- package/dist/services/ApiGateway.mjs +35 -19
- package/dist/services/AxiosProvider.d.ts +3 -1
- package/dist/services/AxiosProvider.mjs +30 -14
- package/dist/services/MappedRouteGateway.d.ts +7 -3
- package/dist/services/MappedRouteGateway.mjs +41 -24
- package/dist/services/MappedRouteGateway.mjs.map +1 -1
- package/dist/services/RouteGateway.d.ts +7 -1
- package/dist/services/RouteGateway.mjs +36 -20
- package/dist/services/ViewRouteGateway.d.ts +10 -6
- package/dist/services/ViewRouteGateway.mjs +39 -22
- package/dist/services/ViewRouteGateway.mjs.map +1 -1
- package/dist/sql/Clause.d.ts +3 -2
- package/dist/sql/Clause.mjs +7 -8
- package/dist/sql/Column.d.ts +3 -2
- package/dist/sql/Column.mjs +24 -10
- package/dist/sql/Count.mjs +11 -9
- package/dist/sql/Delete.mjs +10 -8
- package/dist/sql/Insert.d.ts +1 -1
- package/dist/sql/Insert.mjs +12 -10
- package/dist/sql/Select.d.ts +1 -1
- package/dist/sql/Select.mjs +10 -8
- package/dist/sql/SqlQuery.d.ts +5 -2
- package/dist/sql/SqlQuery.mjs +9 -7
- package/dist/sql/Table.d.ts +13 -12
- package/dist/sql/Table.mjs +37 -22
- package/dist/sql/Table.mjs.map +1 -1
- package/dist/sql/TableGateway.d.ts +6 -2
- package/dist/sql/TableGateway.mjs +23 -9
- package/dist/sql/TableGateway.mjs.map +1 -1
- package/dist/sql/Update.d.ts +1 -1
- package/dist/sql/Update.mjs +12 -10
- package/dist/types/Array.mjs +4 -2
- package/dist/types/Builder.mjs +2 -6
- package/dist/types/Builder.mjs.map +1 -1
- package/dist/types/Cache.mjs +10 -6
- package/dist/types/Cache.mjs.map +1 -1
- package/dist/types/CacheAge.mjs +22 -8
- package/dist/types/Case.d.ts +3 -1
- package/dist/types/Case.mjs +20 -6
- package/dist/types/Constructor.d.ts +1 -0
- package/dist/types/Constructor.mjs +5 -1
- package/dist/types/Context.mjs +12 -6
- package/dist/types/Enum.mjs +11 -6
- package/dist/{domain/enums → types}/Environment.d.ts +1 -1
- package/dist/types/Environment.mjs +28 -0
- package/dist/types/Environment.mjs.map +1 -0
- package/dist/types/ErrorOrigin.d.ts +1 -1
- package/dist/types/Exception.mjs +13 -6
- package/dist/types/Gateway.mjs +15 -7
- package/dist/types/Id.mjs +3 -4
- package/dist/types/Is.d.ts +0 -4
- package/dist/types/Is.mjs +1 -6
- package/dist/types/IsA.d.ts +2 -0
- package/dist/types/IsA.mjs +8 -4
- package/dist/types/IsEqual.mjs +21 -7
- package/dist/types/Json.mjs +10 -6
- package/dist/types/List.d.ts +3 -3
- package/dist/types/List.mjs +8 -6
- package/dist/types/Meta.d.ts +1 -2
- package/dist/types/Meta.mjs +10 -8
- package/dist/types/Number.mjs +21 -7
- package/dist/types/Object.d.ts +8 -0
- package/dist/types/Object.mjs +20 -0
- package/dist/types/PageList.mjs +21 -7
- package/dist/types/Parser.mjs +25 -10
- package/dist/types/Parser.mjs.map +1 -1
- package/dist/types/Primitive.mjs +2 -2
- package/dist/types/Repository.d.ts +5 -1
- package/dist/types/Repository.mjs +15 -7
- package/dist/types/Result.mjs +13 -6
- package/dist/types/Results.mjs +14 -6
- package/dist/types/Tag.mjs +10 -6
- package/dist/types/Tag.mjs.map +1 -1
- package/dist/types/Template.d.ts +41 -2
- package/dist/types/Template.mjs +19 -8
- package/dist/types/Text.d.ts +0 -38
- package/dist/types/Text.mjs +2 -10
- package/dist/types/Try.mjs +20 -6
- package/dist/types/Uri.mjs +21 -7
- package/dist/types/Uuid.mjs +2 -3
- package/dist/types/Validatable.mjs +5 -3
- package/dist/types/Value.d.ts +2 -1
- package/dist/types/Value.mjs +3 -6
- package/dist/utils/Base64.d.ts +1 -1
- package/dist/utils/Base64.mjs.map +1 -1
- package/dist/utils/Convert.mjs +3 -7
- package/dist/utils/If.d.ts +2 -1
- package/dist/utils/If.mjs +4 -2
- package/dist/utils/Loading.mjs +1 -2
- package/dist/utils/Loading.mjs.map +1 -1
- package/dist/utils/Log.d.ts +1 -1
- package/dist/utils/Log.mjs.map +1 -1
- package/dist/utils/Mapper.d.ts +6 -1
- package/dist/utils/Mapper.mjs +15 -10
- package/dist/utils/Promise.d.ts +2 -1
- package/dist/utils/Promise.mjs +9 -6
- package/dist/utils/Property.d.ts +2 -1
- package/dist/utils/Property.mjs +4 -8
- package/dist/utils/Sentence.d.ts +2 -1
- package/dist/utils/Sentence.mjs +11 -6
- package/dist/utils/Sentence.mjs.map +1 -1
- package/dist/utils/State.d.ts +1 -1
- package/dist/utils/State.mjs +4 -2
- package/dist/utils/View.d.ts +6 -1
- package/dist/utils/View.mjs +24 -9
- package/dist/validation/Contraints.d.ts +3 -1
- package/dist/validation/Contraints.mjs +21 -7
- package/dist/validation/Validate.d.ts +3 -1
- package/dist/validation/Validate.mjs +20 -6
- package/dist/validation/When.d.ts +4 -1
- package/dist/validation/When.mjs +20 -6
- package/package.json +2 -2
- package/src/data/Condition.ts +17 -5
- package/src/data/Database.ts +7 -2
- package/src/data/Field.ts +3 -2
- package/src/data/InMemoryGateway.ts +8 -2
- package/src/data/Query.ts +1 -1
- package/src/data/QueryProvider.ts +2 -1
- package/src/domain/Audit.ts +11 -7
- package/src/domain/Child.ts +3 -2
- package/src/domain/{values/DateTime.ts → DateTime.ts} +8 -2
- package/src/domain/Entity.ts +3 -2
- package/src/domain/Repo.ts +15 -4
- package/src/domain/Struct.ts +4 -2
- package/src/domain/Typo.ts +13 -4
- package/src/health/HealthResource.ts +5 -3
- package/src/health/HealthUri.ts +1 -1
- package/src/http/CacheControl.ts +9 -3
- package/src/http/ContentType.ts +8 -2
- package/src/http/HttpStatus.ts +4 -1
- package/src/http/HttpVerb.ts +1 -1
- package/src/http/LocalRequestStore.ts +3 -1
- package/src/http/OriginatedError.ts +6 -2
- package/src/http/Request.ts +1 -1
- package/src/http/RequestOptions.ts +16 -2
- package/src/http/Response.ts +4 -9
- package/src/http/RestResult.ts +7 -1
- package/src/http/Verb.ts +5 -2
- package/src/http/toResponse.ts +12 -0
- package/src/index.ts +129 -12
- package/src/process/Manage.ts +3 -1
- package/src/process/Scope.ts +12 -2
- package/src/process/Search.ts +9 -3
- package/src/process/UseCase.ts +12 -2
- package/src/resources/AppProvider.ts +1 -1
- package/src/resources/Req.ts +14 -3
- package/src/resources/Requires.ts +3 -2
- package/src/resources/Route.ts +8 -3
- package/src/resources/Service.ts +9 -2
- package/src/security/Jwt.ts +7 -1
- package/src/services/Api.ts +12 -3
- package/src/services/ApiGateway.ts +7 -2
- package/src/services/AxiosProvider.ts +14 -2
- package/src/services/MappedRouteGateway.ts +13 -4
- package/src/services/RouteGateway.ts +14 -3
- package/src/services/ViewRouteGateway.ts +7 -3
- package/src/sql/Clause.ts +10 -3
- package/src/sql/Column.ts +14 -4
- package/src/sql/Count.ts +1 -1
- package/src/sql/Delete.ts +1 -1
- package/src/sql/Insert.ts +5 -2
- package/src/sql/Select.ts +6 -2
- package/src/sql/SqlQuery.ts +9 -3
- package/src/sql/Table.ts +6 -3
- package/src/sql/TableGateway.ts +13 -5
- package/src/sql/Update.ts +6 -2
- package/src/types/CacheAge.ts +3 -1
- package/src/types/Case.ts +14 -4
- package/src/types/Constructor.ts +3 -1
- package/src/types/Context.ts +7 -8
- package/src/{domain/enums → types}/Environment.ts +1 -1
- package/src/types/ErrorOrigin.ts +1 -1
- package/src/types/Exception.ts +7 -2
- package/src/types/Gateway.ts +1 -1
- package/src/types/Is.ts +0 -7
- package/src/types/IsA.ts +4 -0
- package/src/types/Json.ts +2 -2
- package/src/types/List.ts +13 -12
- package/src/types/Meta.ts +12 -9
- package/src/types/Object.ts +16 -0
- package/src/types/Parser.ts +1 -1
- package/src/types/Repository.ts +7 -2
- package/src/types/Template.ts +149 -12
- package/src/types/Text.ts +3 -138
- package/src/types/Try.ts +1 -1
- package/src/types/Uri.ts +2 -1
- package/src/types/Value.ts +4 -1
- package/src/utils/Base64.ts +1 -1
- package/src/utils/Convert.ts +5 -2
- package/src/utils/If.ts +3 -1
- package/src/utils/Loading.ts +1 -1
- package/src/utils/Log.ts +1 -1
- package/src/utils/Mapper.ts +13 -2
- package/src/utils/Promise.ts +3 -1
- package/src/utils/Property.ts +6 -2
- package/src/utils/Sentence.ts +8 -2
- package/src/utils/State.ts +1 -1
- package/src/utils/View.ts +15 -22
- package/src/validation/Contraints.ts +9 -1
- package/src/validation/Validate.ts +26 -29
- package/src/validation/When.ts +13 -3
- package/dist/chunk-2L3GZ6NK.mjs.map +0 -1
- package/dist/chunk-3MOFYE2N.mjs.map +0 -1
- package/dist/chunk-5J3LAY32.mjs.map +0 -1
- package/dist/chunk-624IHTEI.mjs.map +0 -1
- package/dist/chunk-65W3AYRE.mjs.map +0 -1
- package/dist/chunk-7Z3YQCXR.mjs.map +0 -1
- package/dist/chunk-A5MC57TL.mjs.map +0 -1
- package/dist/chunk-ARN4MTMY.mjs.map +0 -1
- package/dist/chunk-BAXNN36F.mjs.map +0 -1
- package/dist/chunk-C7OPGGIF.mjs +0 -21
- package/dist/chunk-C7OPGGIF.mjs.map +0 -1
- package/dist/chunk-CJDDGEEK.mjs.map +0 -1
- package/dist/chunk-EB26LF5Z.mjs.map +0 -1
- package/dist/chunk-ELFAMVTF.mjs.map +0 -1
- package/dist/chunk-F4CWMZCV.mjs.map +0 -1
- package/dist/chunk-GARRF3U7.mjs.map +0 -1
- package/dist/chunk-GJFFYHHX.mjs.map +0 -1
- package/dist/chunk-GUSPHVF2.mjs.map +0 -1
- package/dist/chunk-H7NDGISC.mjs.map +0 -1
- package/dist/chunk-HBJUEFGA.mjs +0 -26
- package/dist/chunk-HBJUEFGA.mjs.map +0 -1
- package/dist/chunk-I2NKUYUM.mjs +0 -272
- package/dist/chunk-I2NKUYUM.mjs.map +0 -1
- package/dist/chunk-I3DRDMCS.mjs.map +0 -1
- package/dist/chunk-I5MPU33B.mjs.map +0 -1
- package/dist/chunk-IWLJEAQZ.mjs.map +0 -1
- package/dist/chunk-J64VE55O.mjs.map +0 -1
- package/dist/chunk-L7JZMM3J.mjs.map +0 -1
- package/dist/chunk-MRIELSWP.mjs.map +0 -1
- package/dist/chunk-NKHZO3ME.mjs.map +0 -1
- package/dist/chunk-NOMZAVQC.mjs.map +0 -1
- package/dist/chunk-PFAEQQXA.mjs +0 -900
- package/dist/chunk-PFAEQQXA.mjs.map +0 -1
- package/dist/chunk-PWCGCUT7.mjs.map +0 -1
- package/dist/chunk-Q5ATL34D.mjs +0 -13
- package/dist/chunk-Q5ATL34D.mjs.map +0 -1
- package/dist/chunk-Q6RSBDMM.mjs.map +0 -1
- package/dist/chunk-QRLGQY7M.mjs.map +0 -1
- package/dist/chunk-QRN4Y2QC.mjs.map +0 -1
- package/dist/chunk-S5RHU67S.mjs.map +0 -1
- package/dist/chunk-SG6BDC6T.mjs.map +0 -1
- package/dist/chunk-TG5IPJOG.mjs.map +0 -1
- package/dist/chunk-TQUDYF6E.mjs.map +0 -1
- package/dist/chunk-UWNXWKBU.mjs.map +0 -1
- package/dist/chunk-V7FP66LM.mjs.map +0 -1
- package/dist/chunk-WX6UP67J.mjs +0 -40
- package/dist/chunk-WX6UP67J.mjs.map +0 -1
- package/dist/chunk-WYT52YAX.mjs.map +0 -1
- package/dist/chunk-XLFC44Y3.mjs.map +0 -1
- package/dist/chunk-Y5WPU3ZU.mjs.map +0 -1
- package/dist/chunk-YHL2CUBI.mjs.map +0 -1
- package/dist/chunk-YUSOGMIJ.mjs +0 -183
- package/dist/chunk-YUSOGMIJ.mjs.map +0 -1
- package/dist/chunk-YXE66GAL.mjs +0 -19
- package/dist/chunk-YXE66GAL.mjs.map +0 -1
- package/dist/chunk-ZJKVMRGU.mjs.map +0 -1
- package/dist/data/index.d.ts +0 -7
- package/dist/data/index.mjs +0 -8
- package/dist/data/index.mjs.map +0 -1
- package/dist/domain/enums/Country.d.ts +0 -256
- package/dist/domain/enums/Country.mjs +0 -16
- package/dist/domain/enums/Currency.d.ts +0 -127
- package/dist/domain/enums/Currency.mjs +0 -19
- package/dist/domain/enums/Environment.mjs +0 -23
- package/dist/domain/enums/Environment.mjs.map +0 -1
- package/dist/domain/enums/Locale.d.ts +0 -571
- package/dist/domain/enums/Locale.mjs +0 -594
- package/dist/domain/enums/Locale.mjs.map +0 -1
- package/dist/domain/enums/UnitOfMeasurement.d.ts +0 -10
- package/dist/domain/enums/UnitOfMeasurement.mjs +0 -16
- package/dist/domain/enums/UnitOfMeasurement.mjs.map +0 -1
- package/dist/domain/enums/UnitOfWeight.d.ts +0 -8
- package/dist/domain/enums/UnitOfWeight.mjs +0 -16
- package/dist/domain/enums/UnitOfWeight.mjs.map +0 -1
- package/dist/domain/enums/index.d.ts +0 -6
- package/dist/domain/enums/index.mjs +0 -7
- package/dist/domain/enums/index.mjs.map +0 -1
- package/dist/domain/index.d.ts +0 -9
- package/dist/domain/index.mjs +0 -10
- package/dist/domain/index.mjs.map +0 -1
- package/dist/domain/structs/Address.d.ts +0 -12
- package/dist/domain/structs/Address.mjs +0 -65
- package/dist/domain/structs/Address.mjs.map +0 -1
- package/dist/domain/structs/Box.d.ts +0 -15
- package/dist/domain/structs/Box.mjs +0 -58
- package/dist/domain/structs/Box.mjs.map +0 -1
- package/dist/domain/structs/Dimension.d.ts +0 -10
- package/dist/domain/structs/Dimension.mjs +0 -20
- package/dist/domain/structs/Dimension.mjs.map +0 -1
- package/dist/domain/structs/Money.d.ts +0 -12
- package/dist/domain/structs/Money.mjs +0 -23
- package/dist/domain/structs/Money.mjs.map +0 -1
- package/dist/domain/structs/Name.d.ts +0 -9
- package/dist/domain/structs/Name.mjs +0 -42
- package/dist/domain/structs/Name.mjs.map +0 -1
- package/dist/domain/structs/Weight.d.ts +0 -13
- package/dist/domain/structs/Weight.mjs +0 -57
- package/dist/domain/structs/Weight.mjs.map +0 -1
- package/dist/domain/structs/index.d.ts +0 -6
- package/dist/domain/structs/index.mjs +0 -7
- package/dist/domain/structs/index.mjs.map +0 -1
- package/dist/domain/values/DateTime.mjs +0 -21
- package/dist/domain/values/EAN.d.ts +0 -5
- package/dist/domain/values/EAN.mjs +0 -30
- package/dist/domain/values/EAN.mjs.map +0 -1
- package/dist/domain/values/Email.d.ts +0 -8
- package/dist/domain/values/Email.mjs +0 -37
- package/dist/domain/values/Email.mjs.map +0 -1
- package/dist/domain/values/IBAN.d.ts +0 -5
- package/dist/domain/values/IBAN.mjs +0 -30
- package/dist/domain/values/IBAN.mjs.map +0 -1
- package/dist/domain/values/PostalCode.d.ts +0 -8
- package/dist/domain/values/PostalCode.mjs +0 -19
- package/dist/domain/values/PostalCode.mjs.map +0 -1
- package/dist/domain/values/Slug.d.ts +0 -6
- package/dist/domain/values/Slug.mjs +0 -31
- package/dist/domain/values/Slug.mjs.map +0 -1
- package/dist/domain/values/Url.d.ts +0 -22
- package/dist/domain/values/Url.mjs +0 -36
- package/dist/domain/values/Url.mjs.map +0 -1
- package/dist/domain/values/index.d.ts +0 -7
- package/dist/domain/values/index.mjs +0 -8
- package/dist/domain/values/index.mjs.map +0 -1
- package/dist/health/index.d.ts +0 -2
- package/dist/health/index.mjs +0 -3
- package/dist/health/index.mjs.map +0 -1
- package/dist/http/index.d.ts +0 -12
- package/dist/http/index.mjs +0 -13
- package/dist/http/index.mjs.map +0 -1
- package/dist/process/index.d.ts +0 -5
- package/dist/process/index.mjs +0 -6
- package/dist/process/index.mjs.map +0 -1
- package/dist/resources/index.d.ts +0 -7
- package/dist/resources/index.mjs +0 -8
- package/dist/resources/index.mjs.map +0 -1
- package/dist/security/index.d.ts +0 -1
- package/dist/security/index.mjs +0 -2
- package/dist/security/index.mjs.map +0 -1
- package/dist/services/index.d.ts +0 -6
- package/dist/services/index.mjs +0 -7
- package/dist/services/index.mjs.map +0 -1
- package/dist/sql/index.d.ts +0 -10
- package/dist/sql/index.mjs +0 -11
- package/dist/sql/index.mjs.map +0 -1
- package/dist/types/index.d.ts +0 -43
- package/dist/types/index.mjs +0 -44
- package/dist/types/index.mjs.map +0 -1
- package/dist/utils/index.d.ts +0 -13
- package/dist/utils/index.mjs +0 -14
- package/dist/utils/index.mjs.map +0 -1
- package/dist/validation/index.d.ts +0 -3
- package/dist/validation/index.mjs +0 -4
- package/dist/validation/index.mjs.map +0 -1
- package/src/data/index.ts +0 -7
- package/src/domain/enums/Country.ts +0 -265
- package/src/domain/enums/Currency.ts +0 -133
- package/src/domain/enums/Locale.ts +0 -579
- package/src/domain/enums/UnitOfMeasurement.ts +0 -13
- package/src/domain/enums/UnitOfWeight.ts +0 -11
- package/src/domain/enums/countries.json +0 -251
- package/src/domain/enums/currencies.json +0 -1073
- package/src/domain/enums/index.ts +0 -6
- package/src/domain/enums/locales.json +0 -565
- package/src/domain/index.ts +0 -9
- package/src/domain/structs/Address.ts +0 -22
- package/src/domain/structs/Box.ts +0 -29
- package/src/domain/structs/Dimension.ts +0 -25
- package/src/domain/structs/Money.ts +0 -31
- package/src/domain/structs/Name.ts +0 -15
- package/src/domain/structs/Weight.ts +0 -35
- package/src/domain/structs/index.ts +0 -6
- package/src/domain/values/EAN.ts +0 -12
- package/src/domain/values/Email.ts +0 -20
- package/src/domain/values/IBAN.ts +0 -12
- package/src/domain/values/PostalCode.ts +0 -17
- package/src/domain/values/Slug.ts +0 -14
- package/src/domain/values/Url.ts +0 -73
- package/src/domain/values/index.ts +0 -7
- package/src/health/index.ts +0 -2
- package/src/http/index.ts +0 -12
- package/src/process/index.ts +0 -5
- package/src/resources/index.ts +0 -7
- package/src/security/index.ts +0 -1
- package/src/services/index.ts +0 -6
- package/src/sql/index.ts +0 -10
- package/src/types/index.ts +0 -43
- package/src/utils/index.ts +0 -13
- package/src/validation/index.ts +0 -3
- /package/dist/{chunk-GCPVSACZ.mjs.map → chunk-5YM5CLOG.mjs.map} +0 -0
- /package/dist/{chunk-2KKIXOMB.mjs.map → chunk-HNVAFEZP.mjs.map} +0 -0
- /package/dist/{chunk-OXVJLJIE.mjs.map → chunk-LXQQ5N6S.mjs.map} +0 -0
- /package/dist/{chunk-4ROYPQPC.mjs.map → chunk-OFGI5FLG.mjs.map} +0 -0
- /package/dist/domain/{values/DateTime.mjs.map → DateTime.mjs.map} +0 -0
- /package/dist/{domain/enums/Country.mjs.map → http/toResponse.mjs.map} +0 -0
- /package/dist/{domain/enums/Currency.mjs.map → types/Object.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,119 @@
|
|
|
1
|
-
export * from "./data";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
1
|
+
export * from "./data/Condition";
|
|
2
|
+
export * from "./data/InMemoryGateway";
|
|
3
|
+
export * from "./data/Database";
|
|
4
|
+
export * from "./data/DataProvider";
|
|
5
|
+
export * from "./data/Field";
|
|
6
|
+
export * from "./data/Query";
|
|
7
|
+
export * from "./data/QueryProvider";
|
|
8
|
+
export * from "./domain/Audit";
|
|
9
|
+
export * from "./domain/Child";
|
|
10
|
+
export * from "./domain/DateTime";
|
|
11
|
+
export * from "./domain/Entity";
|
|
12
|
+
export * from "./domain/Struct";
|
|
13
|
+
export * from "./domain/Repo";
|
|
14
|
+
export * from "./domain/Typo";
|
|
15
|
+
export * from "./health/HealthResource";
|
|
16
|
+
export * from "./health/HealthUri";
|
|
17
|
+
export * from "./http/CacheControl";
|
|
18
|
+
export * from "./http/ContentType";
|
|
19
|
+
export * from "./http/HttpHeader";
|
|
20
|
+
export * from "./http/HttpStatus";
|
|
21
|
+
export * from "./http/HttpVerb";
|
|
22
|
+
export * from "./http/OriginatedError";
|
|
23
|
+
export * from "./http/Request";
|
|
24
|
+
export * from "./http/RequestOptions";
|
|
25
|
+
export * from "./http/RequestProvider";
|
|
26
|
+
export * from "./http/Response";
|
|
27
|
+
export * from "./http/RestResult";
|
|
28
|
+
export * from "./http/toResponse";
|
|
29
|
+
export * from "./http/Verb";
|
|
30
|
+
export * from "./process/App";
|
|
31
|
+
export * from "./process/Manage";
|
|
32
|
+
export * from "./process/Scope";
|
|
33
|
+
export * from "./process/Search";
|
|
34
|
+
export * from "./process/UseCase";
|
|
35
|
+
export * from "./resources/AppProvider";
|
|
36
|
+
export * from "./resources/Req";
|
|
37
|
+
export * from "./resources/Requires";
|
|
38
|
+
export * from "./resources/Resource";
|
|
39
|
+
export * from "./resources/Route";
|
|
40
|
+
export * from "./resources/Service";
|
|
41
|
+
export * from "./security/Jwt";
|
|
42
|
+
export * from "./services/Api";
|
|
43
|
+
export * from "./services/ApiGateway";
|
|
44
|
+
export * from "./services/AxiosProvider";
|
|
45
|
+
export * from "./services/MappedRouteGateway";
|
|
46
|
+
export * from "./services/RouteGateway";
|
|
47
|
+
export * from "./services/ViewRouteGateway";
|
|
48
|
+
export * from "./sql/Clause";
|
|
49
|
+
export * from "./sql/Column";
|
|
50
|
+
export * from "./sql/Delete";
|
|
51
|
+
export * from "./sql/Insert";
|
|
52
|
+
export * from "./sql/Join";
|
|
53
|
+
export * from "./sql/SqlQuery";
|
|
54
|
+
export * from "./sql/Select";
|
|
55
|
+
export * from "./sql/Table";
|
|
56
|
+
export * from "./sql/TableGateway";
|
|
57
|
+
export * from "./sql/Update";
|
|
58
|
+
export * from "./types/Array";
|
|
59
|
+
export * from "./types/Builder";
|
|
60
|
+
export * from "./types/Cache";
|
|
61
|
+
export * from "./types/CacheAge";
|
|
62
|
+
export * from "./types/Case";
|
|
63
|
+
export * from "./types/Constructor";
|
|
64
|
+
export * from "./types/Context";
|
|
65
|
+
export * from "./types/Enum";
|
|
66
|
+
export * from "./types/Environment";
|
|
67
|
+
export * from "./types/ErrorOrigin";
|
|
68
|
+
export * from "./types/Exception";
|
|
69
|
+
export * from "./types/Falsy";
|
|
70
|
+
export * from "./types/Func";
|
|
71
|
+
export * from "./types/Gateway";
|
|
72
|
+
export * from "./types/Get";
|
|
73
|
+
export * from "./types/Id";
|
|
74
|
+
export * from "./types/Identity";
|
|
75
|
+
export * from "./types/Is";
|
|
76
|
+
export * from "./types/IsA";
|
|
77
|
+
export * from "./types/IsDate";
|
|
78
|
+
export * from "./types/IsEqual";
|
|
79
|
+
export * from "./types/Json";
|
|
80
|
+
export * from "./types/List";
|
|
81
|
+
export * from "./types/Message";
|
|
82
|
+
export * from "./types/Meta";
|
|
83
|
+
export * from "./types/Nullish";
|
|
84
|
+
export * from "./types/Number";
|
|
85
|
+
export * from "./types/Object";
|
|
86
|
+
export * from "./types/PageList";
|
|
87
|
+
export * from "./types/Parser";
|
|
88
|
+
export * from "./types/Primitive";
|
|
89
|
+
export * from "./types/Repository";
|
|
90
|
+
export * from "./types/Result";
|
|
91
|
+
export * from "./types/Results";
|
|
92
|
+
export * from "./types/Sort";
|
|
93
|
+
export * from "./types/Tag";
|
|
94
|
+
export * from "./types/Template";
|
|
95
|
+
export * from "./types/Text";
|
|
96
|
+
export * from "./types/Try";
|
|
97
|
+
export * from "./types/TypeGuard";
|
|
98
|
+
export * from "./types/Types";
|
|
99
|
+
export * from "./types/Uri";
|
|
100
|
+
export * from "./types/Uuid";
|
|
101
|
+
export * from "./types/Validatable";
|
|
102
|
+
export * from "./types/Value";
|
|
103
|
+
export * from "./utils/Base64";
|
|
104
|
+
export * from "./utils/Convert";
|
|
105
|
+
export * from "./utils/If";
|
|
106
|
+
export * from "./utils/Loading";
|
|
107
|
+
export * from "./utils/Log";
|
|
108
|
+
export * from "./utils/Mapper";
|
|
109
|
+
export * from "./utils/Promise";
|
|
110
|
+
export * from "./utils/Property";
|
|
111
|
+
export * from "./utils/State";
|
|
112
|
+
export * from "./utils/Sentence";
|
|
113
|
+
export * from "./utils/Traverse";
|
|
114
|
+
export * from "./utils/View";
|
|
115
|
+
export * from "./utils/Wait";
|
|
116
|
+
export * from "./validation/Contraints";
|
|
117
|
+
export * from "./validation/Validate";
|
|
118
|
+
export * from "./validation/When";
|
|
13
119
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './data';\nexport * from './domain';\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './data/Condition';\nexport * from './data/InMemoryGateway';\nexport * from './data/Database';\nexport * from './data/DataProvider';\nexport * from './data/Field';\nexport * from './data/Query';\nexport * from './data/QueryProvider';\n\nexport * from './domain/Audit';\nexport * from './domain/Child';\nexport * from './domain/DateTime';\nexport * from './domain/Entity';\nexport * from './domain/Struct';\nexport * from './domain/Repo';\nexport * from './domain/Typo';\n\nexport * from './health/HealthResource';\nexport * from './health/HealthUri';\n\nexport * from './http/CacheControl';\nexport * from './http/ContentType';\nexport * from './http/HttpHeader';\nexport * from './http/HttpStatus';\nexport * from './http/HttpVerb';\nexport * from './http/OriginatedError';\nexport * from './http/Request';\nexport * from './http/RequestOptions';\nexport * from './http/RequestProvider';\nexport * from './http/Response';\nexport * from './http/RestResult';\nexport * from './http/toResponse';\nexport * from './http/Verb';\n\nexport * from './process/App';\nexport * from './process/Manage';\nexport * from './process/Scope';\nexport * from './process/Search';\nexport * from './process/UseCase';\n\nexport * from './resources/AppProvider';\nexport * from './resources/Req';\nexport * from './resources/Requires';\nexport * from './resources/Resource';\nexport * from './resources/Route';\nexport * from './resources/Service';\n\nexport * from './security/Jwt';\n\nexport * from './services/Api';\nexport * from './services/ApiGateway';\nexport * from './services/AxiosProvider';\nexport * from './services/MappedRouteGateway';\nexport * from './services/RouteGateway';\nexport * from './services/ViewRouteGateway';\n\nexport * from './sql/Clause';\nexport * from './sql/Column';\nexport * from './sql/Delete';\nexport * from './sql/Insert';\nexport * from './sql/Join';\nexport * from './sql/SqlQuery';\nexport * from './sql/Select';\nexport * from './sql/Table';\nexport * from './sql/TableGateway';\nexport * from './sql/Update';\n\nexport * from './types/Array';\nexport * from './types/Builder';\nexport * from './types/Cache';\nexport * from './types/CacheAge';\nexport * from './types/Case';\nexport * from './types/Constructor';\nexport * from './types/Context';\nexport * from './types/Enum';\nexport * from './types/Environment';\nexport * from './types/ErrorOrigin';\nexport * from './types/Exception';\nexport * from './types/Falsy';\nexport * from './types/Func';\nexport * from './types/Gateway';\nexport * from './types/Get';\nexport * from './types/Id';\nexport * from './types/Identity';\nexport * from './types/Is';\nexport * from './types/IsA';\nexport * from './types/IsDate';\nexport * from './types/IsEqual';\nexport * from './types/Json';\nexport * from './types/List';\nexport * from './types/Message';\nexport * from './types/Meta';\nexport * from './types/Nullish';\nexport * from './types/Number';\nexport * from './types/Object';\nexport * from './types/PageList';\nexport * from './types/Parser';\nexport * from './types/Primitive';\nexport * from './types/Repository';\nexport * from './types/Result';\nexport * from './types/Results';\nexport * from './types/Sort';\nexport * from './types/Tag';\nexport * from './types/Template';\nexport * from './types/Text';\nexport * from './types/Try';\nexport * from './types/TypeGuard';\nexport * from './types/Types';\nexport * from './types/Uri';\nexport * from './types/Uuid';\nexport * from './types/Validatable';\nexport * from './types/Value';\n\nexport * from './utils/Base64';\nexport * from './utils/Convert';\nexport * from './utils/If';\nexport * from './utils/Loading';\nexport * from './utils/Log';\nexport * from './utils/Mapper';\nexport * from './utils/Promise';\nexport * from './utils/Property';\nexport * from './utils/State';\nexport * from './utils/Sentence';\nexport * from './utils/Traverse';\nexport * from './utils/View';\nexport * from './utils/Wait';\n\nexport * from './validation/Contraints';\nexport * from './validation/Validate';\nexport * from './validation/When';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
package/dist/process/App.mjs
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Scope
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KRLEHX37.mjs";
|
|
4
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
5
|
+
import "../chunk-UNHWYQ54.mjs";
|
|
6
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
7
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
8
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
9
|
+
import "../chunk-JSON7A4X.mjs";
|
|
10
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
11
|
+
import "../chunk-45GNHDKA.mjs";
|
|
8
12
|
import "../chunk-SJGQU3OG.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
14
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
15
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
11
16
|
import "../chunk-PIRWVOO2.mjs";
|
|
17
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
12
18
|
import "../chunk-4N72FQFX.mjs";
|
|
13
19
|
|
|
14
20
|
// src/process/App.ts
|
package/dist/process/App.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/process/App.ts"],"sourcesContent":["import { Scope } from './Scope';\n\nexport class App extends Scope {\n constructor(name: string) {\n super(name);\n }\n\n static readonly Main = new App('Main');\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/process/App.ts"],"sourcesContent":["import { Scope } from './Scope';\n\nexport class App extends Scope {\n constructor(name: string) {\n super(name);\n }\n\n static readonly Main = new App('Main');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEO,IAAM,MAAN,MAAM,aAAY,MAAM;AAAA,EAC7B,YAAY,MAAc;AACxB,UAAM,IAAI;AAAA,EACZ;AAAA,EAEA,OAAgB,OAAO,IAAI,KAAI,MAAM;AACvC;","names":[]}
|
package/dist/process/Manage.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Search } from './Search';
|
|
2
|
-
import { FetchOptions
|
|
2
|
+
import { FetchOptions } from '../types/Gateway';
|
|
3
|
+
import { Json } from '../types/Json';
|
|
4
|
+
import { Id } from '../types/Id';
|
|
3
5
|
export declare class Manage<T, Options = FetchOptions> extends Search<T, Options> {
|
|
4
6
|
add(json: Json): Promise<T>;
|
|
5
7
|
update(id: Id, json: Json): Promise<T>;
|
package/dist/process/Manage.mjs
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Search
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-M47EOYDK.mjs";
|
|
4
|
+
import "../chunk-A62OK7XE.mjs";
|
|
5
|
+
import "../chunk-ARZEQQW5.mjs";
|
|
6
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
7
|
+
import "../chunk-CAHTK3AT.mjs";
|
|
8
|
+
import "../chunk-4G6AW6D6.mjs";
|
|
9
|
+
import "../chunk-J6KN572O.mjs";
|
|
10
|
+
import "../chunk-USGZFNWP.mjs";
|
|
11
|
+
import "../chunk-LYAPQ4QZ.mjs";
|
|
12
|
+
import "../chunk-6YVMQB26.mjs";
|
|
13
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
14
|
+
import "../chunk-UNHWYQ54.mjs";
|
|
15
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
16
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
17
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
18
|
+
import "../chunk-JSON7A4X.mjs";
|
|
19
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
20
|
+
import "../chunk-45GNHDKA.mjs";
|
|
9
21
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
23
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
24
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
12
25
|
import "../chunk-PIRWVOO2.mjs";
|
|
26
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
13
27
|
import "../chunk-4N72FQFX.mjs";
|
|
14
28
|
|
|
15
29
|
// src/process/Manage.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/process/Manage.ts"],"sourcesContent":["import { Search } from './Search';\nimport { FetchOptions
|
|
1
|
+
{"version":3,"sources":["../../src/process/Manage.ts"],"sourcesContent":["import { Search } from './Search';\nimport { FetchOptions } from '../types/Gateway';\nimport { Json } from '../types/Json';\nimport { Id } from '../types/Id';\n\nexport class Manage<T, Options = FetchOptions> extends Search<T, Options> {\n add(json: Json): Promise<T> {\n return this.repo.add(json);\n }\n\n update(id: Id, json: Json): Promise<T> {\n return this.repo.update(id, json);\n }\n\n upsert(id: Id, json: Json): Promise<T> {\n return this.repo.upsert(id, json);\n }\n\n remove(id: Id): Promise<boolean> {\n return this.repo.remove(id);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKO,IAAM,SAAN,cAAgD,OAAmB;AAAA,EACxE,IAAI,MAAwB;AAC1B,WAAO,KAAK,KAAK,IAAI,IAAI;AAAA,EAC3B;AAAA,EAEA,OAAO,IAAQ,MAAwB;AACrC,WAAO,KAAK,KAAK,OAAO,IAAI,IAAI;AAAA,EAClC;AAAA,EAEA,OAAO,IAAQ,MAAwB;AACrC,WAAO,KAAK,KAAK,OAAO,IAAI,IAAI;AAAA,EAClC;AAAA,EAEA,OAAO,IAA0B;AAC/B,WAAO,KAAK,KAAK,OAAO,EAAE;AAAA,EAC5B;AACF;","names":[]}
|
package/dist/process/Scope.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Enum
|
|
1
|
+
import { Enum } from '../types/Enum';
|
|
2
|
+
import type { Text } from '../types/Text';
|
|
3
|
+
import { List } from '../types/List';
|
|
4
|
+
import { IdName } from '../types/Identity';
|
|
2
5
|
export declare class Scope extends Enum {
|
|
3
6
|
readonly name: string;
|
|
4
7
|
readonly subs: List<Scope>;
|
package/dist/process/Scope.mjs
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Scope
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KRLEHX37.mjs";
|
|
4
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
5
|
+
import "../chunk-UNHWYQ54.mjs";
|
|
6
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
7
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
8
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
9
|
+
import "../chunk-JSON7A4X.mjs";
|
|
10
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
11
|
+
import "../chunk-45GNHDKA.mjs";
|
|
8
12
|
import "../chunk-SJGQU3OG.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
14
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
15
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
11
16
|
import "../chunk-PIRWVOO2.mjs";
|
|
17
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
12
18
|
import "../chunk-4N72FQFX.mjs";
|
|
13
19
|
export {
|
|
14
20
|
Scope
|
package/dist/process/Search.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { FetchOptions
|
|
2
|
-
import {
|
|
1
|
+
import { FetchOptions } from '../types/Gateway';
|
|
2
|
+
import { Repository } from '../types/Repository';
|
|
3
|
+
import { PageList } from '../types/PageList';
|
|
4
|
+
import { Id, Key } from '../types/Id';
|
|
5
|
+
import { List } from '../types/List';
|
|
6
|
+
import { Req } from '../resources/Req';
|
|
7
|
+
import { JsonValue } from '../types/Json';
|
|
3
8
|
export declare class Search<T, Options = FetchOptions> {
|
|
4
9
|
protected repo: Repository<T, Options>;
|
|
5
10
|
constructor(repo: Repository<T, Options>);
|
package/dist/process/Search.mjs
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Search
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-M47EOYDK.mjs";
|
|
4
|
+
import "../chunk-A62OK7XE.mjs";
|
|
5
|
+
import "../chunk-ARZEQQW5.mjs";
|
|
6
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
7
|
+
import "../chunk-CAHTK3AT.mjs";
|
|
8
|
+
import "../chunk-4G6AW6D6.mjs";
|
|
9
|
+
import "../chunk-J6KN572O.mjs";
|
|
10
|
+
import "../chunk-USGZFNWP.mjs";
|
|
11
|
+
import "../chunk-LYAPQ4QZ.mjs";
|
|
12
|
+
import "../chunk-6YVMQB26.mjs";
|
|
13
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
14
|
+
import "../chunk-UNHWYQ54.mjs";
|
|
15
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
16
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
17
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
18
|
+
import "../chunk-JSON7A4X.mjs";
|
|
19
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
20
|
+
import "../chunk-45GNHDKA.mjs";
|
|
9
21
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
23
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
24
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
12
25
|
import "../chunk-PIRWVOO2.mjs";
|
|
26
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
13
27
|
import "../chunk-4N72FQFX.mjs";
|
|
14
28
|
export {
|
|
15
29
|
Search
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { Enum, IdName, List, Text } from '../types';
|
|
2
1
|
import { Scope } from './Scope';
|
|
3
2
|
import { App } from './App';
|
|
3
|
+
import { Enum } from '../types/Enum';
|
|
4
|
+
import { Text } from '../types/Text';
|
|
5
|
+
import { List } from '../types/List';
|
|
6
|
+
import { IdName } from '../types/Identity';
|
|
4
7
|
export declare class UseCase extends Enum {
|
|
5
8
|
readonly app: App;
|
|
6
9
|
readonly scopes: List<Scope>;
|
package/dist/process/UseCase.mjs
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
text
|
|
3
|
+
} from "../chunk-FHW5K2RR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Enum
|
|
6
|
+
} from "../chunk-UNHWYQ54.mjs";
|
|
7
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
8
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
9
|
+
import {
|
|
5
10
|
toList
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import
|
|
11
|
+
} from "../chunk-J7XKOXMW.mjs";
|
|
12
|
+
import "../chunk-JSON7A4X.mjs";
|
|
13
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
14
|
+
import {
|
|
15
|
+
kebab
|
|
16
|
+
} from "../chunk-45GNHDKA.mjs";
|
|
10
17
|
import "../chunk-SJGQU3OG.mjs";
|
|
11
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
19
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
20
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
21
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
12
22
|
import {
|
|
13
23
|
isIn,
|
|
14
24
|
isString
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-PIRWVOO2.mjs";
|
|
25
|
+
} from "../chunk-DEJ7A5PY.mjs";
|
|
17
26
|
import "../chunk-4N72FQFX.mjs";
|
|
18
27
|
|
|
19
28
|
// src/process/UseCase.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/process/UseCase.ts"],"sourcesContent":["import { Enum
|
|
1
|
+
{"version":3,"sources":["../../src/process/UseCase.ts"],"sourcesContent":["import { Scope } from './Scope';\nimport { App } from './App';\nimport { Enum } from '../types/Enum';\nimport { text } from '../types/Template';\nimport { kebab, Text } from '../types/Text';\nimport { List, toList } from '../types/List';\nimport { IdName } from '../types/Identity';\nimport { isIn, isString } from '../types/Is';\n\nexport class UseCase extends Enum {\n constructor(\n readonly app: App,\n name: string,\n id: Text = text(name).kebab,\n readonly scopes: List<Scope> = toList<Scope>()\n ) {\n super(name, id.toString());\n }\n\n with(...s: Scope[]): this {\n this.scopes.add(\n ...toList(s)\n .flatMap(s => s.expand())\n .distinct()\n );\n return this;\n }\n\n for(item: string | IdName): UseCase {\n return new UseCase(this.app, `${this.name} ${isString(item) ? item : item?.name}`, kebab(`${this.id} ${isString(item) ? item : item.id}`)).with(\n ...this.scopes.map(s => s?.for(item))\n );\n }\n\n static byScopes<U extends UseCase>(...s: Scope[]): List<U> {\n return this.filter(u => u.scopes.some(us => isIn(us, s)));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AASO,IAAM,UAAN,MAAM,iBAAgB,KAAK;AAAA,EAChC,YACW,KACT,MACA,KAAW,KAAK,IAAI,EAAE,OACb,SAAsB,OAAc,GAC7C;AACA,UAAM,MAAM,GAAG,SAAS,CAAC;AALhB;AAGA;AAAA,EAGX;AAAA,EAEA,QAAQ,GAAkB;AACxB,SAAK,OAAO;AAAA,MACV,GAAG,OAAO,CAAC,EACR,QAAQ,CAAAA,OAAKA,GAAE,OAAO,CAAC,EACvB,SAAS;AAAA,IACd;AACA,WAAO;AAAA,EACT;AAAA,EAEA,IAAI,MAAgC;AAClC,WAAO,IAAI,SAAQ,KAAK,KAAK,GAAG,KAAK,IAAI,IAAI,SAAS,IAAI,IAAI,OAAO,MAAM,IAAI,IAAI,MAAM,GAAG,KAAK,EAAE,IAAI,SAAS,IAAI,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC,EAAE;AAAA,MACzI,GAAG,KAAK,OAAO,IAAI,OAAK,GAAG,IAAI,IAAI,CAAC;AAAA,IACtC;AAAA,EACF;AAAA,EAEA,OAAO,YAA+B,GAAqB;AACzD,WAAO,KAAK,OAAO,OAAK,EAAE,OAAO,KAAK,QAAM,KAAK,IAAI,CAAC,CAAC,CAAC;AAAA,EAC1D;AACF;","names":["s"]}
|
package/dist/resources/Req.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageOptions } from '../types/PageList';
|
|
2
|
+
import { Optional } from '../types/Types';
|
|
3
|
+
import { Json, JsonValue } from '../types/Json';
|
|
4
|
+
import { OneOrMore } from '../types/Array';
|
|
5
|
+
import { Id } from '../types/Id';
|
|
6
|
+
import type { Text } from '../types/Text';
|
|
2
7
|
export declare class Req<T = unknown> implements Omit<PageOptions, 'sort'> {
|
|
3
8
|
readonly path: Json;
|
|
4
9
|
readonly query: Json;
|
package/dist/resources/Req.mjs
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asNumber
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JBJ2YERG.mjs";
|
|
4
|
+
import "../chunk-ARZEQQW5.mjs";
|
|
5
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
6
|
+
import "../chunk-CAHTK3AT.mjs";
|
|
7
|
+
import "../chunk-4G6AW6D6.mjs";
|
|
8
|
+
import "../chunk-J6KN572O.mjs";
|
|
9
|
+
import "../chunk-USGZFNWP.mjs";
|
|
10
|
+
import "../chunk-LYAPQ4QZ.mjs";
|
|
11
|
+
import "../chunk-6YVMQB26.mjs";
|
|
12
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
13
|
+
import "../chunk-UNHWYQ54.mjs";
|
|
14
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
15
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
16
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
6
17
|
import {
|
|
7
18
|
ifDefined
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-JSON7A4X.mjs";
|
|
20
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
21
|
+
import "../chunk-45GNHDKA.mjs";
|
|
10
22
|
import "../chunk-SJGQU3OG.mjs";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
24
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
25
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
13
26
|
import "../chunk-PIRWVOO2.mjs";
|
|
27
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
14
28
|
import "../chunk-4N72FQFX.mjs";
|
|
15
29
|
|
|
16
30
|
// src/resources/Req.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/resources/Req.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/resources/Req.ts"],"sourcesContent":["import { PageOptions } from '../types/PageList';\nimport { Optional } from '../types/Types';\nimport { Json, JsonValue } from '../types/Json';\nimport { OneOrMore } from '../types/Array';\nimport { ifDefined } from '../utils/If';\nimport { asNumber } from '../types/Number';\nimport { Id } from '../types/Id';\nimport type { Text } from '../types/Text';\n\nexport class Req<T = unknown> implements Omit<PageOptions, 'sort'> {\n readonly skip: Optional<number>;\n readonly take: Optional<number>;\n constructor(\n readonly path: Json = {},\n readonly query: Json = {},\n readonly body: T,\n readonly headers: Record<string, OneOrMore<string>>\n ) {\n this.skip = ifDefined(query.skip, s => asNumber(s));\n this.take = ifDefined(query.take, t => asNumber(t));\n }\n\n get id(): Id {\n return this.get('id');\n }\n\n get q(): JsonValue {\n return this.get('q');\n }\n\n get = (key: Text): any => this.path[key.toString()] ?? this.query[key.toString()];\n}\n\nexport function toReq<T = unknown>(req: { params?: { id?: unknown }; query?: { q?: unknown }; body?: T; headers?: unknown }): Req {\n return new Req(req.params as Json, req.query as Json, req.body as Json, req.headers as Record<string, OneOrMore<string>>);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASO,IAAM,MAAN,MAA4D;AAAA,EAGjE,YACW,OAAa,CAAC,GACd,QAAc,CAAC,GACf,MACA,SACT;AAJS;AACA;AACA;AACA;AAET,SAAK,OAAO,UAAU,MAAM,MAAM,OAAK,SAAS,CAAC,CAAC;AAClD,SAAK,OAAO,UAAU,MAAM,MAAM,OAAK,SAAS,CAAC,CAAC;AAAA,EACpD;AAAA,EAVS;AAAA,EACA;AAAA,EAWT,IAAI,KAAS;AACX,WAAO,KAAK,IAAI,IAAI;AAAA,EACtB;AAAA,EAEA,IAAI,IAAe;AACjB,WAAO,KAAK,IAAI,GAAG;AAAA,EACrB;AAAA,EAEA,MAAM,CAAC,QAAmB,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,KAAK,MAAM,IAAI,SAAS,CAAC;AAClF;AAEO,SAAS,MAAmB,KAA+F;AAChI,SAAO,IAAI,IAAI,IAAI,QAAgB,IAAI,OAAe,IAAI,MAAc,IAAI,OAA4C;AAC1H;","names":[]}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-PPWHEIZW.mjs";
|
|
4
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
5
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
6
|
+
import "../chunk-JSON7A4X.mjs";
|
|
7
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
8
|
+
import "../chunk-45GNHDKA.mjs";
|
|
7
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
11
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
12
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
10
13
|
import "../chunk-PIRWVOO2.mjs";
|
|
14
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
11
15
|
import "../chunk-4N72FQFX.mjs";
|
|
12
16
|
|
|
13
17
|
// src/resources/Requires.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/resources/Requires.ts"],"sourcesContent":["import { meta } from '../types';\nimport { Scope
|
|
1
|
+
{"version":3,"sources":["../../src/resources/Requires.ts"],"sourcesContent":["import { meta } from '../types/Meta';\nimport { Scope } from '../process/Scope';\nimport { UseCase } from '../process/UseCase';\n\nexport class Requires {\n readonly labCoat =\n (): PropertyDecorator =>\n (subject: unknown, property: string | symbol): void => {\n meta(subject).property(property).set('labCoat', true);\n };\n\n readonly token =\n (): PropertyDecorator =>\n (subject: unknown, property: string | symbol): void => {\n meta(subject).property(property).set('token', true);\n };\n\n readonly scope =\n (scope: Scope): PropertyDecorator =>\n (subject: unknown, property: string | symbol): void => {\n meta(subject).property(property).set('token', true);\n meta(subject).property(property).set('scope', scope);\n };\n\n readonly useCase =\n (uc: UseCase): PropertyDecorator =>\n (subject: unknown, property: string | symbol): void => {\n meta(subject).property(property).set('token', true);\n meta(subject).property(property).set('uc', uc);\n };\n}\n\nexport const requires = new Requires();\n"],"mappings":";;;;;;;;;;;;;;;;;AAIO,IAAM,WAAN,MAAe;AAAA,EACX,UACP,MACA,CAAC,SAAkB,aAAoC;AACrD,SAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,WAAW,IAAI;AAAA,EACtD;AAAA,EAEO,QACP,MACA,CAAC,SAAkB,aAAoC;AACrD,SAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,SAAS,IAAI;AAAA,EACpD;AAAA,EAEO,QACP,CAAC,UACD,CAAC,SAAkB,aAAoC;AACrD,SAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,SAAS,IAAI;AAClD,SAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,SAAS,KAAK;AAAA,EACrD;AAAA,EAEO,UACP,CAAC,OACD,CAAC,SAAkB,aAAoC;AACrD,SAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,SAAS,IAAI;AAClD,SAAK,OAAO,EAAE,SAAS,QAAQ,EAAE,IAAI,MAAM,EAAE;AAAA,EAC/C;AACJ;AAEO,IAAM,WAAW,IAAI,SAAS;","names":[]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { List, Uri } from '../types';
|
|
2
|
-
import { Verb } from '../http';
|
|
3
1
|
import { Req } from './Req';
|
|
4
2
|
import { Resource } from './Resource';
|
|
5
|
-
import { Scope, UseCase } from '../process';
|
|
6
3
|
import { RequestHandler } from 'express';
|
|
4
|
+
import { Uri } from '../types/Uri';
|
|
5
|
+
import { List } from '../types/List';
|
|
6
|
+
import { Scope } from '../process/Scope';
|
|
7
|
+
import { UseCase } from '../process/UseCase';
|
|
8
|
+
import { Verb } from '../http/Verb';
|
|
7
9
|
export declare const route: (uri: Uri) => ClassDecorator;
|
|
8
10
|
export type Endpoint<T = unknown> = (re: Req) => Promise<T | List<T>>;
|
|
9
11
|
export type RouteRequires = {
|
package/dist/resources/Route.mjs
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
route,
|
|
3
3
|
routes
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-EIJ3GSGG.mjs";
|
|
5
|
+
import "../chunk-ARZEQQW5.mjs";
|
|
6
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
7
|
+
import "../chunk-CAHTK3AT.mjs";
|
|
8
|
+
import "../chunk-4G6AW6D6.mjs";
|
|
9
|
+
import "../chunk-J6KN572O.mjs";
|
|
10
|
+
import "../chunk-USGZFNWP.mjs";
|
|
11
|
+
import "../chunk-LYAPQ4QZ.mjs";
|
|
12
|
+
import "../chunk-6YVMQB26.mjs";
|
|
13
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
14
|
+
import "../chunk-UNHWYQ54.mjs";
|
|
15
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
16
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
17
|
+
import "../chunk-J7XKOXMW.mjs";
|
|
18
|
+
import "../chunk-JSON7A4X.mjs";
|
|
19
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
20
|
+
import "../chunk-45GNHDKA.mjs";
|
|
9
21
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
23
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
24
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
12
25
|
import "../chunk-PIRWVOO2.mjs";
|
|
26
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
13
27
|
import "../chunk-4N72FQFX.mjs";
|
|
14
28
|
export {
|
|
15
29
|
route,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AppProvider, Handler } from './AppProvider';
|
|
2
|
-
import { Constructor, Enum, List } from '../types';
|
|
3
2
|
import { Resource } from './Resource';
|
|
3
|
+
import { Enum } from '../types/Enum';
|
|
4
|
+
import { List } from '../types/List';
|
|
5
|
+
import { Constructor } from '../types/Constructor';
|
|
4
6
|
export declare class Service extends Enum {
|
|
5
7
|
readonly name: string;
|
|
6
8
|
protected app: AppProvider;
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Enum,
|
|
3
|
-
toList,
|
|
4
2
|
tryTo
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ARZEQQW5.mjs";
|
|
4
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
5
|
+
import "../chunk-CAHTK3AT.mjs";
|
|
6
|
+
import "../chunk-4G6AW6D6.mjs";
|
|
7
|
+
import "../chunk-J6KN572O.mjs";
|
|
8
|
+
import "../chunk-USGZFNWP.mjs";
|
|
9
|
+
import "../chunk-LYAPQ4QZ.mjs";
|
|
10
|
+
import "../chunk-6YVMQB26.mjs";
|
|
11
|
+
import "../chunk-FHW5K2RR.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Enum
|
|
14
|
+
} from "../chunk-UNHWYQ54.mjs";
|
|
15
|
+
import "../chunk-PPWHEIZW.mjs";
|
|
16
|
+
import "../chunk-JTGB3TSZ.mjs";
|
|
17
|
+
import {
|
|
18
|
+
toList
|
|
19
|
+
} from "../chunk-J7XKOXMW.mjs";
|
|
20
|
+
import "../chunk-JSON7A4X.mjs";
|
|
21
|
+
import "../chunk-X7FZPY3P.mjs";
|
|
22
|
+
import "../chunk-45GNHDKA.mjs";
|
|
9
23
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
25
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
26
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
12
27
|
import "../chunk-PIRWVOO2.mjs";
|
|
28
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
13
29
|
import "../chunk-4N72FQFX.mjs";
|
|
14
30
|
|
|
15
31
|
// src/resources/Service.ts
|