@thisisagile/easy 15.26.1 → 15.27.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-35PSIDGU.mjs +17 -0
- package/dist/chunk-35PSIDGU.mjs.map +1 -0
- package/dist/chunk-3HTSHJPL.mjs +26 -0
- package/dist/chunk-3HTSHJPL.mjs.map +1 -0
- package/dist/chunk-3WOYFN2Q.mjs +18 -0
- package/dist/chunk-3WOYFN2Q.mjs.map +1 -0
- package/dist/chunk-4AP5H3OQ.mjs +46 -0
- package/dist/chunk-4AP5H3OQ.mjs.map +1 -0
- package/dist/chunk-4EVQZKMK.mjs +15 -0
- package/dist/chunk-4EVQZKMK.mjs.map +1 -0
- package/dist/chunk-4QX4EMLL.mjs +13 -0
- package/dist/chunk-4QX4EMLL.mjs.map +1 -0
- package/dist/chunk-5AF55QCJ.mjs +51 -0
- package/dist/chunk-5AF55QCJ.mjs.map +1 -0
- package/dist/chunk-6NOTDYUE.mjs +272 -0
- package/dist/chunk-6NOTDYUE.mjs.map +1 -0
- package/dist/chunk-6OW7KEN5.mjs +94 -0
- package/dist/chunk-6OW7KEN5.mjs.map +1 -0
- package/dist/chunk-74AOBBOZ.mjs +113 -0
- package/dist/chunk-74AOBBOZ.mjs.map +1 -0
- package/dist/chunk-7EP6VCI3.mjs +60 -0
- package/dist/chunk-7EP6VCI3.mjs.map +1 -0
- package/dist/{types/PageList.js → chunk-7NYZAGM3.mjs} +31 -48
- package/dist/chunk-7NYZAGM3.mjs.map +1 -0
- package/dist/chunk-7RIXMU5L.mjs +50 -0
- package/dist/chunk-7RIXMU5L.mjs.map +1 -0
- package/dist/chunk-A7OYYR2S.mjs +48 -0
- package/dist/chunk-A7OYYR2S.mjs.map +1 -0
- package/dist/chunk-ADJAEGCT.mjs +21 -0
- package/dist/chunk-ADJAEGCT.mjs.map +1 -0
- package/dist/chunk-AKYA7FHU.mjs +15 -0
- package/dist/chunk-AKYA7FHU.mjs.map +1 -0
- package/dist/chunk-CLKUH5JA.mjs +42 -0
- package/dist/chunk-CLKUH5JA.mjs.map +1 -0
- package/dist/chunk-CMRS457E.mjs +11 -0
- package/dist/chunk-CMRS457E.mjs.map +1 -0
- package/dist/chunk-D54TPU6G.mjs +43 -0
- package/dist/chunk-D54TPU6G.mjs.map +1 -0
- package/dist/chunk-DICMUQFL.mjs +11 -0
- package/dist/chunk-DICMUQFL.mjs.map +1 -0
- package/dist/chunk-EZC3HAYN.mjs +70 -0
- package/dist/chunk-EZC3HAYN.mjs.map +1 -0
- package/dist/chunk-FAAERRP2.mjs +37 -0
- package/dist/chunk-FAAERRP2.mjs.map +1 -0
- package/dist/chunk-FSK4W6I2.mjs +33 -0
- package/dist/chunk-FSK4W6I2.mjs.map +1 -0
- package/dist/chunk-G7QSW2EB.mjs +23 -0
- package/dist/chunk-G7QSW2EB.mjs.map +1 -0
- package/dist/chunk-GDD652NR.mjs +94 -0
- package/dist/chunk-GDD652NR.mjs.map +1 -0
- package/dist/chunk-GGC4TWMF.mjs +40 -0
- package/dist/chunk-GGC4TWMF.mjs.map +1 -0
- package/dist/chunk-GI5TZOAG.mjs +30 -0
- package/dist/chunk-GI5TZOAG.mjs.map +1 -0
- package/dist/chunk-GVX6S54O.mjs +54 -0
- package/dist/chunk-GVX6S54O.mjs.map +1 -0
- package/dist/chunk-H22IHXDC.mjs +23 -0
- package/dist/chunk-H22IHXDC.mjs.map +1 -0
- package/dist/chunk-H6GKGVYF.mjs +18 -0
- package/dist/chunk-H6GKGVYF.mjs.map +1 -0
- package/dist/chunk-HNB4RM5S.mjs +89 -0
- package/dist/chunk-HNB4RM5S.mjs.map +1 -0
- package/dist/chunk-I3VZW3XF.mjs +46 -0
- package/dist/chunk-I3VZW3XF.mjs.map +1 -0
- package/dist/chunk-IJFQ7PRU.mjs +19 -0
- package/dist/chunk-IJFQ7PRU.mjs.map +1 -0
- package/dist/chunk-JER7KLEK.mjs +82 -0
- package/dist/chunk-JER7KLEK.mjs.map +1 -0
- package/dist/chunk-JXJ5LRH3.mjs +30 -0
- package/dist/chunk-JXJ5LRH3.mjs.map +1 -0
- package/dist/chunk-L2BMMXCX.mjs +79 -0
- package/dist/chunk-L2BMMXCX.mjs.map +1 -0
- package/dist/chunk-LB7OMB5S.mjs +57 -0
- package/dist/chunk-LB7OMB5S.mjs.map +1 -0
- package/dist/chunk-LCDQWW2Y.mjs +18 -0
- package/dist/chunk-LCDQWW2Y.mjs.map +1 -0
- package/dist/chunk-LD64IICE.mjs +28 -0
- package/dist/chunk-LD64IICE.mjs.map +1 -0
- package/dist/chunk-LV7HNQ3N.mjs +183 -0
- package/dist/chunk-LV7HNQ3N.mjs.map +1 -0
- package/dist/chunk-M4UUIOW6.mjs +86 -0
- package/dist/chunk-M4UUIOW6.mjs.map +1 -0
- package/dist/chunk-MDLVDMKY.mjs +11 -0
- package/dist/chunk-MDLVDMKY.mjs.map +1 -0
- package/dist/chunk-NF7FTEE7.mjs +26 -0
- package/dist/chunk-NF7FTEE7.mjs.map +1 -0
- package/dist/chunk-NYTGMBLK.mjs +49 -0
- package/dist/chunk-NYTGMBLK.mjs.map +1 -0
- package/dist/chunk-O62PGEQ7.mjs +20 -0
- package/dist/chunk-O62PGEQ7.mjs.map +1 -0
- package/dist/chunk-OQNZEKWO.mjs +24 -0
- package/dist/chunk-OQNZEKWO.mjs.map +1 -0
- package/dist/chunk-OXBQSJDF.mjs +45 -0
- package/dist/chunk-OXBQSJDF.mjs.map +1 -0
- package/dist/chunk-PIRWVOO2.mjs +7 -0
- package/dist/chunk-PIRWVOO2.mjs.map +1 -0
- package/dist/chunk-PLIJ2CRV.mjs +25 -0
- package/dist/chunk-PLIJ2CRV.mjs.map +1 -0
- package/dist/chunk-PSIJUWZT.mjs +13 -0
- package/dist/chunk-PSIJUWZT.mjs.map +1 -0
- package/dist/chunk-QOGUHAMC.mjs +40 -0
- package/dist/chunk-QOGUHAMC.mjs.map +1 -0
- package/dist/chunk-SGSU4KYT.mjs +49 -0
- package/dist/chunk-SGSU4KYT.mjs.map +1 -0
- package/dist/chunk-SJGDB24D.mjs +41 -0
- package/dist/chunk-SJGDB24D.mjs.map +1 -0
- package/dist/chunk-SJGQU3OG.mjs +15 -0
- package/dist/chunk-SJGQU3OG.mjs.map +1 -0
- package/dist/chunk-SP4KAT3N.mjs +25 -0
- package/dist/chunk-SP4KAT3N.mjs.map +1 -0
- package/dist/chunk-SS3C77DP.mjs +134 -0
- package/dist/chunk-SS3C77DP.mjs.map +1 -0
- package/dist/chunk-SW2OCUH3.mjs +10 -0
- package/dist/chunk-SW2OCUH3.mjs.map +1 -0
- package/dist/chunk-UDLMLGTS.mjs +43 -0
- package/dist/chunk-UDLMLGTS.mjs.map +1 -0
- package/dist/chunk-V62IOKST.mjs +21 -0
- package/dist/chunk-V62IOKST.mjs.map +1 -0
- package/dist/chunk-WEXSGVXZ.mjs +53 -0
- package/dist/chunk-WEXSGVXZ.mjs.map +1 -0
- package/dist/chunk-WUFQM7VZ.mjs +20 -0
- package/dist/chunk-WUFQM7VZ.mjs.map +1 -0
- package/dist/chunk-YTWFWQNB.mjs +866 -0
- package/dist/chunk-YTWFWQNB.mjs.map +1 -0
- package/dist/chunk-ZHAJLP7P.mjs +49 -0
- package/dist/chunk-ZHAJLP7P.mjs.map +1 -0
- package/dist/chunk-ZNWOAXMK.mjs +46 -0
- package/dist/chunk-ZNWOAXMK.mjs.map +1 -0
- package/dist/data/Condition.mjs +19 -35
- package/dist/data/Condition.mjs.map +1 -1
- package/dist/data/Database.mjs +15 -12
- package/dist/data/Database.mjs.map +1 -1
- package/dist/data/Field.mjs +28 -6
- package/dist/data/Field.mjs.map +1 -1
- package/dist/data/InMemoryGateway.mjs +26 -4
- package/dist/data/InMemoryGateway.mjs.map +1 -1
- package/dist/domain/Audit.mjs +18 -24
- package/dist/domain/Audit.mjs.map +1 -1
- package/dist/domain/Child.mjs +28 -5
- package/dist/domain/Child.mjs.map +1 -1
- package/dist/domain/Entity.mjs +32 -6
- package/dist/domain/Entity.mjs.map +1 -1
- package/dist/domain/Repo.mjs +28 -5
- package/dist/domain/Repo.mjs.map +1 -1
- package/dist/domain/Struct.mjs +15 -25
- package/dist/domain/Struct.mjs.map +1 -1
- package/dist/domain/Typo.mjs +21 -4
- package/dist/domain/Typo.mjs.map +1 -1
- package/dist/domain/enums/Country.mjs +14 -262
- package/dist/domain/enums/Country.mjs.map +1 -1
- package/dist/domain/enums/Currency.mjs +17 -131
- package/dist/domain/enums/Currency.mjs.map +1 -1
- package/dist/domain/enums/Environment.mjs +21 -7
- package/dist/domain/enums/Environment.mjs.map +1 -1
- package/dist/domain/enums/Locale.mjs +581 -566
- package/dist/domain/enums/Locale.mjs.map +1 -1
- package/dist/domain/enums/UnitOfMeasurement.mjs +14 -12
- package/dist/domain/enums/UnitOfMeasurement.mjs.map +1 -1
- package/dist/domain/enums/UnitOfWeight.mjs +14 -10
- package/dist/domain/enums/UnitOfWeight.mjs.map +1 -1
- package/dist/domain/structs/Address.mjs +34 -8
- package/dist/domain/structs/Address.mjs.map +1 -1
- package/dist/domain/structs/Box.mjs +26 -5
- package/dist/domain/structs/Box.mjs.map +1 -1
- package/dist/domain/structs/Dimension.mjs +18 -26
- package/dist/domain/structs/Dimension.mjs.map +1 -1
- package/dist/domain/structs/Money.mjs +19 -32
- package/dist/domain/structs/Money.mjs.map +1 -1
- package/dist/domain/structs/Name.mjs +25 -6
- package/dist/domain/structs/Name.mjs.map +1 -1
- package/dist/domain/structs/Weight.mjs +26 -6
- package/dist/domain/structs/Weight.mjs.map +1 -1
- package/dist/domain/values/DateTime.mjs +17 -88
- package/dist/domain/values/DateTime.mjs.map +1 -1
- package/dist/domain/values/EAN.mjs +21 -4
- package/dist/domain/values/EAN.mjs.map +1 -1
- package/dist/domain/values/Email.mjs +23 -5
- package/dist/domain/values/Email.mjs.map +1 -1
- package/dist/domain/values/IBAN.mjs +21 -4
- package/dist/domain/values/IBAN.mjs.map +1 -1
- package/dist/domain/values/PostalCode.mjs +16 -13
- package/dist/domain/values/PostalCode.mjs.map +1 -1
- package/dist/domain/values/Slug.mjs +21 -4
- package/dist/domain/values/Slug.mjs.map +1 -1
- package/dist/domain/values/Url.mjs +22 -5
- package/dist/domain/values/Url.mjs.map +1 -1
- package/dist/health/HealthResource.mjs +32 -4
- package/dist/health/HealthResource.mjs.map +1 -1
- package/dist/health/HealthUri.mjs +15 -5
- package/dist/health/HealthUri.mjs.map +1 -1
- package/dist/http/CacheControl.mjs +16 -28
- package/dist/http/CacheControl.mjs.map +1 -1
- package/dist/http/ContentType.mjs +14 -15
- package/dist/http/ContentType.mjs.map +1 -1
- package/dist/http/HttpHeader.mjs +3 -4
- package/dist/http/HttpHeader.mjs.map +1 -1
- package/dist/http/HttpStatus.mjs +16 -80
- package/dist/http/HttpStatus.mjs.map +1 -1
- package/dist/http/HttpVerb.mjs +14 -11
- package/dist/http/HttpVerb.mjs.map +1 -1
- package/dist/http/LocalRequestStore.mjs +17 -3
- package/dist/http/LocalRequestStore.mjs.map +1 -1
- package/dist/http/OriginatedError.mjs +9 -5
- package/dist/http/OriginatedError.mjs.map +1 -1
- package/dist/http/RequestOptions.mjs +19 -59
- package/dist/http/RequestOptions.mjs.map +1 -1
- package/dist/http/Response.mjs +16 -9
- package/dist/http/Response.mjs.map +1 -1
- package/dist/http/RestResult.mjs +16 -26
- package/dist/http/RestResult.mjs.map +1 -1
- package/dist/http/Verb.mjs +27 -19
- package/dist/http/Verb.mjs.map +1 -1
- package/dist/index.js +4790 -27
- package/dist/index.js.map +1 -1
- package/dist/process/App.mjs +19 -4
- package/dist/process/App.mjs.map +1 -1
- package/dist/process/Manage.mjs +19 -3
- package/dist/process/Manage.mjs.map +1 -1
- package/dist/process/Scope.mjs +14 -18
- package/dist/process/Scope.mjs.map +1 -1
- package/dist/process/Search.mjs +15 -34
- package/dist/process/Search.mjs.map +1 -1
- package/dist/process/UseCase.mjs +24 -4
- package/dist/process/UseCase.mjs.map +1 -1
- package/dist/resources/Req.mjs +20 -4
- package/dist/resources/Req.mjs.map +1 -1
- package/dist/resources/Requires.mjs +18 -4
- package/dist/resources/Requires.mjs.map +1 -1
- package/dist/resources/Route.mjs +15 -32
- package/dist/resources/Route.mjs.map +1 -1
- package/dist/resources/Service.mjs +19 -3
- package/dist/resources/Service.mjs.map +1 -1
- package/dist/security/Jwt.mjs +21 -5
- package/dist/security/Jwt.mjs.map +1 -1
- package/dist/services/Api.mjs +25 -63
- package/dist/services/Api.mjs.map +1 -1
- package/dist/services/ApiGateway.mjs +27 -29
- package/dist/services/ApiGateway.mjs.map +1 -1
- package/dist/services/AxiosProvider.mjs +22 -23
- package/dist/services/AxiosProvider.mjs.map +1 -1
- package/dist/services/MappedRouteGateway.mjs +40 -5
- package/dist/services/MappedRouteGateway.mjs.map +1 -1
- package/dist/services/RouteGateway.mjs +28 -42
- package/dist/services/RouteGateway.mjs.map +1 -1
- package/dist/services/ViewRouteGateway.mjs +39 -5
- package/dist/services/ViewRouteGateway.mjs.map +1 -1
- package/dist/sql/Clause.mjs +19 -22
- package/dist/sql/Clause.mjs.map +1 -1
- package/dist/sql/Column.mjs +19 -64
- package/dist/sql/Column.mjs.map +1 -1
- package/dist/sql/Count.mjs +16 -7
- package/dist/sql/Count.mjs.map +1 -1
- package/dist/sql/Delete.mjs +15 -7
- package/dist/sql/Delete.mjs.map +1 -1
- package/dist/sql/Insert.mjs +17 -12
- package/dist/sql/Insert.mjs.map +1 -1
- package/dist/sql/Join.mjs +3 -18
- package/dist/sql/Join.mjs.map +1 -1
- package/dist/sql/Select.mjs +15 -40
- package/dist/sql/Select.mjs.map +1 -1
- package/dist/sql/SqlQuery.mjs +14 -11
- package/dist/sql/SqlQuery.mjs.map +1 -1
- package/dist/sql/Table.mjs +53 -12
- package/dist/sql/Table.mjs.map +1 -1
- package/dist/sql/TableGateway.mjs +27 -5
- package/dist/sql/TableGateway.mjs.map +1 -1
- package/dist/sql/Update.mjs +17 -13
- package/dist/sql/Update.mjs.map +1 -1
- package/dist/types/Array.mjs +9 -22
- package/dist/types/Array.mjs.map +1 -1
- package/dist/types/Builder.mjs +21 -7
- package/dist/types/Builder.mjs.map +1 -1
- package/dist/types/Cache.mjs +17 -3
- package/dist/types/Cache.mjs.map +1 -1
- package/dist/types/CacheAge.mjs +15 -36
- package/dist/types/CacheAge.mjs.map +1 -1
- package/dist/types/Case.mjs +13 -87
- package/dist/types/Case.mjs.map +1 -1
- package/dist/types/Constructor.mjs +11 -12
- package/dist/types/Constructor.mjs.map +1 -1
- package/dist/types/Context.mjs +17 -81
- package/dist/types/Context.mjs.map +1 -1
- package/dist/types/Enum.mjs +14 -46
- package/dist/types/Enum.mjs.map +1 -1
- package/dist/types/Exception.mjs +15 -22
- package/dist/types/Exception.mjs.map +1 -1
- package/dist/types/Falsy.mjs +4 -2
- package/dist/types/Falsy.mjs.map +1 -1
- package/dist/types/Func.mjs +3 -1
- package/dist/types/Func.mjs.map +1 -1
- package/dist/types/Gateway.mjs +14 -34
- package/dist/types/Gateway.mjs.map +1 -1
- package/dist/types/Get.mjs +6 -4
- package/dist/types/Get.mjs.map +1 -1
- package/dist/types/Id.mjs +5 -2
- package/dist/types/Id.mjs.map +1 -1
- package/dist/types/Is.mjs +21 -21
- package/dist/types/Is.mjs.map +1 -1
- package/dist/types/IsA.mjs +6 -3
- package/dist/types/IsA.mjs.map +1 -1
- package/dist/types/IsDate.mjs +6 -12
- package/dist/types/IsDate.mjs.map +1 -1
- package/dist/types/IsEqual.mjs +14 -11
- package/dist/types/IsEqual.mjs.map +1 -1
- package/dist/types/Json.mjs +14 -31
- package/dist/types/Json.mjs.map +1 -1
- package/dist/types/List.mjs +18 -170
- package/dist/types/List.mjs.map +1 -1
- package/dist/types/Message.mjs +6 -2
- package/dist/types/Message.mjs.map +1 -1
- package/dist/types/Meta.mjs +14 -41
- package/dist/types/Meta.mjs.map +1 -1
- package/dist/types/Nullish.mjs +3 -1
- package/dist/types/Nullish.mjs.map +1 -1
- package/dist/types/Number.mjs +14 -5
- package/dist/types/Number.mjs.map +1 -1
- package/dist/types/PageList.mjs +19 -118
- package/dist/types/PageList.mjs.map +1 -1
- package/dist/types/Parser.mjs +30 -7
- package/dist/types/Parser.mjs.map +1 -1
- package/dist/types/Primitive.mjs +4 -4
- package/dist/types/Primitive.mjs.map +1 -1
- package/dist/types/Repository.mjs +14 -40
- package/dist/types/Repository.mjs.map +1 -1
- package/dist/types/Result.mjs +14 -8
- package/dist/types/Result.mjs.map +1 -1
- package/dist/types/Results.mjs +15 -19
- package/dist/types/Results.mjs.map +1 -1
- package/dist/types/Sort.mjs +4 -2
- package/dist/types/Sort.mjs.map +1 -1
- package/dist/types/Tag.mjs +17 -3
- package/dist/types/Tag.mjs.map +1 -1
- package/dist/types/Template.mjs +14 -35
- package/dist/types/Template.mjs.map +1 -1
- package/dist/types/Text.mjs +19 -97
- package/dist/types/Text.mjs.map +1 -1
- package/dist/types/Try.mjs +14 -107
- package/dist/types/Try.mjs.map +1 -1
- package/dist/types/Uri.mjs +16 -74
- package/dist/types/Uri.mjs.map +1 -1
- package/dist/types/Uuid.mjs +5 -5
- package/dist/types/Uuid.mjs.map +1 -1
- package/dist/types/Validatable.mjs +6 -2
- package/dist/types/Validatable.mjs.map +1 -1
- package/dist/types/Value.mjs +14 -17
- package/dist/types/Value.mjs.map +1 -1
- package/dist/utils/Base64.mjs +3 -1
- package/dist/utils/Base64.mjs.map +1 -1
- package/dist/utils/Convert.mjs +15 -39
- package/dist/utils/Convert.mjs.map +1 -1
- package/dist/utils/If.mjs +10 -13
- package/dist/utils/If.mjs.map +1 -1
- package/dist/utils/Loading.mjs +6 -2
- package/dist/utils/Loading.mjs.map +1 -1
- package/dist/utils/Log.mjs +2 -0
- package/dist/utils/Log.mjs.map +1 -1
- package/dist/utils/Mapper.mjs +19 -101
- package/dist/utils/Mapper.mjs.map +1 -1
- package/dist/utils/Promise.mjs +19 -16
- package/dist/utils/Promise.mjs.map +1 -1
- package/dist/utils/Property.mjs +15 -14
- package/dist/utils/Property.mjs.map +1 -1
- package/dist/utils/Sentence.mjs +28 -14
- package/dist/utils/Sentence.mjs.map +1 -1
- package/dist/utils/State.mjs +7 -8
- package/dist/utils/State.mjs.map +1 -1
- package/dist/utils/Traverse.mjs +3 -5
- package/dist/utils/Traverse.mjs.map +1 -1
- package/dist/utils/View.mjs +21 -64
- package/dist/utils/View.mjs.map +1 -1
- package/dist/utils/Wait.mjs +5 -3
- package/dist/utils/Wait.mjs.map +1 -1
- package/dist/validation/Contraints.mjs +32 -29
- package/dist/validation/Contraints.mjs.map +1 -1
- package/dist/validation/Validate.mjs +16 -28
- package/dist/validation/Validate.mjs.map +1 -1
- package/dist/validation/When.mjs +14 -38
- package/dist/validation/When.mjs.map +1 -1
- package/package.json +4 -3
- package/dist/data/Condition.js +0 -71
- package/dist/data/Condition.js.map +0 -1
- package/dist/data/DataProvider.js +0 -17
- package/dist/data/DataProvider.js.map +0 -1
- package/dist/data/Database.js +0 -42
- package/dist/data/Database.js.map +0 -1
- package/dist/data/Field.js +0 -48
- package/dist/data/Field.js.map +0 -1
- package/dist/data/InMemoryGateway.js +0 -59
- package/dist/data/InMemoryGateway.js.map +0 -1
- package/dist/data/Query.js +0 -17
- package/dist/data/Query.js.map +0 -1
- package/dist/data/QueryProvider.js +0 -17
- package/dist/data/QueryProvider.js.map +0 -1
- package/dist/data/index.js +0 -35
- package/dist/data/index.js.map +0 -1
- package/dist/domain/Audit.js +0 -59
- package/dist/domain/Audit.js.map +0 -1
- package/dist/domain/Child.js +0 -49
- package/dist/domain/Child.js.map +0 -1
- package/dist/domain/Entity.js +0 -62
- package/dist/domain/Entity.js.map +0 -1
- package/dist/domain/Repo.js +0 -81
- package/dist/domain/Repo.js.map +0 -1
- package/dist/domain/Struct.js +0 -55
- package/dist/domain/Struct.js.map +0 -1
- package/dist/domain/Typo.js +0 -62
- package/dist/domain/Typo.js.map +0 -1
- package/dist/domain/enums/Country.js +0 -290
- package/dist/domain/enums/Country.js.map +0 -1
- package/dist/domain/enums/Currency.js +0 -159
- package/dist/domain/enums/Currency.js.map +0 -1
- package/dist/domain/enums/Environment.js +0 -35
- package/dist/domain/enums/Environment.js.map +0 -1
- package/dist/domain/enums/Locale.js +0 -605
- package/dist/domain/enums/Locale.js.map +0 -1
- package/dist/domain/enums/UnitOfMeasurement.js +0 -40
- package/dist/domain/enums/UnitOfMeasurement.js.map +0 -1
- package/dist/domain/enums/UnitOfWeight.js +0 -38
- package/dist/domain/enums/UnitOfWeight.js.map +0 -1
- package/dist/domain/enums/index.js +0 -33
- package/dist/domain/enums/index.js.map +0 -1
- package/dist/domain/index.js +0 -39
- package/dist/domain/index.js.map +0 -1
- package/dist/domain/structs/Address.js +0 -73
- package/dist/domain/structs/Address.js.map +0 -1
- package/dist/domain/structs/Box.js +0 -70
- package/dist/domain/structs/Box.js.map +0 -1
- package/dist/domain/structs/Dimension.js +0 -61
- package/dist/domain/structs/Dimension.js.map +0 -1
- package/dist/domain/structs/Money.js +0 -71
- package/dist/domain/structs/Money.js.map +0 -1
- package/dist/domain/structs/Name.js +0 -57
- package/dist/domain/structs/Name.js.map +0 -1
- package/dist/domain/structs/Weight.js +0 -71
- package/dist/domain/structs/Weight.js.map +0 -1
- package/dist/domain/structs/index.js +0 -33
- package/dist/domain/structs/index.js.map +0 -1
- package/dist/domain/values/DateTime.js +0 -120
- package/dist/domain/values/DateTime.js.map +0 -1
- package/dist/domain/values/EAN.js +0 -50
- package/dist/domain/values/EAN.js.map +0 -1
- package/dist/domain/values/Email.js +0 -57
- package/dist/domain/values/Email.js.map +0 -1
- package/dist/domain/values/IBAN.js +0 -50
- package/dist/domain/values/IBAN.js.map +0 -1
- package/dist/domain/values/PostalCode.js +0 -53
- package/dist/domain/values/PostalCode.js.map +0 -1
- package/dist/domain/values/Slug.js +0 -41
- package/dist/domain/values/Slug.js.map +0 -1
- package/dist/domain/values/Url.js +0 -57
- package/dist/domain/values/Url.js.map +0 -1
- package/dist/domain/values/index.js +0 -35
- package/dist/domain/values/index.js.map +0 -1
- package/dist/health/HealthResource.js +0 -49
- package/dist/health/HealthResource.js.map +0 -1
- package/dist/health/HealthUri.js +0 -33
- package/dist/health/HealthUri.js.map +0 -1
- package/dist/health/index.js +0 -25
- package/dist/health/index.js.map +0 -1
- package/dist/http/CacheControl.js +0 -56
- package/dist/http/CacheControl.js.map +0 -1
- package/dist/http/ContentType.js +0 -53
- package/dist/http/ContentType.js.map +0 -1
- package/dist/http/HttpHeader.js +0 -32
- package/dist/http/HttpHeader.js.map +0 -1
- package/dist/http/HttpStatus.js +0 -112
- package/dist/http/HttpStatus.js.map +0 -1
- package/dist/http/HttpVerb.js +0 -39
- package/dist/http/HttpVerb.js.map +0 -1
- package/dist/http/LocalRequestStore.js +0 -36
- package/dist/http/LocalRequestStore.js.map +0 -1
- package/dist/http/OriginatedError.js +0 -44
- package/dist/http/OriginatedError.js.map +0 -1
- package/dist/http/Request.js +0 -17
- package/dist/http/Request.js.map +0 -1
- package/dist/http/RequestOptions.js +0 -91
- package/dist/http/RequestOptions.js.map +0 -1
- package/dist/http/RequestProvider.js +0 -17
- package/dist/http/RequestProvider.js.map +0 -1
- package/dist/http/Response.js +0 -39
- package/dist/http/Response.js.map +0 -1
- package/dist/http/RestResult.js +0 -56
- package/dist/http/RestResult.js.map +0 -1
- package/dist/http/Verb.js +0 -61
- package/dist/http/Verb.js.map +0 -1
- package/dist/http/index.js +0 -45
- package/dist/http/index.js.map +0 -1
- package/dist/process/App.js +0 -35
- package/dist/process/App.js.map +0 -1
- package/dist/process/Manage.js +0 -43
- package/dist/process/Manage.js.map +0 -1
- package/dist/process/Scope.js +0 -46
- package/dist/process/Scope.js.map +0 -1
- package/dist/process/Search.js +0 -62
- package/dist/process/Search.js.map +0 -1
- package/dist/process/UseCase.js +0 -50
- package/dist/process/UseCase.js.map +0 -1
- package/dist/process/index.js +0 -31
- package/dist/process/index.js.map +0 -1
- package/dist/resources/AppProvider.js +0 -17
- package/dist/resources/AppProvider.js.map +0 -1
- package/dist/resources/Req.js +0 -54
- package/dist/resources/Req.js.map +0 -1
- package/dist/resources/Requires.js +0 -48
- package/dist/resources/Requires.js.map +0 -1
- package/dist/resources/Resource.js +0 -17
- package/dist/resources/Resource.js.map +0 -1
- package/dist/resources/Route.js +0 -62
- package/dist/resources/Route.js.map +0 -1
- package/dist/resources/Service.js +0 -49
- package/dist/resources/Service.js.map +0 -1
- package/dist/resources/index.js +0 -35
- package/dist/resources/index.js.map +0 -1
- package/dist/security/Jwt.js +0 -48
- package/dist/security/Jwt.js.map +0 -1
- package/dist/security/index.js +0 -23
- package/dist/security/index.js.map +0 -1
- package/dist/services/Api.js +0 -93
- package/dist/services/Api.js.map +0 -1
- package/dist/services/ApiGateway.js +0 -57
- package/dist/services/ApiGateway.js.map +0 -1
- package/dist/services/AxiosProvider.js +0 -61
- package/dist/services/AxiosProvider.js.map +0 -1
- package/dist/services/MappedRouteGateway.js +0 -52
- package/dist/services/MappedRouteGateway.js.map +0 -1
- package/dist/services/RouteGateway.js +0 -70
- package/dist/services/RouteGateway.js.map +0 -1
- package/dist/services/ViewRouteGateway.js +0 -55
- package/dist/services/ViewRouteGateway.js.map +0 -1
- package/dist/services/index.js +0 -33
- package/dist/services/index.js.map +0 -1
- package/dist/sql/Clause.js +0 -58
- package/dist/sql/Clause.js.map +0 -1
- package/dist/sql/Column.js +0 -96
- package/dist/sql/Column.js.map +0 -1
- package/dist/sql/Count.js +0 -35
- package/dist/sql/Count.js.map +0 -1
- package/dist/sql/Delete.js +0 -35
- package/dist/sql/Delete.js.map +0 -1
- package/dist/sql/Insert.js +0 -40
- package/dist/sql/Insert.js.map +0 -1
- package/dist/sql/Join.js +0 -46
- package/dist/sql/Join.js.map +0 -1
- package/dist/sql/Select.js +0 -68
- package/dist/sql/Select.js.map +0 -1
- package/dist/sql/SqlQuery.js +0 -39
- package/dist/sql/SqlQuery.js.map +0 -1
- package/dist/sql/Table.js +0 -63
- package/dist/sql/Table.js.map +0 -1
- package/dist/sql/TableGateway.js +0 -62
- package/dist/sql/TableGateway.js.map +0 -1
- package/dist/sql/Update.js +0 -41
- package/dist/sql/Update.js.map +0 -1
- package/dist/sql/index.js +0 -41
- package/dist/sql/index.js.map +0 -1
- package/dist/types/Array.js +0 -54
- package/dist/types/Array.js.map +0 -1
- package/dist/types/Builder.js +0 -43
- package/dist/types/Builder.js.map +0 -1
- package/dist/types/Cache.js +0 -38
- package/dist/types/Cache.js.map +0 -1
- package/dist/types/CacheAge.js +0 -64
- package/dist/types/CacheAge.js.map +0 -1
- package/dist/types/Case.js +0 -115
- package/dist/types/Case.js.map +0 -1
- package/dist/types/Constructor.js +0 -50
- package/dist/types/Constructor.js.map +0 -1
- package/dist/types/Context.js +0 -117
- package/dist/types/Context.js.map +0 -1
- package/dist/types/Enum.js +0 -76
- package/dist/types/Enum.js.map +0 -1
- package/dist/types/ErrorOrigin.js +0 -17
- package/dist/types/ErrorOrigin.js.map +0 -1
- package/dist/types/Exception.js +0 -54
- package/dist/types/Exception.js.map +0 -1
- package/dist/types/Falsy.js +0 -32
- package/dist/types/Falsy.js.map +0 -1
- package/dist/types/Func.js +0 -29
- package/dist/types/Func.js.map +0 -1
- package/dist/types/Gateway.js +0 -62
- package/dist/types/Gateway.js.map +0 -1
- package/dist/types/Get.js +0 -36
- package/dist/types/Get.js.map +0 -1
- package/dist/types/Id.js +0 -30
- package/dist/types/Id.js.map +0 -1
- package/dist/types/Identity.js +0 -17
- package/dist/types/Identity.js.map +0 -1
- package/dist/types/Is.js +0 -85
- package/dist/types/Is.js.map +0 -1
- package/dist/types/IsA.js +0 -33
- package/dist/types/IsA.js.map +0 -1
- package/dist/types/IsDate.js +0 -46
- package/dist/types/IsDate.js.map +0 -1
- package/dist/types/IsEqual.js +0 -39
- package/dist/types/IsEqual.js.map +0 -1
- package/dist/types/Json.js +0 -67
- package/dist/types/Json.js.map +0 -1
- package/dist/types/List.js +0 -208
- package/dist/types/List.js.map +0 -1
- package/dist/types/Message.js +0 -30
- package/dist/types/Message.js.map +0 -1
- package/dist/types/Meta.js +0 -71
- package/dist/types/Meta.js.map +0 -1
- package/dist/types/Nullish.js +0 -29
- package/dist/types/Nullish.js.map +0 -1
- package/dist/types/Number.js +0 -33
- package/dist/types/Number.js.map +0 -1
- package/dist/types/PageList.js.map +0 -1
- package/dist/types/Parser.js +0 -69
- package/dist/types/Parser.js.map +0 -1
- package/dist/types/Primitive.js +0 -32
- package/dist/types/Primitive.js.map +0 -1
- package/dist/types/Repository.js +0 -68
- package/dist/types/Repository.js.map +0 -1
- package/dist/types/Result.js +0 -38
- package/dist/types/Result.js.map +0 -1
- package/dist/types/Results.js +0 -51
- package/dist/types/Results.js.map +0 -1
- package/dist/types/Sort.js +0 -32
- package/dist/types/Sort.js.map +0 -1
- package/dist/types/Tag.js +0 -35
- package/dist/types/Tag.js.map +0 -1
- package/dist/types/Template.js +0 -65
- package/dist/types/Template.js.map +0 -1
- package/dist/types/Text.js +0 -137
- package/dist/types/Text.js.map +0 -1
- package/dist/types/Try.js +0 -137
- package/dist/types/Try.js.map +0 -1
- package/dist/types/TypeGuard.js +0 -17
- package/dist/types/TypeGuard.js.map +0 -1
- package/dist/types/Types.js +0 -17
- package/dist/types/Types.js.map +0 -1
- package/dist/types/Uri.js +0 -106
- package/dist/types/Uri.js.map +0 -1
- package/dist/types/Uuid.js +0 -35
- package/dist/types/Uuid.js.map +0 -1
- package/dist/types/Validatable.js +0 -30
- package/dist/types/Validatable.js.map +0 -1
- package/dist/types/Value.js +0 -47
- package/dist/types/Value.js.map +0 -1
- package/dist/types/index.js +0 -107
- package/dist/types/index.js.map +0 -1
- package/dist/utils/Base64.js +0 -33
- package/dist/utils/Base64.js.map +0 -1
- package/dist/utils/Convert.js +0 -69
- package/dist/utils/Convert.js.map +0 -1
- package/dist/utils/If.js +0 -47
- package/dist/utils/If.js.map +0 -1
- package/dist/utils/Loading.js +0 -30
- package/dist/utils/Loading.js.map +0 -1
- package/dist/utils/Log.js +0 -43
- package/dist/utils/Log.js.map +0 -1
- package/dist/utils/Mapper.js +0 -133
- package/dist/utils/Mapper.js.map +0 -1
- package/dist/utils/Promise.js +0 -56
- package/dist/utils/Promise.js.map +0 -1
- package/dist/utils/Property.js +0 -42
- package/dist/utils/Property.js.map +0 -1
- package/dist/utils/Sentence.js +0 -80
- package/dist/utils/Sentence.js.map +0 -1
- package/dist/utils/State.js +0 -36
- package/dist/utils/State.js.map +0 -1
- package/dist/utils/Traverse.js +0 -33
- package/dist/utils/Traverse.js.map +0 -1
- package/dist/utils/View.js +0 -86
- package/dist/utils/View.js.map +0 -1
- package/dist/utils/Wait.js +0 -39
- package/dist/utils/Wait.js.map +0 -1
- package/dist/utils/index.js +0 -47
- package/dist/utils/index.js.map +0 -1
- package/dist/validation/Contraints.js +0 -91
- package/dist/validation/Contraints.js.map +0 -1
- package/dist/validation/Validate.js +0 -46
- package/dist/validation/Validate.js.map +0 -1
- package/dist/validation/When.js +0 -68
- package/dist/validation/When.js.map +0 -1
- package/dist/validation/index.js +0 -27
- package/dist/validation/index.js.map +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Slug_exports = {};
|
|
20
|
-
__export(Slug_exports, {
|
|
21
|
-
Slug: () => Slug,
|
|
22
|
-
toSlug: () => toSlug
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(Slug_exports);
|
|
25
|
-
var import_types = require("../../types");
|
|
26
|
-
var import_validator = require("validator");
|
|
27
|
-
class Slug extends import_types.Value {
|
|
28
|
-
constructor(slug) {
|
|
29
|
-
super((0, import_types.text)(slug).slug.toString());
|
|
30
|
-
}
|
|
31
|
-
get isValid() {
|
|
32
|
-
return (0, import_types.isNotEmpty)(this.value) && (0, import_validator.isSlug)(this.value);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
const toSlug = (slug) => new Slug(slug);
|
|
36
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
-
0 && (module.exports = {
|
|
38
|
-
Slug,
|
|
39
|
-
toSlug
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=Slug.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/domain/values/Slug.ts"],"sourcesContent":["import { isNotEmpty, text, Value } from '../../types';\nimport { isSlug } from 'validator';\n\nexport class Slug extends Value {\n constructor(slug?: unknown) {\n super(text(slug).slug.toString());\n }\n\n get isValid(): boolean {\n return isNotEmpty(this.value) && isSlug(this.value);\n }\n}\n\nexport const toSlug = (slug?: unknown): Slug => new Slug(slug);"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAwC;AACxC,uBAAuB;AAEhB,MAAM,aAAa,mBAAM;AAAA,EAC9B,YAAY,MAAgB;AAC1B,cAAM,mBAAK,IAAI,EAAE,KAAK,SAAS,CAAC;AAAA,EAClC;AAAA,EAEA,IAAI,UAAmB;AACrB,eAAO,yBAAW,KAAK,KAAK,SAAK,yBAAO,KAAK,KAAK;AAAA,EACpD;AACF;AAEO,MAAM,SAAS,CAAC,SAAyB,IAAI,KAAK,IAAI;","names":[]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Url_exports = {};
|
|
30
|
-
__export(Url_exports, {
|
|
31
|
-
Url: () => Url,
|
|
32
|
-
isUrl: () => isUrl,
|
|
33
|
-
url: () => url
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(Url_exports);
|
|
36
|
-
var import_types = require("../../types");
|
|
37
|
-
var import_isURL = __toESM(require("validator/lib/isURL"));
|
|
38
|
-
class Url extends import_types.Value {
|
|
39
|
-
constructor(value, options) {
|
|
40
|
-
super((0, import_types.asString)(value));
|
|
41
|
-
this.options = options;
|
|
42
|
-
}
|
|
43
|
-
get isValid() {
|
|
44
|
-
return isUrl(this.value, this.options);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const url = (url2, options) => new Url(url2, options);
|
|
48
|
-
const isUrl = (url2, options) => {
|
|
49
|
-
return !(0, import_types.isEmpty)(url2) && (0, import_isURL.default)((0, import_types.asString)(url2), options);
|
|
50
|
-
};
|
|
51
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
-
0 && (module.exports = {
|
|
53
|
-
Url,
|
|
54
|
-
isUrl,
|
|
55
|
-
url
|
|
56
|
-
});
|
|
57
|
-
//# sourceMappingURL=Url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/domain/values/Url.ts"],"sourcesContent":["import { asString, isEmpty, Value } from '../../types';\nimport validateUrl from 'validator/lib/isURL';\n\nexport interface UrlOptions {\n /**\n * @default ['http','https','ftp']\n */\n protocols?: string[];\n /**\n * @default true\n */\n require_tld?: boolean;\n /**\n * @default false\n */\n require_protocol?: boolean;\n /**\n * @default true\n */\n require_host?: boolean;\n /**\n * if set as true isURL will check if port is present in the URL\n * @default false\n */\n require_port?: boolean;\n /**\n * @default true\n */\n require_valid_protocol?: boolean;\n /**\n * @default false\n */\n allow_underscores?: boolean;\n /**\n * @default false\n */\n host_whitelist?: Array<string | RegExp>;\n /**\n * @default false\n */\n host_blacklist?: Array<string | RegExp>;\n /**\n * @default false\n */\n allow_trailing_dot?: boolean;\n /**\n * @default false\n */\n allow_protocol_relative_urls?: boolean;\n /**\n * @default false\n */\n disallow_auth?: boolean;\n}\n\nexport class Url extends Value {\n constructor(value: unknown, readonly options?: UrlOptions) {\n super(asString(value));\n }\n\n get isValid(): boolean {\n return isUrl(this.value, this.options);\n }\n}\n\nexport const url = (url: unknown, options?: UrlOptions): Url => new Url(url, options);\n\nexport const isUrl = (url?: unknown, options?: UrlOptions): boolean => {\n return !isEmpty(url) && validateUrl(asString(url), options);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAyC;AACzC,mBAAwB;AAsDjB,MAAM,YAAY,mBAAM;AAAA,EAC7B,YAAY,OAAyB,SAAsB;AACzD,cAAM,uBAAS,KAAK,CAAC;AADc;AAAA,EAErC;AAAA,EAEA,IAAI,UAAmB;AACrB,WAAO,MAAM,KAAK,OAAO,KAAK,OAAO;AAAA,EACvC;AACF;AAEO,MAAM,MAAM,CAACA,MAAc,YAA8B,IAAI,IAAIA,MAAK,OAAO;AAE7E,MAAM,QAAQ,CAACA,MAAe,YAAkC;AACrE,SAAO,KAAC,sBAAQA,IAAG,SAAK,aAAAC,aAAY,uBAASD,IAAG,GAAG,OAAO;AAC5D;","names":["url","validateUrl"]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var values_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(values_exports);
|
|
18
|
-
__reExport(values_exports, require("./DateTime"), module.exports);
|
|
19
|
-
__reExport(values_exports, require("./EAN"), module.exports);
|
|
20
|
-
__reExport(values_exports, require("./Email"), module.exports);
|
|
21
|
-
__reExport(values_exports, require("./IBAN"), module.exports);
|
|
22
|
-
__reExport(values_exports, require("./PostalCode"), module.exports);
|
|
23
|
-
__reExport(values_exports, require("./Slug"), module.exports);
|
|
24
|
-
__reExport(values_exports, require("./Url"), module.exports);
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
...require("./DateTime"),
|
|
28
|
-
...require("./EAN"),
|
|
29
|
-
...require("./Email"),
|
|
30
|
-
...require("./IBAN"),
|
|
31
|
-
...require("./PostalCode"),
|
|
32
|
-
...require("./Slug"),
|
|
33
|
-
...require("./Url")
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/domain/values/index.ts"],"sourcesContent":["export * from './DateTime';\nexport * from './EAN';\nexport * from './Email';\nexport * from './IBAN';\nexport * from './PostalCode';\nexport * from './Slug';\nexport * from './Url';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,uBAAd;AACA,2BAAc,kBADd;AAEA,2BAAc,oBAFd;AAGA,2BAAc,mBAHd;AAIA,2BAAc,yBAJd;AAKA,2BAAc,mBALd;AAMA,2BAAc,kBANd;","names":[]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
-
if (decorator = decorators[i])
|
|
23
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
-
if (kind && result)
|
|
25
|
-
__defProp(target, key, result);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var HealthResource_exports = {};
|
|
29
|
-
__export(HealthResource_exports, {
|
|
30
|
-
HealthResource: () => HealthResource
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(HealthResource_exports);
|
|
33
|
-
var import_utils = require("../utils");
|
|
34
|
-
var import_HealthUri = require("./HealthUri");
|
|
35
|
-
var import_resources = require("../resources");
|
|
36
|
-
let HealthResource = class {
|
|
37
|
-
ok = () => (0, import_utils.resolve)({ state: "Service is healthy." });
|
|
38
|
-
};
|
|
39
|
-
__decorateClass([
|
|
40
|
-
(0, import_resources.get)()
|
|
41
|
-
], HealthResource.prototype, "ok", 2);
|
|
42
|
-
HealthResource = __decorateClass([
|
|
43
|
-
(0, import_resources.route)(import_HealthUri.HealthUri.Health)
|
|
44
|
-
], HealthResource);
|
|
45
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
-
0 && (module.exports = {
|
|
47
|
-
HealthResource
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=HealthResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/health/HealthResource.ts"],"sourcesContent":["import { resolve } from '../utils';\nimport { HealthUri } from './HealthUri';\nimport { Json } from '../types';\nimport { get, Resource, route } from '../resources';\n\n@route(HealthUri.Health)\nexport class HealthResource implements Resource {\n @get()\n ok = (): Promise<Json> => resolve({ state: 'Service is healthy.' });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAwB;AACxB,uBAA0B;AAE1B,uBAAqC;AAG9B,IAAM,iBAAN,MAAyC;AAAA,EAE9C,KAAK,UAAqB,sBAAQ,EAAE,OAAO,sBAAsB,CAAC;AACpE;AADE;AAAA,MADC,sBAAI;AAAA,GADM,eAEX;AAFW,iBAAN;AAAA,MADN,wBAAM,2BAAU,MAAM;AAAA,GACV;","names":[]}
|
package/dist/health/HealthUri.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var HealthUri_exports = {};
|
|
20
|
-
__export(HealthUri_exports, {
|
|
21
|
-
HealthUri: () => HealthUri
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(HealthUri_exports);
|
|
24
|
-
var import_types = require("../types");
|
|
25
|
-
class HealthUri extends import_types.EasyUri {
|
|
26
|
-
static health = import_types.uri.segment("health");
|
|
27
|
-
static Health = new HealthUri([HealthUri.health]);
|
|
28
|
-
}
|
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
-
0 && (module.exports = {
|
|
31
|
-
HealthUri
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=HealthUri.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/health/HealthUri.ts"],"sourcesContent":["import { EasyUri, uri } from '../types';\n\nexport class HealthUri extends EasyUri {\n static readonly health = uri.segment('health');\n static readonly Health = new HealthUri([HealthUri.health]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6B;AAEtB,MAAM,kBAAkB,qBAAQ;AAAA,EACrC,OAAgB,SAAS,iBAAI,QAAQ,QAAQ;AAAA,EAC7C,OAAgB,SAAS,IAAI,UAAU,CAAC,UAAU,MAAM,CAAC;AAC3D;","names":[]}
|
package/dist/health/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var health_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(health_exports);
|
|
18
|
-
__reExport(health_exports, require("./HealthResource"), module.exports);
|
|
19
|
-
__reExport(health_exports, require("./HealthUri"), module.exports);
|
|
20
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
-
0 && (module.exports = {
|
|
22
|
-
...require("./HealthResource"),
|
|
23
|
-
...require("./HealthUri")
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/dist/health/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/health/index.ts"],"sourcesContent":["export * from './HealthResource';\nexport * from './HealthUri';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,6BAAd;AACA,2BAAc,wBADd;","names":[]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var CacheControl_exports = {};
|
|
20
|
-
__export(CacheControl_exports, {
|
|
21
|
-
CacheControl: () => CacheControl
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(CacheControl_exports);
|
|
24
|
-
var import_types = require("../types");
|
|
25
|
-
var import_utils = require("../utils");
|
|
26
|
-
class CacheControl {
|
|
27
|
-
constructor(enabled = true, directives = {}) {
|
|
28
|
-
this.enabled = enabled;
|
|
29
|
-
this.directives = directives;
|
|
30
|
-
}
|
|
31
|
-
name = "Cache-Control";
|
|
32
|
-
static disabled = () => new CacheControl(false);
|
|
33
|
-
static OneSecond = () => new CacheControl().maxAge(1).staleWhileRevalidate(1);
|
|
34
|
-
static fiveSeconds = () => new CacheControl().maxAge(5).staleWhileRevalidate(5);
|
|
35
|
-
static tenSeconds = () => new CacheControl().maxAge(10).staleWhileRevalidate(10);
|
|
36
|
-
static thirtySeconds = () => new CacheControl().maxAge(30).staleWhileRevalidate(30);
|
|
37
|
-
static sixtySeconds = () => new CacheControl().maxAge(60).staleWhileRevalidate(60);
|
|
38
|
-
static custom = (maxAge, staleWhileRevalidate) => new CacheControl().maxAge(maxAge).staleWhileRevalidate(staleWhileRevalidate);
|
|
39
|
-
maxAge = (ca) => (0, import_types.on)(this, (t) => t.directives["max-age"] = ca);
|
|
40
|
-
sharedMaxAge = (ca) => (0, import_types.on)(this, (t) => t.directives["s-maxage"] = ca);
|
|
41
|
-
noCache = (a) => (0, import_types.on)(this, (t) => t.directives["no-cache"] = a);
|
|
42
|
-
mustRevalidate = (a) => (0, import_types.on)(this, (t) => t.directives["must-revalidate"] = a);
|
|
43
|
-
private = (a) => (0, import_types.on)(this, (t) => t.directives["private"] = a);
|
|
44
|
-
public = (a) => (0, import_types.on)(this, (t) => t.directives["public"] = a);
|
|
45
|
-
immutable = (a) => (0, import_types.on)(this, (t) => t.directives["immutable"] = a);
|
|
46
|
-
staleWhileRevalidate = (ca) => (0, import_types.on)(this, (t) => t.directives["stale-while-revalidate"] = ca);
|
|
47
|
-
value = () => this.toString();
|
|
48
|
-
toString() {
|
|
49
|
-
return (0, import_types.entries)(this.directives).mapDefined(([k, v]) => (0, import_utils.ifDefined)(v, (0, import_types.isNumber)(v) ? `${k}=${import_types.cacheAge.toSeconds(v)}` : k)).join(",");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
-
0 && (module.exports = {
|
|
54
|
-
CacheControl
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=CacheControl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/CacheControl.ts"],"sourcesContent":["import { cacheAge, CacheAge, entries, isNumber, on } from '../types';\nimport { ifDefined } from '../utils';\n\nexport class CacheControl {\n name = 'Cache-Control';\n\n protected constructor(readonly enabled = true, private directives: Record<string, boolean | CacheAge | undefined> = {}) {}\n\n static disabled = () => new CacheControl(false);\n\n static OneSecond = () => new CacheControl().maxAge(1).staleWhileRevalidate(1);\n\n static fiveSeconds = () => new CacheControl().maxAge(5).staleWhileRevalidate(5);\n\n static tenSeconds = () => new CacheControl().maxAge(10).staleWhileRevalidate(10);\n\n static thirtySeconds = () => new CacheControl().maxAge(30).staleWhileRevalidate(30);\n\n static sixtySeconds = () => new CacheControl().maxAge(60).staleWhileRevalidate(60);\n\n static custom = (maxAge?: CacheAge, staleWhileRevalidate?: CacheAge) => new CacheControl().maxAge(maxAge).staleWhileRevalidate(staleWhileRevalidate);\n\n readonly maxAge = (ca?: CacheAge): this => on(this, t => (t.directives['max-age'] = ca));\n\n readonly sharedMaxAge = (ca?: CacheAge): this => on(this, t => (t.directives['s-maxage'] = ca));\n\n readonly noCache = (a?: boolean): this => on(this, t => (t.directives['no-cache'] = a));\n\n readonly mustRevalidate = (a?: boolean): this => on(this, t => (t.directives['must-revalidate'] = a));\n\n readonly private = (a?: boolean): this => on(this, t => (t.directives['private'] = a));\n\n readonly public = (a?: boolean): this => on(this, t => (t.directives['public'] = a));\n\n readonly immutable = (a?: boolean): this => on(this, t => (t.directives['immutable'] = a));\n\n readonly staleWhileRevalidate = (ca?: CacheAge): this => on(this, t => (t.directives['stale-while-revalidate'] = ca));\n\n value = (): string => this.toString();\n\n toString(): string {\n return entries(this.directives)\n .mapDefined(([k, v]) => ifDefined(v, isNumber(v) ? `${k}=${cacheAge.toSeconds(v)}` : k))\n .join(',');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0D;AAC1D,mBAA0B;AAEnB,MAAM,aAAa;AAAA,EAGd,YAAqB,UAAU,MAAc,aAA6D,CAAC,GAAG;AAAzF;AAAwB;AAAA,EAAkE;AAAA,EAFzH,OAAO;AAAA,EAIP,OAAO,WAAW,MAAM,IAAI,aAAa,KAAK;AAAA,EAE9C,OAAO,YAAY,MAAM,IAAI,aAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC;AAAA,EAE5E,OAAO,cAAc,MAAM,IAAI,aAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC;AAAA,EAE9E,OAAO,aAAa,MAAM,IAAI,aAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAE/E,OAAO,gBAAgB,MAAM,IAAI,aAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAElF,OAAO,eAAe,MAAM,IAAI,aAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAEjF,OAAO,SAAS,CAAC,QAAmB,yBAAoC,IAAI,aAAa,EAAE,OAAO,MAAM,EAAE,qBAAqB,oBAAoB;AAAA,EAE1I,SAAS,CAAC,WAAwB,iBAAG,MAAM,OAAM,EAAE,WAAW,SAAS,IAAI,EAAG;AAAA,EAE9E,eAAe,CAAC,WAAwB,iBAAG,MAAM,OAAM,EAAE,WAAW,UAAU,IAAI,EAAG;AAAA,EAErF,UAAU,CAAC,UAAsB,iBAAG,MAAM,OAAM,EAAE,WAAW,UAAU,IAAI,CAAE;AAAA,EAE7E,iBAAiB,CAAC,UAAsB,iBAAG,MAAM,OAAM,EAAE,WAAW,iBAAiB,IAAI,CAAE;AAAA,EAE3F,UAAU,CAAC,UAAsB,iBAAG,MAAM,OAAM,EAAE,WAAW,SAAS,IAAI,CAAE;AAAA,EAE5E,SAAS,CAAC,UAAsB,iBAAG,MAAM,OAAM,EAAE,WAAW,QAAQ,IAAI,CAAE;AAAA,EAE1E,YAAY,CAAC,UAAsB,iBAAG,MAAM,OAAM,EAAE,WAAW,WAAW,IAAI,CAAE;AAAA,EAEhF,uBAAuB,CAAC,WAAwB,iBAAG,MAAM,OAAM,EAAE,WAAW,wBAAwB,IAAI,EAAG;AAAA,EAEpH,QAAQ,MAAc,KAAK,SAAS;AAAA,EAEpC,WAAmB;AACjB,eAAO,sBAAQ,KAAK,UAAU,EAC3B,WAAW,CAAC,CAAC,GAAG,CAAC,UAAM,wBAAU,OAAG,uBAAS,CAAC,IAAI,GAAG,CAAC,IAAI,sBAAS,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,EACtF,KAAK,GAAG;AAAA,EACb;AACF;","names":[]}
|
package/dist/http/ContentType.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var ContentType_exports = {};
|
|
30
|
-
__export(ContentType_exports, {
|
|
31
|
-
ContentType: () => ContentType
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(ContentType_exports);
|
|
34
|
-
var import_types = require("../types");
|
|
35
|
-
var import_form_urlencoded = __toESM(require("form-urlencoded"));
|
|
36
|
-
class ContentType extends import_types.Enum {
|
|
37
|
-
constructor(name, type, encoder = (b) => (0, import_types.asString)(b)) {
|
|
38
|
-
super(name, type);
|
|
39
|
-
this.type = type;
|
|
40
|
-
this.encoder = encoder;
|
|
41
|
-
}
|
|
42
|
-
static Form = new ContentType("form", "application/x-www-form-urlencoded", (b) => (0, import_form_urlencoded.default)(b));
|
|
43
|
-
static Json = new ContentType("json", "application/json", (b) => b);
|
|
44
|
-
static Stream = new ContentType("stream", "application/octet-stream");
|
|
45
|
-
static Text = new ContentType("text", "text/plain");
|
|
46
|
-
static Xml = new ContentType("xml", "application/xml");
|
|
47
|
-
encode = (body) => (0, import_types.ofGet)(this.encoder, body);
|
|
48
|
-
}
|
|
49
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
-
0 && (module.exports = {
|
|
51
|
-
ContentType
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=ContentType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/ContentType.ts"],"sourcesContent":["import { asString, Enum, Get, ofGet } from '../types';\nimport formUrlEncoded from 'form-urlencoded';\n\nexport class ContentType extends Enum {\n static Form = new ContentType('form', 'application/x-www-form-urlencoded', b => formUrlEncoded(b));\n static Json = new ContentType('json', 'application/json', b => b);\n static Stream = new ContentType('stream', 'application/octet-stream');\n static Text = new ContentType('text', 'text/plain');\n static Xml = new ContentType('xml', 'application/xml');\n\n private constructor(name: string, readonly type: string, protected readonly encoder: Get<string> = b => asString(b)) {\n super(name, type);\n }\n\n encode = (body?: unknown): string => ofGet(this.encoder, body);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C;AAC3C,6BAA2B;AAEpB,MAAM,oBAAoB,kBAAK;AAAA,EAO5B,YAAY,MAAuB,MAAiC,UAAuB,WAAK,uBAAS,CAAC,GAAG;AACnH,UAAM,MAAM,IAAI;AADyB;AAAiC;AAAA,EAE5E;AAAA,EARA,OAAO,OAAO,IAAI,YAAY,QAAQ,qCAAqC,WAAK,uBAAAA,SAAe,CAAC,CAAC;AAAA,EACjG,OAAO,OAAO,IAAI,YAAY,QAAQ,oBAAoB,OAAK,CAAC;AAAA,EAChE,OAAO,SAAS,IAAI,YAAY,UAAU,0BAA0B;AAAA,EACpE,OAAO,OAAO,IAAI,YAAY,QAAQ,YAAY;AAAA,EAClD,OAAO,MAAM,IAAI,YAAY,OAAO,iBAAiB;AAAA,EAMrD,SAAS,CAAC,aAA2B,oBAAM,KAAK,SAAS,IAAI;AAC/D;","names":["formUrlEncoded"]}
|
package/dist/http/HttpHeader.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var HttpHeader_exports = {};
|
|
20
|
-
__export(HttpHeader_exports, {
|
|
21
|
-
HttpHeader: () => HttpHeader
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(HttpHeader_exports);
|
|
24
|
-
const HttpHeader = {
|
|
25
|
-
ContentType: "Content-Type",
|
|
26
|
-
Correlation: "X-Correlation-Id"
|
|
27
|
-
};
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
HttpHeader
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=HttpHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/HttpHeader.ts"],"sourcesContent":["export const HttpHeader = {\n ContentType: 'Content-Type',\n Correlation: 'X-Correlation-Id',\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAa;AAAA,EACxB,aAAa;AAAA,EACb,aAAa;AACf;","names":[]}
|
package/dist/http/HttpStatus.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var HttpStatus_exports = {};
|
|
20
|
-
__export(HttpStatus_exports, {
|
|
21
|
-
HttpStatus: () => HttpStatus,
|
|
22
|
-
isHttpStatus: () => isHttpStatus,
|
|
23
|
-
toHttpStatus: () => toHttpStatus
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(HttpStatus_exports);
|
|
26
|
-
var import_types = require("../types");
|
|
27
|
-
class HttpStatus extends import_types.Enum {
|
|
28
|
-
static Continue = new HttpStatus("Continue", 100);
|
|
29
|
-
static SwitchingProtocols = new HttpStatus("Switching protocols", 101);
|
|
30
|
-
static Processing = new HttpStatus("Processing", 102);
|
|
31
|
-
static EarlyHints = new HttpStatus("Early hints", 103);
|
|
32
|
-
static Ok = new HttpStatus("Ok", 200);
|
|
33
|
-
static Created = new HttpStatus("Created", 201);
|
|
34
|
-
static Accepted = new HttpStatus("Accepted", 202);
|
|
35
|
-
static NonAuthoritativeInformation = new HttpStatus("Non-authoritative information", 203);
|
|
36
|
-
static NoContent = new HttpStatus("No content", 204);
|
|
37
|
-
static ResetContent = new HttpStatus("Reset content", 205);
|
|
38
|
-
static PartialContent = new HttpStatus("Partial content", 206);
|
|
39
|
-
static MultiStatus = new HttpStatus("Multi-status", 207);
|
|
40
|
-
static AlreadyReported = new HttpStatus("Already reported", 208);
|
|
41
|
-
static ImUsed = new HttpStatus("IM used", 226);
|
|
42
|
-
static MultipleChoices = new HttpStatus("Multiple Choices", 300);
|
|
43
|
-
static MovedPermanently = new HttpStatus("Moved Permanently", 301);
|
|
44
|
-
static Found = new HttpStatus("Found", 302);
|
|
45
|
-
static SeeOther = new HttpStatus("See other", 303);
|
|
46
|
-
static NotModified = new HttpStatus("Not modified", 304);
|
|
47
|
-
static UseProxy = new HttpStatus("Use proxy", 305);
|
|
48
|
-
static SwitchProxy = new HttpStatus("Switch proxy", 306);
|
|
49
|
-
static TemporaryRedirect = new HttpStatus("Temporary redirect", 307);
|
|
50
|
-
static PermanentRedirect = new HttpStatus("Permanent redirect", 308);
|
|
51
|
-
static BadRequest = new HttpStatus("Bad request", 400);
|
|
52
|
-
static NotAuthorized = new HttpStatus("Not authorized", 401);
|
|
53
|
-
static PaymentRequired = new HttpStatus("Payment required", 402);
|
|
54
|
-
static Forbidden = new HttpStatus("Forbidden", 403);
|
|
55
|
-
static NotFound = new HttpStatus("Not found", 404);
|
|
56
|
-
static MethodNotAllowed = new HttpStatus("Method not allowed", 405);
|
|
57
|
-
static NotAcceptable = new HttpStatus("Not acceptable", 406);
|
|
58
|
-
static ProxyAuthenticationRequired = new HttpStatus("Proxy authentication required", 407);
|
|
59
|
-
static RequestTimeout = new HttpStatus("Request timeout", 408);
|
|
60
|
-
static Conflict = new HttpStatus("Conflict", 409);
|
|
61
|
-
static Gone = new HttpStatus("Gone", 410);
|
|
62
|
-
static LengthRequired = new HttpStatus("Length required", 411);
|
|
63
|
-
static PreconditionFailed = new HttpStatus("Precondition failed", 412);
|
|
64
|
-
static PayloadTooLarge = new HttpStatus("Payload too large", 413);
|
|
65
|
-
static UriTooLong = new HttpStatus("URI too long", 414);
|
|
66
|
-
static UnsupportedMediaType = new HttpStatus("Unsupported media type", 415);
|
|
67
|
-
static RangeNotSatisfiable = new HttpStatus("Range not satisfiable", 416);
|
|
68
|
-
static ExpectationFailed = new HttpStatus("Expectation failed", 417);
|
|
69
|
-
static ImATeapot = new HttpStatus("I'm a teapot", 418);
|
|
70
|
-
static MisdirectedRequest = new HttpStatus("Misdirected request", 421);
|
|
71
|
-
static UnprocessableEntity = new HttpStatus("Unprocessable entity", 422);
|
|
72
|
-
static Locked = new HttpStatus("Locked", 423);
|
|
73
|
-
static FailedDependency = new HttpStatus("Failed dependency", 424);
|
|
74
|
-
static TooEarly = new HttpStatus("Too early", 425);
|
|
75
|
-
static UpgradeRequired = new HttpStatus("Upgrade required", 426);
|
|
76
|
-
static PreconditionRequired = new HttpStatus("Precondition required", 428);
|
|
77
|
-
static TooManyRequests = new HttpStatus("Too many requests", 429);
|
|
78
|
-
static RequestHeaderFieldsTooLarge = new HttpStatus("Request header fields too large", 431);
|
|
79
|
-
static UnavailableForLegalReasons = new HttpStatus("Unavailable for legal reasons", 451);
|
|
80
|
-
static InternalServerError = new HttpStatus("Internal server error", 500);
|
|
81
|
-
static NotImplemented = new HttpStatus("Not implemented", 501);
|
|
82
|
-
static BadGateway = new HttpStatus("Bad gateway", 502);
|
|
83
|
-
static ServiceUnavailable = new HttpStatus("Service unavailable", 503);
|
|
84
|
-
static GatewayTimeout = new HttpStatus("Gateway timeout", 504);
|
|
85
|
-
static HTTPVersionNotSupported = new HttpStatus("Http version not supported", 505);
|
|
86
|
-
static VariantAlsoNegotiates = new HttpStatus("Variant also negotiates", 506);
|
|
87
|
-
static InsufficientStorage = new HttpStatus("Insufficient storage", 507);
|
|
88
|
-
static LoopDetected = new HttpStatus("Loop detected", 508);
|
|
89
|
-
static NotExtended = new HttpStatus("Not extended", 510);
|
|
90
|
-
static NetworkAuthenticationRequired = new HttpStatus("Network authentication required", 511);
|
|
91
|
-
get isError() {
|
|
92
|
-
return this.isClientError || this.isServerError;
|
|
93
|
-
}
|
|
94
|
-
get isClientError() {
|
|
95
|
-
return this.id >= 400 && this.id < 500;
|
|
96
|
-
}
|
|
97
|
-
get isServerError() {
|
|
98
|
-
return this.id >= 500 && this.id < 600;
|
|
99
|
-
}
|
|
100
|
-
get status() {
|
|
101
|
-
return this.id;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const isHttpStatus = (s) => (0, import_types.isAn)(s, "id", "status");
|
|
105
|
-
const toHttpStatus = (s) => isHttpStatus(s) ? s : HttpStatus.byId(s);
|
|
106
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
107
|
-
0 && (module.exports = {
|
|
108
|
-
HttpStatus,
|
|
109
|
-
isHttpStatus,
|
|
110
|
-
toHttpStatus
|
|
111
|
-
});
|
|
112
|
-
//# sourceMappingURL=HttpStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/HttpStatus.ts"],"sourcesContent":["import { Code, Enum, isAn, TypeGuard } from '../types';\n\nexport class HttpStatus extends Enum {\n static Continue = new HttpStatus('Continue', 100);\n static SwitchingProtocols = new HttpStatus('Switching protocols', 101);\n static Processing = new HttpStatus('Processing', 102);\n static EarlyHints = new HttpStatus('Early hints', 103);\n static Ok = new HttpStatus('Ok', 200);\n static Created = new HttpStatus('Created', 201);\n static Accepted = new HttpStatus('Accepted', 202);\n static NonAuthoritativeInformation = new HttpStatus('Non-authoritative information', 203);\n static NoContent = new HttpStatus('No content', 204);\n static ResetContent = new HttpStatus('Reset content', 205);\n static PartialContent = new HttpStatus('Partial content', 206);\n static MultiStatus = new HttpStatus('Multi-status', 207);\n static AlreadyReported = new HttpStatus('Already reported', 208);\n static ImUsed = new HttpStatus('IM used', 226);\n static MultipleChoices = new HttpStatus('Multiple Choices', 300);\n static MovedPermanently = new HttpStatus('Moved Permanently', 301);\n static Found = new HttpStatus('Found', 302);\n static SeeOther = new HttpStatus('See other', 303);\n static NotModified = new HttpStatus('Not modified', 304);\n static UseProxy = new HttpStatus('Use proxy', 305);\n static SwitchProxy = new HttpStatus('Switch proxy', 306);\n static TemporaryRedirect = new HttpStatus('Temporary redirect', 307);\n static PermanentRedirect = new HttpStatus('Permanent redirect', 308);\n static BadRequest = new HttpStatus('Bad request', 400);\n static NotAuthorized = new HttpStatus('Not authorized', 401);\n static PaymentRequired = new HttpStatus('Payment required', 402);\n static Forbidden = new HttpStatus('Forbidden', 403);\n static NotFound = new HttpStatus('Not found', 404);\n static MethodNotAllowed = new HttpStatus('Method not allowed', 405);\n static NotAcceptable = new HttpStatus('Not acceptable', 406);\n static ProxyAuthenticationRequired = new HttpStatus('Proxy authentication required', 407);\n static RequestTimeout = new HttpStatus('Request timeout', 408);\n static Conflict = new HttpStatus('Conflict', 409);\n static Gone = new HttpStatus('Gone', 410);\n static LengthRequired = new HttpStatus('Length required', 411);\n static PreconditionFailed = new HttpStatus('Precondition failed', 412);\n static PayloadTooLarge = new HttpStatus('Payload too large', 413);\n static UriTooLong = new HttpStatus('URI too long', 414);\n static UnsupportedMediaType = new HttpStatus('Unsupported media type', 415);\n static RangeNotSatisfiable = new HttpStatus('Range not satisfiable', 416);\n static ExpectationFailed = new HttpStatus('Expectation failed', 417);\n static ImATeapot = new HttpStatus(\"I'm a teapot\", 418);\n static MisdirectedRequest = new HttpStatus('Misdirected request', 421);\n static UnprocessableEntity = new HttpStatus('Unprocessable entity', 422);\n static Locked = new HttpStatus('Locked', 423);\n static FailedDependency = new HttpStatus('Failed dependency', 424);\n static TooEarly = new HttpStatus('Too early', 425);\n static UpgradeRequired = new HttpStatus('Upgrade required', 426);\n static PreconditionRequired = new HttpStatus('Precondition required', 428);\n static TooManyRequests = new HttpStatus('Too many requests', 429);\n static RequestHeaderFieldsTooLarge = new HttpStatus('Request header fields too large', 431);\n static UnavailableForLegalReasons = new HttpStatus('Unavailable for legal reasons', 451);\n static InternalServerError = new HttpStatus('Internal server error', 500);\n static NotImplemented = new HttpStatus('Not implemented', 501);\n static BadGateway = new HttpStatus('Bad gateway', 502);\n static ServiceUnavailable = new HttpStatus('Service unavailable', 503);\n static GatewayTimeout = new HttpStatus('Gateway timeout', 504);\n static HTTPVersionNotSupported = new HttpStatus('Http version not supported', 505);\n static VariantAlsoNegotiates = new HttpStatus('Variant also negotiates', 506);\n static InsufficientStorage = new HttpStatus('Insufficient storage', 507);\n static LoopDetected = new HttpStatus('Loop detected', 508);\n static NotExtended = new HttpStatus('Not extended', 510);\n static NetworkAuthenticationRequired = new HttpStatus('Network authentication required', 511);\n\n get isError(): boolean {\n return this.isClientError || this.isServerError;\n }\n\n get isClientError(): boolean {\n return (this.id as number) >= 400 && (this.id as number) < 500;\n }\n\n get isServerError(): boolean {\n return (this.id as number) >= 500 && (this.id as number) < 600;\n }\n\n get status(): number {\n return this.id as number;\n }\n}\n\nexport const isHttpStatus: TypeGuard<HttpStatus> = (s?: unknown): s is HttpStatus => isAn<HttpStatus>(s, 'id', 'status');\n\nexport const toHttpStatus = (s: HttpStatus | Code): HttpStatus => (isHttpStatus(s) ? s : HttpStatus.byId(s));\n"],"mappings":"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","names":[]}
|
package/dist/http/HttpVerb.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var HttpVerb_exports = {};
|
|
20
|
-
__export(HttpVerb_exports, {
|
|
21
|
-
HttpVerb: () => HttpVerb
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(HttpVerb_exports);
|
|
24
|
-
var import_types = require("../types");
|
|
25
|
-
class HttpVerb extends import_types.Enum {
|
|
26
|
-
static Get = new HttpVerb("Get");
|
|
27
|
-
static Put = new HttpVerb("Put");
|
|
28
|
-
static Patch = new HttpVerb("Patch");
|
|
29
|
-
static Post = new HttpVerb("Post");
|
|
30
|
-
static Delete = new HttpVerb("Delete");
|
|
31
|
-
constructor(name) {
|
|
32
|
-
super(name, name.toLowerCase(), name.toUpperCase());
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
HttpVerb
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=HttpVerb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/http/HttpVerb.ts"],"sourcesContent":["import { Enum } from '../types';\n\nexport class HttpVerb extends Enum {\n static Get = new HttpVerb('Get');\n static Put = new HttpVerb('Put');\n static Patch = new HttpVerb('Patch');\n static Post = new HttpVerb('Post');\n static Delete = new HttpVerb('Delete');\n\n constructor(name: string) {\n super(name, name.toLowerCase(), name.toUpperCase());\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAqB;AAEd,MAAM,iBAAiB,kBAAK;AAAA,EACjC,OAAO,MAAM,IAAI,SAAS,KAAK;AAAA,EAC/B,OAAO,MAAM,IAAI,SAAS,KAAK;AAAA,EAC/B,OAAO,QAAQ,IAAI,SAAS,OAAO;AAAA,EACnC,OAAO,OAAO,IAAI,SAAS,MAAM;AAAA,EACjC,OAAO,SAAS,IAAI,SAAS,QAAQ;AAAA,EAErC,YAAY,MAAc;AACxB,UAAM,MAAM,KAAK,YAAY,GAAG,KAAK,YAAY,CAAC;AAAA,EACpD;AACF;","names":[]}
|