@thisisagile/easy 17.26.0 → 17.26.2
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-2AB6ZQHC.mjs +26 -0
- package/dist/chunk-2AB6ZQHC.mjs.map +1 -0
- package/dist/chunk-4DJUHTQO.mjs +55 -0
- package/dist/chunk-4DJUHTQO.mjs.map +1 -0
- package/dist/chunk-4HWEQEHM.mjs +20 -0
- package/dist/chunk-4HWEQEHM.mjs.map +1 -0
- package/dist/chunk-4N72FQFX.mjs +16 -0
- package/dist/chunk-4N72FQFX.mjs.map +1 -0
- package/dist/chunk-4SWYJEN5.mjs +82 -0
- package/dist/chunk-4SWYJEN5.mjs.map +1 -0
- package/dist/chunk-4VZHB642.mjs +37 -0
- package/dist/chunk-4VZHB642.mjs.map +1 -0
- package/dist/chunk-ADJAEGCT.mjs +21 -0
- package/dist/chunk-ADJAEGCT.mjs.map +1 -0
- package/dist/chunk-AGTB4HMP.mjs +11 -0
- package/dist/chunk-AGTB4HMP.mjs.map +1 -0
- package/dist/chunk-BDA5LB4S.mjs +29 -0
- package/dist/chunk-BDA5LB4S.mjs.map +1 -0
- package/dist/chunk-BZOYP6X7.mjs +134 -0
- package/dist/chunk-BZOYP6X7.mjs.map +1 -0
- package/dist/chunk-CO2AFYVD.mjs +43 -0
- package/dist/chunk-CO2AFYVD.mjs.map +1 -0
- package/dist/chunk-D7UFAVDX.mjs +54 -0
- package/dist/chunk-D7UFAVDX.mjs.map +1 -0
- package/dist/chunk-DEFTEK45.mjs +40 -0
- package/dist/chunk-DEFTEK45.mjs.map +1 -0
- package/dist/chunk-DEJ7A5PY.mjs +43 -0
- package/dist/chunk-DEJ7A5PY.mjs.map +1 -0
- package/dist/chunk-DLA22ZCC.mjs +20 -0
- package/dist/chunk-DLA22ZCC.mjs.map +1 -0
- package/dist/chunk-DXQSIBC7.mjs +13 -0
- package/dist/chunk-DXQSIBC7.mjs.map +1 -0
- package/dist/chunk-ELDS3NWV.mjs +23 -0
- package/dist/chunk-ELDS3NWV.mjs.map +1 -0
- package/dist/chunk-ELUKCMQZ.mjs +50 -0
- package/dist/chunk-ELUKCMQZ.mjs.map +1 -0
- package/dist/chunk-FN7HN3YK.mjs +58 -0
- package/dist/chunk-FN7HN3YK.mjs.map +1 -0
- package/dist/chunk-GCY5A63A.mjs +25 -0
- package/dist/chunk-GCY5A63A.mjs.map +1 -0
- package/dist/chunk-GO66AIDJ.mjs +76 -0
- package/dist/chunk-GO66AIDJ.mjs.map +1 -0
- package/dist/chunk-GVTADDU5.mjs +39 -0
- package/dist/chunk-GVTADDU5.mjs.map +1 -0
- package/dist/chunk-GZIULZH2.mjs +79 -0
- package/dist/chunk-GZIULZH2.mjs.map +1 -0
- package/dist/chunk-HOVTNDHS.mjs +297 -0
- package/dist/chunk-HOVTNDHS.mjs.map +1 -0
- package/dist/chunk-HPM4L4MH.mjs +20 -0
- package/dist/chunk-HPM4L4MH.mjs.map +1 -0
- package/dist/chunk-HSOXY623.mjs +53 -0
- package/dist/chunk-HSOXY623.mjs.map +1 -0
- package/dist/chunk-IH4VU7UP.mjs +31 -0
- package/dist/chunk-IH4VU7UP.mjs.map +1 -0
- package/dist/chunk-JPWRHLXY.mjs +51 -0
- package/dist/chunk-JPWRHLXY.mjs.map +1 -0
- package/dist/chunk-L5KXXMUH.mjs +46 -0
- package/dist/chunk-L5KXXMUH.mjs.map +1 -0
- package/dist/chunk-L5ZI7SPN.mjs +90 -0
- package/dist/chunk-L5ZI7SPN.mjs.map +1 -0
- package/dist/chunk-LGLRWA42.mjs +324 -0
- package/dist/chunk-LGLRWA42.mjs.map +1 -0
- package/dist/chunk-LKTTPV6U.mjs +70 -0
- package/dist/chunk-LKTTPV6U.mjs.map +1 -0
- package/dist/chunk-LONFFS5R.mjs +107 -0
- package/dist/chunk-LONFFS5R.mjs.map +1 -0
- package/dist/chunk-LUHR6633.mjs +54 -0
- package/dist/chunk-LUHR6633.mjs.map +1 -0
- package/dist/chunk-MDXL65W4.mjs +49 -0
- package/dist/chunk-MDXL65W4.mjs.map +1 -0
- package/dist/chunk-N22QIDIK.mjs +25 -0
- package/dist/chunk-N22QIDIK.mjs.map +1 -0
- package/dist/chunk-NBYO2U6Q.mjs +48 -0
- package/dist/chunk-NBYO2U6Q.mjs.map +1 -0
- package/dist/chunk-NPCTXURR.mjs +23 -0
- package/dist/chunk-NPCTXURR.mjs.map +1 -0
- package/dist/chunk-OFGI5FLG.mjs +11 -0
- package/dist/chunk-OFGI5FLG.mjs.map +1 -0
- package/dist/chunk-OGLPG6DF.mjs +18 -0
- package/dist/chunk-OGLPG6DF.mjs.map +1 -0
- package/dist/chunk-OKPGJD64.mjs +41 -0
- package/dist/chunk-OKPGJD64.mjs.map +1 -0
- package/dist/chunk-OQNZEKWO.mjs +24 -0
- package/dist/chunk-OQNZEKWO.mjs.map +1 -0
- package/dist/chunk-OWLQ6U7M.mjs +57 -0
- package/dist/chunk-OWLQ6U7M.mjs.map +1 -0
- package/dist/chunk-P5MN5NGC.mjs +24 -0
- package/dist/chunk-P5MN5NGC.mjs.map +1 -0
- package/dist/chunk-PIRWVOO2.mjs +7 -0
- package/dist/chunk-PIRWVOO2.mjs.map +1 -0
- package/dist/chunk-PR6DFFCE.mjs +94 -0
- package/dist/chunk-PR6DFFCE.mjs.map +1 -0
- package/dist/chunk-QMASVXTD.mjs +40 -0
- package/dist/chunk-QMASVXTD.mjs.map +1 -0
- package/dist/chunk-QNNYTOR7.mjs +142 -0
- package/dist/chunk-QNNYTOR7.mjs.map +1 -0
- package/dist/chunk-RHOK5QZR.mjs +175 -0
- package/dist/chunk-RHOK5QZR.mjs.map +1 -0
- package/dist/chunk-RS7CT7BU.mjs +20 -0
- package/dist/chunk-RS7CT7BU.mjs.map +1 -0
- package/dist/chunk-RUFO75IB.mjs +18 -0
- package/dist/chunk-RUFO75IB.mjs.map +1 -0
- package/dist/chunk-RWGCMC6L.mjs +164 -0
- package/dist/chunk-RWGCMC6L.mjs.map +1 -0
- package/dist/chunk-SCVGZWV7.mjs +35 -0
- package/dist/chunk-SCVGZWV7.mjs.map +1 -0
- package/dist/chunk-SJ4YFZKO.mjs +21 -0
- package/dist/chunk-SJ4YFZKO.mjs.map +1 -0
- package/dist/chunk-SJGQU3OG.mjs +15 -0
- package/dist/chunk-SJGQU3OG.mjs.map +1 -0
- package/dist/chunk-SSROJBD5.mjs +30 -0
- package/dist/chunk-SSROJBD5.mjs.map +1 -0
- package/dist/chunk-SW2OCUH3.mjs +10 -0
- package/dist/chunk-SW2OCUH3.mjs.map +1 -0
- package/dist/chunk-TNZJKUDY.mjs +45 -0
- package/dist/chunk-TNZJKUDY.mjs.map +1 -0
- package/dist/chunk-UXADDXCJ.mjs +68 -0
- package/dist/chunk-UXADDXCJ.mjs.map +1 -0
- package/dist/chunk-UYDZZAEK.mjs +11 -0
- package/dist/chunk-UYDZZAEK.mjs.map +1 -0
- package/dist/chunk-VBZTERRM.mjs +94 -0
- package/dist/chunk-VBZTERRM.mjs.map +1 -0
- package/dist/chunk-WJZFE5NE.mjs +17 -0
- package/dist/chunk-WJZFE5NE.mjs.map +1 -0
- package/dist/chunk-WLTLSV2I.mjs +20 -0
- package/dist/chunk-WLTLSV2I.mjs.map +1 -0
- package/dist/chunk-WOSYMEQL.mjs +60 -0
- package/dist/chunk-WOSYMEQL.mjs.map +1 -0
- package/dist/chunk-WSBULPUZ.mjs +30 -0
- package/dist/chunk-WSBULPUZ.mjs.map +1 -0
- package/dist/chunk-WVTNXVBL.mjs +56 -0
- package/dist/chunk-WVTNXVBL.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.mjs +29 -0
- package/dist/data/Condition.mjs.map +1 -0
- package/dist/data/DataProvider.mjs +1 -0
- package/dist/data/DataProvider.mjs.map +1 -0
- package/dist/data/Database.mjs +23 -0
- package/dist/data/Database.mjs.map +1 -0
- package/dist/data/Field.mjs +47 -0
- package/dist/data/Field.mjs.map +1 -0
- package/dist/data/InMemoryGateway.mjs +70 -0
- package/dist/data/InMemoryGateway.mjs.map +1 -0
- package/dist/data/Query.mjs +1 -0
- package/dist/data/Query.mjs.map +1 -0
- package/dist/data/QueryProvider.mjs +1 -0
- package/dist/data/QueryProvider.mjs.map +1 -0
- package/dist/domain/Audit.mjs +36 -0
- package/dist/domain/Audit.mjs.map +1 -0
- package/dist/domain/Child.mjs +54 -0
- package/dist/domain/Child.mjs.map +1 -0
- package/dist/domain/DateTime.mjs +36 -0
- package/dist/domain/DateTime.mjs.map +1 -0
- package/dist/domain/Entity.mjs +71 -0
- package/dist/domain/Entity.mjs.map +1 -0
- package/dist/domain/Repo.mjs +96 -0
- package/dist/domain/Repo.mjs.map +1 -0
- package/dist/domain/Struct.mjs +33 -0
- package/dist/domain/Struct.mjs.map +1 -0
- package/dist/domain/Typo.mjs +114 -0
- package/dist/domain/Typo.mjs.map +1 -0
- package/dist/http/CacheControl.mjs +66 -0
- package/dist/http/CacheControl.mjs.map +1 -0
- package/dist/http/ContentType.mjs +21 -0
- package/dist/http/ContentType.mjs.map +1 -0
- package/dist/http/HttpHeader.mjs +8 -0
- package/dist/http/HttpHeader.mjs.map +1 -0
- package/dist/http/HttpStatus.mjs +25 -0
- package/dist/http/HttpStatus.mjs.map +1 -0
- package/dist/http/HttpVerb.mjs +21 -0
- package/dist/http/HttpVerb.mjs.map +1 -0
- package/dist/http/LocalRequestStore.mjs +29 -0
- package/dist/http/LocalRequestStore.mjs.map +1 -0
- package/dist/http/Request.mjs +1 -0
- package/dist/http/Request.mjs.map +1 -0
- package/dist/http/RequestOptions.mjs +30 -0
- package/dist/http/RequestOptions.mjs.map +1 -0
- package/dist/http/RequestProvider.mjs +1 -0
- package/dist/http/RequestProvider.mjs.map +1 -0
- package/dist/http/Response.mjs +13 -0
- package/dist/http/Response.mjs.map +1 -0
- package/dist/http/RestResult.mjs +34 -0
- package/dist/http/RestResult.mjs.map +1 -0
- package/dist/http/toResponse.mjs +33 -0
- package/dist/http/toResponse.mjs.map +1 -0
- package/dist/index.mjs +115 -3476
- package/dist/index.mjs.map +1 -1
- package/dist/process/App.mjs +30 -0
- package/dist/process/App.mjs.map +1 -0
- package/dist/process/Manage.mjs +47 -0
- package/dist/process/Manage.mjs.map +1 -0
- package/dist/process/Scope.mjs +22 -0
- package/dist/process/Scope.mjs.map +1 -0
- package/dist/process/Search.mjs +31 -0
- package/dist/process/Search.mjs.map +1 -0
- package/dist/process/UseCase.mjs +53 -0
- package/dist/process/UseCase.mjs.map +1 -0
- package/dist/resources/Req.mjs +57 -0
- package/dist/resources/Req.mjs.map +1 -0
- package/dist/security/Jwt.mjs +77 -0
- package/dist/security/Jwt.mjs.map +1 -0
- package/dist/services/Api.mjs +44 -0
- package/dist/services/Api.mjs.map +1 -0
- package/dist/services/ApiGateway.mjs +45 -0
- package/dist/services/ApiGateway.mjs.map +1 -0
- package/dist/services/AxiosProvider.mjs +40 -0
- package/dist/services/AxiosProvider.mjs.map +1 -0
- package/dist/services/MappedRouteGateway.mjs +78 -0
- package/dist/services/MappedRouteGateway.mjs.map +1 -0
- package/dist/services/RouteGateway.mjs +46 -0
- package/dist/services/RouteGateway.mjs.map +1 -0
- package/dist/services/ViewRouteGateway.mjs +79 -0
- package/dist/services/ViewRouteGateway.mjs.map +1 -0
- package/dist/sql/Clause.mjs +24 -0
- package/dist/sql/Clause.mjs.map +1 -0
- package/dist/sql/Column.mjs +37 -0
- package/dist/sql/Column.mjs.map +1 -0
- package/dist/sql/Count.mjs +20 -0
- package/dist/sql/Count.mjs.map +1 -0
- package/dist/sql/Delete.mjs +19 -0
- package/dist/sql/Delete.mjs.map +1 -0
- package/dist/sql/Insert.mjs +21 -0
- package/dist/sql/Insert.mjs.map +1 -0
- package/dist/sql/Join.mjs +8 -0
- package/dist/sql/Join.mjs.map +1 -0
- package/dist/sql/Select.mjs +19 -0
- package/dist/sql/Select.mjs.map +1 -0
- package/dist/sql/SqlQuery.mjs +18 -0
- package/dist/sql/SqlQuery.mjs.map +1 -0
- package/dist/sql/Table.mjs +93 -0
- package/dist/sql/Table.mjs.map +1 -0
- package/dist/sql/TableGateway.mjs +72 -0
- package/dist/sql/TableGateway.mjs.map +1 -0
- package/dist/sql/Update.mjs +21 -0
- package/dist/sql/Update.mjs.map +1 -0
- package/dist/types/AnyKey.mjs +1 -0
- package/dist/types/AnyKey.mjs.map +1 -0
- package/dist/types/Array.mjs +16 -0
- package/dist/types/Array.mjs.map +1 -0
- package/dist/types/Builder.mjs +26 -0
- package/dist/types/Builder.mjs.map +1 -0
- package/dist/types/Cache.mjs +29 -0
- package/dist/types/Cache.mjs.map +1 -0
- package/dist/types/CacheAge.mjs +33 -0
- package/dist/types/CacheAge.mjs.map +1 -0
- package/dist/types/Case.mjs +29 -0
- package/dist/types/Case.mjs.map +1 -0
- package/dist/types/Constructor.mjs +23 -0
- package/dist/types/Constructor.mjs.map +1 -0
- package/dist/types/Context.mjs +28 -0
- package/dist/types/Context.mjs.map +1 -0
- package/dist/types/Currency.mjs +15 -0
- package/dist/types/Currency.mjs.map +1 -0
- package/dist/types/Enum.mjs +24 -0
- package/dist/types/Enum.mjs.map +1 -0
- package/dist/types/Environment.mjs +28 -0
- package/dist/types/Environment.mjs.map +1 -0
- package/dist/types/ErrorOrigin.mjs +1 -0
- package/dist/types/ErrorOrigin.mjs.map +1 -0
- package/dist/types/Exception.mjs +26 -0
- package/dist/types/Exception.mjs.map +1 -0
- package/dist/types/Falsy.mjs +10 -0
- package/dist/types/Falsy.mjs.map +1 -0
- package/dist/types/Func.mjs +8 -0
- package/dist/types/Func.mjs.map +1 -0
- package/dist/types/Gateway.mjs +24 -0
- package/dist/types/Gateway.mjs.map +1 -0
- package/dist/types/Get.mjs +13 -0
- package/dist/types/Get.mjs.map +1 -0
- package/dist/types/Id.mjs +13 -0
- package/dist/types/Id.mjs.map +1 -0
- package/dist/types/IdName.mjs +1 -0
- package/dist/types/IdName.mjs.map +1 -0
- package/dist/types/Identity.mjs +1 -0
- package/dist/types/Identity.mjs.map +1 -0
- package/dist/types/Indexed.mjs +15 -0
- package/dist/types/Indexed.mjs.map +1 -0
- package/dist/types/Is.mjs +42 -0
- package/dist/types/Is.mjs.map +1 -0
- package/dist/types/IsA.mjs +16 -0
- package/dist/types/IsA.mjs.map +1 -0
- package/dist/types/IsDate.mjs +14 -0
- package/dist/types/IsDate.mjs.map +1 -0
- package/dist/types/IsEqual.mjs +30 -0
- package/dist/types/IsEqual.mjs.map +1 -0
- package/dist/types/Json.mjs +29 -0
- package/dist/types/Json.mjs.map +1 -0
- package/dist/types/List.mjs +27 -0
- package/dist/types/List.mjs.map +1 -0
- package/dist/types/Message.mjs +11 -0
- package/dist/types/Message.mjs.map +1 -0
- package/dist/types/Meta.mjs +19 -0
- package/dist/types/Meta.mjs.map +1 -0
- package/dist/types/Nullish.mjs +8 -0
- package/dist/types/Nullish.mjs.map +1 -0
- package/dist/types/Number.mjs +30 -0
- package/dist/types/Number.mjs.map +1 -0
- package/dist/types/Object.mjs +24 -0
- package/dist/types/Object.mjs.map +1 -0
- package/dist/types/PageList.mjs +40 -0
- package/dist/types/PageList.mjs.map +1 -0
- package/dist/types/Parser.mjs +80 -0
- package/dist/types/Parser.mjs.map +1 -0
- package/dist/types/Primitive.mjs +9 -0
- package/dist/types/Primitive.mjs.map +1 -0
- package/dist/types/Repository.mjs +24 -0
- package/dist/types/Repository.mjs.map +1 -0
- package/dist/types/Result.mjs +23 -0
- package/dist/types/Result.mjs.map +1 -0
- package/dist/types/Results.mjs +26 -0
- package/dist/types/Results.mjs.map +1 -0
- package/dist/types/Sort.mjs +10 -0
- package/dist/types/Sort.mjs.map +1 -0
- package/dist/types/Tag.mjs +26 -0
- package/dist/types/Tag.mjs.map +1 -0
- package/dist/types/Template.mjs +21 -0
- package/dist/types/Template.mjs.map +1 -0
- package/dist/types/Text.mjs +21 -0
- package/dist/types/Text.mjs.map +1 -0
- package/dist/types/ToText.mjs +23 -0
- package/dist/types/ToText.mjs.map +1 -0
- package/dist/types/Try.mjs +31 -0
- package/dist/types/Try.mjs.map +1 -0
- package/dist/types/TypeGuard.mjs +1 -0
- package/dist/types/TypeGuard.mjs.map +1 -0
- package/dist/types/Types.mjs +1 -0
- package/dist/types/Types.mjs.map +1 -0
- package/dist/types/Uri.mjs +119 -0
- package/dist/types/Uri.mjs.map +1 -0
- package/dist/types/Uuid.mjs +16 -0
- package/dist/types/Uuid.mjs.map +1 -0
- package/dist/types/Validatable.mjs +13 -0
- package/dist/types/Validatable.mjs.map +1 -0
- package/dist/types/Value.mjs +14 -0
- package/dist/types/Value.mjs.map +1 -0
- package/dist/utils/Base64.mjs +12 -0
- package/dist/utils/Base64.mjs.map +1 -0
- package/dist/utils/Convert.mjs +14 -0
- package/dist/utils/Convert.mjs.map +1 -0
- package/dist/utils/If.mjs +25 -0
- package/dist/utils/If.mjs.map +1 -0
- package/dist/utils/Loading.mjs +11 -0
- package/dist/utils/Loading.mjs.map +1 -0
- package/dist/utils/Log.mjs +21 -0
- package/dist/utils/Log.mjs.map +1 -0
- package/dist/utils/Mapper.mjs +28 -0
- package/dist/utils/Mapper.mjs.map +1 -0
- package/dist/utils/Promise.mjs +35 -0
- package/dist/utils/Promise.mjs.map +1 -0
- package/dist/utils/Property.mjs +13 -0
- package/dist/utils/Property.mjs.map +1 -0
- package/dist/utils/Seconds.mjs +18 -0
- package/dist/utils/Seconds.mjs.map +1 -0
- package/dist/utils/Sentence.mjs +71 -0
- package/dist/utils/Sentence.mjs.map +1 -0
- package/dist/utils/State.mjs +12 -0
- package/dist/utils/State.mjs.map +1 -0
- package/dist/utils/Traverse.mjs +12 -0
- package/dist/utils/Traverse.mjs.map +1 -0
- package/dist/utils/View.mjs +41 -0
- package/dist/utils/View.mjs.map +1 -0
- package/dist/utils/Wait.mjs +17 -0
- package/dist/utils/Wait.mjs.map +1 -0
- package/dist/validation/Contraints.mjs +65 -0
- package/dist/validation/Contraints.mjs.map +1 -0
- package/dist/validation/Validate.mjs +35 -0
- package/dist/validation/Validate.mjs.map +1 -0
- package/dist/validation/When.mjs +31 -0
- package/dist/validation/When.mjs.map +1 -0
- package/package.json +4 -12
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Repository
|
|
3
|
+
} from "../chunk-JPWRHLXY.mjs";
|
|
4
|
+
import {
|
|
5
|
+
toJson
|
|
6
|
+
} from "../chunk-LKTTPV6U.mjs";
|
|
7
|
+
import {
|
|
8
|
+
when
|
|
9
|
+
} from "../chunk-LGLRWA42.mjs";
|
|
10
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
11
|
+
import "../chunk-SCVGZWV7.mjs";
|
|
12
|
+
import "../chunk-RS7CT7BU.mjs";
|
|
13
|
+
import "../chunk-LUHR6633.mjs";
|
|
14
|
+
import {
|
|
15
|
+
Exception
|
|
16
|
+
} from "../chunk-DEFTEK45.mjs";
|
|
17
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
18
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
19
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
20
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
21
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
22
|
+
import "../chunk-4VZHB642.mjs";
|
|
23
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
24
|
+
import "../chunk-SSROJBD5.mjs";
|
|
25
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
26
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
27
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
28
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
29
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
30
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
31
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
32
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
33
|
+
import "../chunk-4N72FQFX.mjs";
|
|
34
|
+
|
|
35
|
+
// src/domain/Typo.ts
|
|
36
|
+
var Typo = class extends Repository {
|
|
37
|
+
constructor(view, gateway) {
|
|
38
|
+
super();
|
|
39
|
+
this.view = view;
|
|
40
|
+
this.gateway = gateway;
|
|
41
|
+
}
|
|
42
|
+
create = (j) => this.view.from(j);
|
|
43
|
+
all(options) {
|
|
44
|
+
return this.gateway.all(options).then((js) => js.map(this.create));
|
|
45
|
+
}
|
|
46
|
+
byId(id) {
|
|
47
|
+
return this.gateway.byId(id).then((j) => when(j).not.isDefined.reject(Exception.DoesNotExist)).then((j) => this.create(j));
|
|
48
|
+
}
|
|
49
|
+
byIds(...ids) {
|
|
50
|
+
return this.gateway.byIds(...ids).then((js) => js.map(this.create));
|
|
51
|
+
}
|
|
52
|
+
byKey(key, options) {
|
|
53
|
+
return this.gateway.by("key", key, options).then((js) => js.map(this.create));
|
|
54
|
+
}
|
|
55
|
+
by(key, value, options) {
|
|
56
|
+
return this.gateway.by(key.toString(), value, options).then((js) => js.map(this.create));
|
|
57
|
+
}
|
|
58
|
+
search(q, options) {
|
|
59
|
+
return this.gateway.search(q, options).then((js) => js.map(this.create));
|
|
60
|
+
}
|
|
61
|
+
filter(options) {
|
|
62
|
+
return this.gateway.filter(options).then((js) => js.map((j) => this.create(j)));
|
|
63
|
+
}
|
|
64
|
+
exists(id) {
|
|
65
|
+
return this.gateway.exists(id);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var Agent = class extends Repository {
|
|
69
|
+
constructor(gateway) {
|
|
70
|
+
super();
|
|
71
|
+
this.gateway = gateway;
|
|
72
|
+
}
|
|
73
|
+
all(options) {
|
|
74
|
+
return this.gateway.all(options);
|
|
75
|
+
}
|
|
76
|
+
byId(id) {
|
|
77
|
+
return this.gateway.byId(id);
|
|
78
|
+
}
|
|
79
|
+
byIds(...ids) {
|
|
80
|
+
return this.gateway.byIds(...ids);
|
|
81
|
+
}
|
|
82
|
+
byKey(key, options) {
|
|
83
|
+
return this.gateway.by("key", key, options);
|
|
84
|
+
}
|
|
85
|
+
by(key, value, options) {
|
|
86
|
+
return this.gateway.by(key.toString(), value, options);
|
|
87
|
+
}
|
|
88
|
+
search(q, options) {
|
|
89
|
+
return this.gateway.search(q, options);
|
|
90
|
+
}
|
|
91
|
+
filter(options) {
|
|
92
|
+
return this.gateway.filter(options);
|
|
93
|
+
}
|
|
94
|
+
exists(id) {
|
|
95
|
+
return this.gateway.exists(id);
|
|
96
|
+
}
|
|
97
|
+
add(t) {
|
|
98
|
+
return this.gateway.add(toJson(t));
|
|
99
|
+
}
|
|
100
|
+
update(id, t) {
|
|
101
|
+
return this.gateway.update({ ...toJson(t), id });
|
|
102
|
+
}
|
|
103
|
+
upsert(id, t) {
|
|
104
|
+
return this.gateway.upsert({ ...toJson(t), id });
|
|
105
|
+
}
|
|
106
|
+
remove(id) {
|
|
107
|
+
return this.gateway.remove(id);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
Agent,
|
|
112
|
+
Typo
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=Typo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/domain/Typo.ts"],"sourcesContent":["import { View } from '../utils/View';\nimport { FetchOptions, Gateway } from '../types/Gateway';\nimport { Repository } from '../types/Repository';\nimport { Json, JsonValue, toJson } from '../types/Json';\nimport { PageList } from '../types/PageList';\nimport { Id, Key } from '../types/Id';\nimport { when } from '../validation/When';\nimport { Exception } from '../types/Exception';\nimport { List } from '../types/List';\nimport { RouteGateway } from '../services/RouteGateway';\nimport { RouteOptions } from '../services/Api';\n\nexport class Typo<T, Options extends RouteOptions = RouteOptions> extends Repository<T, Options> {\n constructor(\n protected view: View<T>,\n private readonly gateway: Gateway<Options>\n ) {\n super();\n }\n\n create = (j: Json): T => this.view.from(j);\n\n all(options?: Options): Promise<PageList<T>> {\n return this.gateway.all(options).then(js => js.map(this.create));\n }\n\n byId(id: Id): Promise<T> {\n return this.gateway\n .byId(id)\n .then(j => when(j).not.isDefined.reject(Exception.DoesNotExist))\n .then(j => this.create(j));\n }\n\n byIds(...ids: Id[]): Promise<List<T>> {\n return this.gateway.byIds(...ids).then(js => js.map(this.create));\n }\n\n byKey(key: Key, options?: Options): Promise<PageList<T>> {\n return this.gateway.by('key', key, options).then(js => js.map(this.create));\n }\n\n by(key: keyof T, value: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.by(key.toString(), value, options).then(js => js.map(this.create));\n }\n\n search(q: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.search(q, options).then(js => js.map(this.create));\n }\n\n filter(options?: Options): Promise<PageList<T>> {\n return this.gateway.filter(options).then(js => js.map(j => this.create(j)));\n }\n\n exists(id: Id): Promise<boolean> {\n return this.gateway.exists(id);\n }\n}\n\nexport class Agent<T, Options extends FetchOptions = FetchOptions> extends Repository<T, Options> {\n constructor(private gateway: RouteGateway) {\n super();\n }\n\n all(options?: Options): Promise<PageList<T>> {\n return this.gateway.all(options) as Promise<PageList<T>>;\n }\n\n byId(id: Id): Promise<T> {\n return this.gateway.byId(id) as Promise<T>;\n }\n\n byIds(...ids: Id[]): Promise<List<T>> {\n return this.gateway.byIds(...ids) as Promise<List<T>>;\n }\n\n byKey(key: Key, options?: Options): Promise<PageList<T>> {\n return this.gateway.by('key', key, options) as Promise<PageList<T>>;\n }\n\n by(key: keyof T, value: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.by(key.toString(), value, options) as Promise<PageList<T>>;\n }\n\n search(q: JsonValue, options?: Options): Promise<PageList<T>> {\n return this.gateway.search(q, options) as Promise<PageList<T>>;\n }\n\n filter(options?: Options): Promise<PageList<T>> {\n return this.gateway.filter(options) as Promise<PageList<T>>;\n }\n\n exists(id: Id): Promise<boolean> {\n return this.gateway.exists(id);\n }\n\n add(t: Partial<T>): Promise<T> {\n return this.gateway.add(toJson(t)) as Promise<T>;\n }\n\n update(id: Id, t: Partial<T>): Promise<T> {\n return this.gateway.update({ ...toJson(t), id }) as Promise<T>;\n }\n\n upsert(id: Id, t: Partial<T>): Promise<T> {\n return this.gateway.upsert({ ...toJson(t), id }) as Promise<T>;\n }\n\n remove(id: Id): Promise<boolean> {\n return this.gateway.remove(id);\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cacheAge,
|
|
3
|
+
isCacheAge
|
|
4
|
+
} from "../chunk-OWLQ6U7M.mjs";
|
|
5
|
+
import "../chunk-HPM4L4MH.mjs";
|
|
6
|
+
import "../chunk-LGLRWA42.mjs";
|
|
7
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
8
|
+
import "../chunk-SCVGZWV7.mjs";
|
|
9
|
+
import "../chunk-RS7CT7BU.mjs";
|
|
10
|
+
import "../chunk-LUHR6633.mjs";
|
|
11
|
+
import "../chunk-DEFTEK45.mjs";
|
|
12
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
13
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
14
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
15
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
16
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
17
|
+
import {
|
|
18
|
+
entries
|
|
19
|
+
} from "../chunk-4VZHB642.mjs";
|
|
20
|
+
import {
|
|
21
|
+
ifDefined
|
|
22
|
+
} from "../chunk-HOVTNDHS.mjs";
|
|
23
|
+
import "../chunk-SSROJBD5.mjs";
|
|
24
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
25
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
26
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
27
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
28
|
+
import {
|
|
29
|
+
on
|
|
30
|
+
} from "../chunk-ZPNFXK7Y.mjs";
|
|
31
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
32
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
33
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
34
|
+
import "../chunk-4N72FQFX.mjs";
|
|
35
|
+
|
|
36
|
+
// src/http/CacheControl.ts
|
|
37
|
+
var CacheControl = class _CacheControl {
|
|
38
|
+
constructor(enabled = true, directives = {}) {
|
|
39
|
+
this.enabled = enabled;
|
|
40
|
+
this.directives = directives;
|
|
41
|
+
}
|
|
42
|
+
name = "Cache-Control";
|
|
43
|
+
static disabled = () => new _CacheControl(false);
|
|
44
|
+
static OneSecond = () => new _CacheControl().maxAge(1).staleWhileRevalidate(1);
|
|
45
|
+
static fiveSeconds = () => new _CacheControl().maxAge(5).staleWhileRevalidate(5);
|
|
46
|
+
static tenSeconds = () => new _CacheControl().maxAge(10).staleWhileRevalidate(10);
|
|
47
|
+
static thirtySeconds = () => new _CacheControl().maxAge(30).staleWhileRevalidate(30);
|
|
48
|
+
static sixtySeconds = () => new _CacheControl().maxAge(60).staleWhileRevalidate(60);
|
|
49
|
+
static custom = (maxAge, staleWhileRevalidate) => new _CacheControl().maxAge(maxAge).staleWhileRevalidate(staleWhileRevalidate);
|
|
50
|
+
maxAge = (ca) => on(this, (t) => t.directives["max-age"] = ca);
|
|
51
|
+
sharedMaxAge = (ca) => on(this, (t) => t.directives["s-maxage"] = ca);
|
|
52
|
+
noCache = (a) => on(this, (t) => t.directives["no-cache"] = a);
|
|
53
|
+
mustRevalidate = (a) => on(this, (t) => t.directives["must-revalidate"] = a);
|
|
54
|
+
private = (a) => on(this, (t) => t.directives["private"] = a);
|
|
55
|
+
public = (a) => on(this, (t) => t.directives["public"] = a);
|
|
56
|
+
immutable = (a) => on(this, (t) => t.directives["immutable"] = a);
|
|
57
|
+
staleWhileRevalidate = (ca) => on(this, (t) => t.directives["stale-while-revalidate"] = ca);
|
|
58
|
+
value = () => this.toString();
|
|
59
|
+
toString() {
|
|
60
|
+
return entries(this.directives).mapDefined(([k, v]) => ifDefined(v, isCacheAge(v) ? `${k}=${cacheAge.toSeconds(v)}` : k)).join(",");
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
CacheControl
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=CacheControl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/http/CacheControl.ts"],"sourcesContent":["import { cacheAge, CacheAge, isCacheAge } from '../types/CacheAge';\nimport { on } from '../types/Constructor';\nimport { entries } from '../types/Object';\nimport { ifDefined } from '../utils/If';\n\nexport class CacheControl {\n name = 'Cache-Control';\n\n protected constructor(\n readonly enabled = true,\n private directives: Record<string, boolean | CacheAge | undefined> = {}\n ) {}\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, isCacheAge(v) ? `${k}=${cacheAge.toSeconds(v)}` : k))\n .join(',');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKO,IAAM,eAAN,MAAM,cAAa;AAAA,EAGd,YACC,UAAU,MACX,aAA6D,CAAC,GACtE;AAFS;AACD;AAAA,EACP;AAAA,EALH,OAAO;AAAA,EAOP,OAAO,WAAW,MAAM,IAAI,cAAa,KAAK;AAAA,EAE9C,OAAO,YAAY,MAAM,IAAI,cAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC;AAAA,EAE5E,OAAO,cAAc,MAAM,IAAI,cAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC;AAAA,EAE9E,OAAO,aAAa,MAAM,IAAI,cAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAE/E,OAAO,gBAAgB,MAAM,IAAI,cAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAElF,OAAO,eAAe,MAAM,IAAI,cAAa,EAAE,OAAO,EAAE,EAAE,qBAAqB,EAAE;AAAA,EAEjF,OAAO,SAAS,CAAC,QAAmB,yBAAoC,IAAI,cAAa,EAAE,OAAO,MAAM,EAAE,qBAAqB,oBAAoB;AAAA,EAE1I,SAAS,CAAC,OAAwB,GAAG,MAAM,OAAM,EAAE,WAAW,SAAS,IAAI,EAAG;AAAA,EAE9E,eAAe,CAAC,OAAwB,GAAG,MAAM,OAAM,EAAE,WAAW,UAAU,IAAI,EAAG;AAAA,EAErF,UAAU,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,UAAU,IAAI,CAAE;AAAA,EAE7E,iBAAiB,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,iBAAiB,IAAI,CAAE;AAAA,EAE3F,UAAU,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,SAAS,IAAI,CAAE;AAAA,EAE5E,SAAS,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,QAAQ,IAAI,CAAE;AAAA,EAE1E,YAAY,CAAC,MAAsB,GAAG,MAAM,OAAM,EAAE,WAAW,WAAW,IAAI,CAAE;AAAA,EAEhF,uBAAuB,CAAC,OAAwB,GAAG,MAAM,OAAM,EAAE,WAAW,wBAAwB,IAAI,EAAG;AAAA,EAEpH,QAAQ,MAAc,KAAK,SAAS;AAAA,EAEpC,WAAmB;AACjB,WAAO,QAAQ,KAAK,UAAU,EAC3B,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,GAAG,CAAC,IAAI,SAAS,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,EACxF,KAAK,GAAG;AAAA,EACb;AACF;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContentType
|
|
3
|
+
} from "../chunk-IH4VU7UP.mjs";
|
|
4
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
5
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
6
|
+
import "../chunk-4VZHB642.mjs";
|
|
7
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
8
|
+
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
10
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
11
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
12
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
13
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
14
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
15
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
16
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
17
|
+
import "../chunk-4N72FQFX.mjs";
|
|
18
|
+
export {
|
|
19
|
+
ContentType
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ContentType.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpStatus,
|
|
3
|
+
isHttpStatus,
|
|
4
|
+
toHttpStatus
|
|
5
|
+
} from "../chunk-VBZTERRM.mjs";
|
|
6
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
7
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
8
|
+
import "../chunk-4VZHB642.mjs";
|
|
9
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
10
|
+
import "../chunk-SSROJBD5.mjs";
|
|
11
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
12
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
13
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
14
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
15
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
16
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
17
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
18
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
19
|
+
import "../chunk-4N72FQFX.mjs";
|
|
20
|
+
export {
|
|
21
|
+
HttpStatus,
|
|
22
|
+
isHttpStatus,
|
|
23
|
+
toHttpStatus
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=HttpStatus.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpVerb
|
|
3
|
+
} from "../chunk-4HWEQEHM.mjs";
|
|
4
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
5
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
6
|
+
import "../chunk-4VZHB642.mjs";
|
|
7
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
8
|
+
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
10
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
11
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
12
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
13
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
14
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
15
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
16
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
17
|
+
import "../chunk-4N72FQFX.mjs";
|
|
18
|
+
export {
|
|
19
|
+
HttpVerb
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=HttpVerb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ctx
|
|
3
|
+
} from "../chunk-PR6DFFCE.mjs";
|
|
4
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
5
|
+
import "../chunk-4VZHB642.mjs";
|
|
6
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
7
|
+
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
9
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
10
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
11
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
12
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
13
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
14
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
15
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
16
|
+
import "../chunk-4N72FQFX.mjs";
|
|
17
|
+
|
|
18
|
+
// src/http/LocalRequestStore.ts
|
|
19
|
+
var LocalRequestStore = class {
|
|
20
|
+
key = (_req) => "";
|
|
21
|
+
execute(req, f) {
|
|
22
|
+
const key = this.key(req);
|
|
23
|
+
return ctx.request.get(key) ?? ctx.request.set(key, f(req));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
LocalRequestStore
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=LocalRequestStore.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/http/LocalRequestStore.ts"],"sourcesContent":["import { Response } from './Response';\nimport { Request } from './Request';\nimport { Store } from '../types/Cache';\nimport { Func } from '../types/Func';\nimport { ctx } from '../types/Context';\n\nexport class LocalRequestStore implements Store<Response, Request> {\n key = (_req: Request): string => '';\n\n execute(req: Request, f: Func<Promise<Response>, Request>): Promise<Response> {\n const key = this.key(req);\n return ctx.request.get(key) ?? ctx.request.set(key, f(req));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAMO,IAAM,oBAAN,MAA4D;AAAA,EACjE,MAAM,CAAC,SAA0B;AAAA,EAEjC,QAAQ,KAAc,GAAwD;AAC5E,UAAM,MAAM,KAAK,IAAI,GAAG;AACxB,WAAO,IAAI,QAAQ,IAAI,GAAG,KAAK,IAAI,QAAQ,IAAI,KAAK,EAAE,GAAG,CAAC;AAAA,EAC5D;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=Request.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RequestOptions,
|
|
3
|
+
isRequestOptions,
|
|
4
|
+
toPageOptions
|
|
5
|
+
} from "../chunk-L5ZI7SPN.mjs";
|
|
6
|
+
import "../chunk-SW2OCUH3.mjs";
|
|
7
|
+
import "../chunk-SJ4YFZKO.mjs";
|
|
8
|
+
import "../chunk-IH4VU7UP.mjs";
|
|
9
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
10
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
11
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
12
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
13
|
+
import "../chunk-4VZHB642.mjs";
|
|
14
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
15
|
+
import "../chunk-SSROJBD5.mjs";
|
|
16
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
17
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
18
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
19
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
20
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
21
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
22
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
23
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
24
|
+
import "../chunk-4N72FQFX.mjs";
|
|
25
|
+
export {
|
|
26
|
+
RequestOptions,
|
|
27
|
+
isRequestOptions,
|
|
28
|
+
toPageOptions
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=RequestOptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=RequestProvider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isResponse
|
|
3
|
+
} from "../chunk-UYDZZAEK.mjs";
|
|
4
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
5
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
6
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
7
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
8
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
9
|
+
import "../chunk-4N72FQFX.mjs";
|
|
10
|
+
export {
|
|
11
|
+
isResponse
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Response.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isRestResult,
|
|
3
|
+
rest
|
|
4
|
+
} from "../chunk-4DJUHTQO.mjs";
|
|
5
|
+
import "../chunk-VBZTERRM.mjs";
|
|
6
|
+
import "../chunk-UYDZZAEK.mjs";
|
|
7
|
+
import "../chunk-LGLRWA42.mjs";
|
|
8
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
9
|
+
import "../chunk-SCVGZWV7.mjs";
|
|
10
|
+
import "../chunk-RS7CT7BU.mjs";
|
|
11
|
+
import "../chunk-LUHR6633.mjs";
|
|
12
|
+
import "../chunk-DEFTEK45.mjs";
|
|
13
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
14
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
15
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
16
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
17
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
18
|
+
import "../chunk-4VZHB642.mjs";
|
|
19
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
20
|
+
import "../chunk-SSROJBD5.mjs";
|
|
21
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
22
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
23
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
24
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
25
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
26
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
27
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
28
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
29
|
+
import "../chunk-4N72FQFX.mjs";
|
|
30
|
+
export {
|
|
31
|
+
isRestResult,
|
|
32
|
+
rest
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=RestResult.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
toResponse
|
|
3
|
+
} from "../chunk-DLA22ZCC.mjs";
|
|
4
|
+
import "../chunk-4DJUHTQO.mjs";
|
|
5
|
+
import "../chunk-VBZTERRM.mjs";
|
|
6
|
+
import "../chunk-UYDZZAEK.mjs";
|
|
7
|
+
import "../chunk-LGLRWA42.mjs";
|
|
8
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
9
|
+
import "../chunk-SCVGZWV7.mjs";
|
|
10
|
+
import "../chunk-RS7CT7BU.mjs";
|
|
11
|
+
import "../chunk-LUHR6633.mjs";
|
|
12
|
+
import "../chunk-DEFTEK45.mjs";
|
|
13
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
14
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
15
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
16
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
17
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
18
|
+
import "../chunk-4VZHB642.mjs";
|
|
19
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
20
|
+
import "../chunk-SSROJBD5.mjs";
|
|
21
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
22
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
23
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
24
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
25
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
26
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
27
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
28
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
29
|
+
import "../chunk-4N72FQFX.mjs";
|
|
30
|
+
export {
|
|
31
|
+
toResponse
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=toResponse.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|