@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,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
view
|
|
3
|
+
} from "../chunk-LONFFS5R.mjs";
|
|
4
|
+
import "../chunk-ELDS3NWV.mjs";
|
|
5
|
+
import {
|
|
6
|
+
RouteGateway
|
|
7
|
+
} from "../chunk-WOSYMEQL.mjs";
|
|
8
|
+
import "../chunk-L5KXXMUH.mjs";
|
|
9
|
+
import {
|
|
10
|
+
Api
|
|
11
|
+
} from "../chunk-GZIULZH2.mjs";
|
|
12
|
+
import "../chunk-WVTNXVBL.mjs";
|
|
13
|
+
import "../chunk-DLA22ZCC.mjs";
|
|
14
|
+
import "../chunk-4DJUHTQO.mjs";
|
|
15
|
+
import "../chunk-VBZTERRM.mjs";
|
|
16
|
+
import "../chunk-4HWEQEHM.mjs";
|
|
17
|
+
import "../chunk-L5ZI7SPN.mjs";
|
|
18
|
+
import "../chunk-SW2OCUH3.mjs";
|
|
19
|
+
import "../chunk-UYDZZAEK.mjs";
|
|
20
|
+
import "../chunk-SJ4YFZKO.mjs";
|
|
21
|
+
import "../chunk-OWLQ6U7M.mjs";
|
|
22
|
+
import "../chunk-HPM4L4MH.mjs";
|
|
23
|
+
import "../chunk-IH4VU7UP.mjs";
|
|
24
|
+
import "../chunk-TNZJKUDY.mjs";
|
|
25
|
+
import "../chunk-RHOK5QZR.mjs";
|
|
26
|
+
import "../chunk-LKTTPV6U.mjs";
|
|
27
|
+
import "../chunk-LGLRWA42.mjs";
|
|
28
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
29
|
+
import "../chunk-SCVGZWV7.mjs";
|
|
30
|
+
import "../chunk-RS7CT7BU.mjs";
|
|
31
|
+
import "../chunk-LUHR6633.mjs";
|
|
32
|
+
import "../chunk-DEFTEK45.mjs";
|
|
33
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
34
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
35
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
36
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
37
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
38
|
+
import "../chunk-4VZHB642.mjs";
|
|
39
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
40
|
+
import "../chunk-SSROJBD5.mjs";
|
|
41
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
42
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
43
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
44
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
45
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
46
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
47
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
48
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
49
|
+
import "../chunk-4N72FQFX.mjs";
|
|
50
|
+
|
|
51
|
+
// src/services/ViewRouteGateway.ts
|
|
52
|
+
var ViewRouteGateway = class extends RouteGateway {
|
|
53
|
+
constructor(route, routeId, views = {
|
|
54
|
+
in: view({}).fromSource,
|
|
55
|
+
out: view({}).fromSource
|
|
56
|
+
}, api = new Api()) {
|
|
57
|
+
super(route, routeId, api);
|
|
58
|
+
this.route = route;
|
|
59
|
+
this.routeId = routeId;
|
|
60
|
+
this.views = views;
|
|
61
|
+
this.api = api;
|
|
62
|
+
}
|
|
63
|
+
get(uri, options) {
|
|
64
|
+
return super.get(uri, options).then((is) => is.map((i) => this.views.in.from(i)));
|
|
65
|
+
}
|
|
66
|
+
getOne(uri, options) {
|
|
67
|
+
return super.get(uri, options).then((is) => is.first()).then((i) => this.views.in.from(i));
|
|
68
|
+
}
|
|
69
|
+
add(item) {
|
|
70
|
+
return super.add(this.views.out.from(item));
|
|
71
|
+
}
|
|
72
|
+
update(item) {
|
|
73
|
+
return super.update(this.views.out.from(item));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
ViewRouteGateway
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=ViewRouteGateway.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/services/ViewRouteGateway.ts"],"sourcesContent":["import { Api } from './Api';\nimport { RouteGateway } from './RouteGateway';\nimport { Func } from '../types/Func';\nimport { Uri } from '../types/Uri';\nimport { view } from '../utils/View';\nimport { RequestOptions } from '../http/RequestOptions';\nimport { PageList } from '../types/PageList';\nimport { Json } from '../types/Json';\nimport { Optional } from '../types/Types';\n\nexport class ViewRouteGateway extends RouteGateway {\n constructor(\n readonly route: Func<Uri>,\n readonly routeId: Func<Uri>,\n readonly views = {\n in: view({}).fromSource,\n out: view({}).fromSource,\n },\n readonly api: Api = new Api()\n ) {\n super(route, routeId, api);\n }\n\n get(uri: Uri, options?: RequestOptions): Promise<PageList<Json>> {\n return super.get(uri, options).then(is => is.map(i => this.views.in.from(i)));\n }\n\n getOne(uri: Uri, options?: RequestOptions): Promise<Optional<Json>> {\n return super\n .get(uri, options)\n .then(is => is.first())\n .then(i => this.views.in.from(i));\n }\n\n add(item: Json): Promise<Json> {\n return super.add(this.views.out.from(item));\n }\n\n update(item: Json): Promise<Json> {\n return super.update(this.views.out.from(item));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,IAAM,mBAAN,cAA+B,aAAa;AAAA,EACjD,YACW,OACA,SACA,QAAQ;AAAA,IACf,IAAI,KAAK,CAAC,CAAC,EAAE;AAAA,IACb,KAAK,KAAK,CAAC,CAAC,EAAE;AAAA,EAChB,GACS,MAAW,IAAI,IAAI,GAC5B;AACA,UAAM,OAAO,SAAS,GAAG;AARhB;AACA;AACA;AAIA;AAAA,EAGX;AAAA,EAEA,IAAI,KAAU,SAAmD;AAC/D,WAAO,MAAM,IAAI,KAAK,OAAO,EAAE,KAAK,QAAM,GAAG,IAAI,OAAK,KAAK,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;AAAA,EAC9E;AAAA,EAEA,OAAO,KAAU,SAAmD;AAClE,WAAO,MACJ,IAAI,KAAK,OAAO,EAChB,KAAK,QAAM,GAAG,MAAM,CAAC,EACrB,KAAK,OAAK,KAAK,MAAM,GAAG,KAAK,CAAC,CAAC;AAAA,EACpC;AAAA,EAEA,IAAI,MAA2B;AAC7B,WAAO,MAAM,IAAI,KAAK,MAAM,IAAI,KAAK,IAAI,CAAC;AAAA,EAC5C;AAAA,EAEA,OAAO,MAA2B;AAChC,WAAO,MAAM,OAAO,KAAK,MAAM,IAAI,KAAK,IAAI,CAAC;AAAA,EAC/C;AACF;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Clause,
|
|
3
|
+
ParathesizedClause,
|
|
4
|
+
isClause,
|
|
5
|
+
quote,
|
|
6
|
+
toClause
|
|
7
|
+
} from "../chunk-OKPGJD64.mjs";
|
|
8
|
+
import "../chunk-MDXL65W4.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
|
+
export {
|
|
18
|
+
Clause,
|
|
19
|
+
ParathesizedClause,
|
|
20
|
+
isClause,
|
|
21
|
+
quote,
|
|
22
|
+
toClause
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Clause.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Column,
|
|
3
|
+
OrderColumn,
|
|
4
|
+
PatternColumn
|
|
5
|
+
} from "../chunk-4SWYJEN5.mjs";
|
|
6
|
+
import "../chunk-OKPGJD64.mjs";
|
|
7
|
+
import "../chunk-GCY5A63A.mjs";
|
|
8
|
+
import "../chunk-MDXL65W4.mjs";
|
|
9
|
+
import "../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 "../chunk-DEFTEK45.mjs";
|
|
15
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
16
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
17
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
18
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
19
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
20
|
+
import "../chunk-4VZHB642.mjs";
|
|
21
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
22
|
+
import "../chunk-SSROJBD5.mjs";
|
|
23
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
24
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
25
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
26
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
27
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
28
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
29
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
30
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
31
|
+
import "../chunk-4N72FQFX.mjs";
|
|
32
|
+
export {
|
|
33
|
+
Column,
|
|
34
|
+
OrderColumn,
|
|
35
|
+
PatternColumn
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Column.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Count
|
|
3
|
+
} from "../chunk-RUFO75IB.mjs";
|
|
4
|
+
import "../chunk-D7UFAVDX.mjs";
|
|
5
|
+
import "../chunk-WLTLSV2I.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
|
+
export {
|
|
18
|
+
Count
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=Count.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Delete
|
|
3
|
+
} from "../chunk-OGLPG6DF.mjs";
|
|
4
|
+
import "../chunk-WLTLSV2I.mjs";
|
|
5
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
6
|
+
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
8
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
9
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
11
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
12
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
13
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
14
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
15
|
+
import "../chunk-4N72FQFX.mjs";
|
|
16
|
+
export {
|
|
17
|
+
Delete
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=Delete.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Insert
|
|
3
|
+
} from "../chunk-NPCTXURR.mjs";
|
|
4
|
+
import "../chunk-WLTLSV2I.mjs";
|
|
5
|
+
import "../chunk-OKPGJD64.mjs";
|
|
6
|
+
import "../chunk-MDXL65W4.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
|
+
Insert
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=Insert.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,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Select
|
|
3
|
+
} from "../chunk-D7UFAVDX.mjs";
|
|
4
|
+
import "../chunk-WLTLSV2I.mjs";
|
|
5
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
6
|
+
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
8
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
9
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
11
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
12
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
13
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
14
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
15
|
+
import "../chunk-4N72FQFX.mjs";
|
|
16
|
+
export {
|
|
17
|
+
Select
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=Select.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SqlQuery
|
|
3
|
+
} from "../chunk-WLTLSV2I.mjs";
|
|
4
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
5
|
+
import "../chunk-SSROJBD5.mjs";
|
|
6
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
7
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
8
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
9
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
10
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
11
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
12
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
13
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
14
|
+
import "../chunk-4N72FQFX.mjs";
|
|
15
|
+
export {
|
|
16
|
+
SqlQuery
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SqlQuery.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Update
|
|
3
|
+
} from "../chunk-2AB6ZQHC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Column
|
|
6
|
+
} from "../chunk-4SWYJEN5.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Count
|
|
9
|
+
} from "../chunk-RUFO75IB.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Delete
|
|
12
|
+
} from "../chunk-OGLPG6DF.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Insert
|
|
15
|
+
} from "../chunk-NPCTXURR.mjs";
|
|
16
|
+
import {
|
|
17
|
+
Join
|
|
18
|
+
} from "../chunk-OQNZEKWO.mjs";
|
|
19
|
+
import {
|
|
20
|
+
Select
|
|
21
|
+
} from "../chunk-D7UFAVDX.mjs";
|
|
22
|
+
import "../chunk-WLTLSV2I.mjs";
|
|
23
|
+
import {
|
|
24
|
+
Mapper,
|
|
25
|
+
mappings
|
|
26
|
+
} from "../chunk-BZOYP6X7.mjs";
|
|
27
|
+
import "../chunk-WJZFE5NE.mjs";
|
|
28
|
+
import "../chunk-OKPGJD64.mjs";
|
|
29
|
+
import {
|
|
30
|
+
toUuid
|
|
31
|
+
} from "../chunk-SJ4YFZKO.mjs";
|
|
32
|
+
import {
|
|
33
|
+
Database
|
|
34
|
+
} from "../chunk-N22QIDIK.mjs";
|
|
35
|
+
import "../chunk-GCY5A63A.mjs";
|
|
36
|
+
import "../chunk-MDXL65W4.mjs";
|
|
37
|
+
import "../chunk-LKTTPV6U.mjs";
|
|
38
|
+
import "../chunk-LGLRWA42.mjs";
|
|
39
|
+
import "../chunk-OFGI5FLG.mjs";
|
|
40
|
+
import "../chunk-SCVGZWV7.mjs";
|
|
41
|
+
import "../chunk-RS7CT7BU.mjs";
|
|
42
|
+
import "../chunk-LUHR6633.mjs";
|
|
43
|
+
import "../chunk-DEFTEK45.mjs";
|
|
44
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
45
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
46
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
47
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
48
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
49
|
+
import "../chunk-4VZHB642.mjs";
|
|
50
|
+
import {
|
|
51
|
+
toList
|
|
52
|
+
} from "../chunk-HOVTNDHS.mjs";
|
|
53
|
+
import "../chunk-SSROJBD5.mjs";
|
|
54
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
55
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
56
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
57
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
58
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
59
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
60
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
61
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
62
|
+
import "../chunk-4N72FQFX.mjs";
|
|
63
|
+
|
|
64
|
+
// src/sql/Table.ts
|
|
65
|
+
var Table = class extends Mapper {
|
|
66
|
+
map = {
|
|
67
|
+
...mappings,
|
|
68
|
+
column: (name, options) => new Column(this, name, options)
|
|
69
|
+
};
|
|
70
|
+
id = this.map.column("", { dflt: toUuid });
|
|
71
|
+
constructor(options = { startFrom: "source" }) {
|
|
72
|
+
super(options);
|
|
73
|
+
}
|
|
74
|
+
get db() {
|
|
75
|
+
return Database.Default;
|
|
76
|
+
}
|
|
77
|
+
get count() {
|
|
78
|
+
return new Count(this);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Deprecated since version 6.2. Please use map.column instead.
|
|
82
|
+
*/
|
|
83
|
+
prop = (name, options) => this.map.column(name, options);
|
|
84
|
+
select = (...columns) => new Select(this, toList(columns));
|
|
85
|
+
insert = (fields) => new Insert(this, this.out(fields));
|
|
86
|
+
update = (fields) => new Update(this, this.out(fields));
|
|
87
|
+
delete = () => new Delete(this, toList());
|
|
88
|
+
join = (t) => new Join(this, t);
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
Table
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=Table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/sql/Table.ts"],"sourcesContent":["import { Column } from './Column';\nimport { Select } from './Select';\nimport { Insert } from './Insert';\nimport { Update } from './Update';\nimport { Delete } from './Delete';\nimport { Join } from './Join';\nimport { Count } from './Count';\nimport { MapOptions, Mapper, mappings } from '../utils/Mapper';\nimport { PropertyOptions } from '../utils/Property';\nimport { toUuid } from '../types/Uuid';\nimport { Database } from '../data/Database';\nimport { toList } from '../types/List';\nimport { Json } from '../types/Json';\n\nexport class Table extends Mapper {\n protected readonly map = {\n ...mappings,\n column: <T = unknown>(name: string, options?: PropertyOptions<T>): Column => new Column(this, name, options),\n };\n\n readonly id = this.map.column('', { dflt: toUuid });\n\n constructor(options: MapOptions = { startFrom: 'source' }) {\n super(options);\n }\n\n get db(): Database {\n return Database.Default;\n }\n\n get count(): Count {\n return new Count(this);\n }\n\n /**\n * @deprecated Deprecated since version 6.2. Please use map.column instead.\n */\n prop = <T = unknown>(name: string, options?: PropertyOptions<T>): Column => this.map.column(name, options);\n\n select = (...columns: Column[]): Select => new Select(this, toList(columns));\n\n insert = (fields: Json): Insert => new Insert(this, this.out(fields));\n update = (fields: Json): Update => new Update(this, this.out(fields));\n delete = (): Delete => new Delete(this, toList());\n\n readonly join = (t: Table): Join => new Join(this, t);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,IAAM,QAAN,cAAoB,OAAO;AAAA,EACb,MAAM;AAAA,IACvB,GAAG;AAAA,IACH,QAAQ,CAAc,MAAc,YAAyC,IAAI,OAAO,MAAM,MAAM,OAAO;AAAA,EAC7G;AAAA,EAES,KAAK,KAAK,IAAI,OAAO,IAAI,EAAE,MAAM,OAAO,CAAC;AAAA,EAElD,YAAY,UAAsB,EAAE,WAAW,SAAS,GAAG;AACzD,UAAM,OAAO;AAAA,EACf;AAAA,EAEA,IAAI,KAAe;AACjB,WAAO,SAAS;AAAA,EAClB;AAAA,EAEA,IAAI,QAAe;AACjB,WAAO,IAAI,MAAM,IAAI;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA,EAKA,OAAO,CAAc,MAAc,YAAyC,KAAK,IAAI,OAAO,MAAM,OAAO;AAAA,EAEzG,SAAS,IAAI,YAA8B,IAAI,OAAO,MAAM,OAAO,OAAO,CAAC;AAAA,EAE3E,SAAS,CAAC,WAAyB,IAAI,OAAO,MAAM,KAAK,IAAI,MAAM,CAAC;AAAA,EACpE,SAAS,CAAC,WAAyB,IAAI,OAAO,MAAM,KAAK,IAAI,MAAM,CAAC;AAAA,EACpE,SAAS,MAAc,IAAI,OAAO,MAAM,OAAO,CAAC;AAAA,EAEvC,OAAO,CAAC,MAAmB,IAAI,KAAK,MAAM,CAAC;AACtD;","names":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Gateway
|
|
3
|
+
} from "../chunk-TNZJKUDY.mjs";
|
|
4
|
+
import {
|
|
5
|
+
toPageList
|
|
6
|
+
} from "../chunk-RHOK5QZR.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 "../chunk-DEFTEK45.mjs";
|
|
15
|
+
import "../chunk-WSBULPUZ.mjs";
|
|
16
|
+
import "../chunk-PR6DFFCE.mjs";
|
|
17
|
+
import "../chunk-RWGCMC6L.mjs";
|
|
18
|
+
import "../chunk-UXADDXCJ.mjs";
|
|
19
|
+
import "../chunk-FN7HN3YK.mjs";
|
|
20
|
+
import "../chunk-4VZHB642.mjs";
|
|
21
|
+
import {
|
|
22
|
+
ifDefined
|
|
23
|
+
} from "../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 {
|
|
33
|
+
isDefined
|
|
34
|
+
} from "../chunk-DEJ7A5PY.mjs";
|
|
35
|
+
import "../chunk-4N72FQFX.mjs";
|
|
36
|
+
|
|
37
|
+
// src/sql/TableGateway.ts
|
|
38
|
+
var TableGateway = class extends Gateway {
|
|
39
|
+
constructor(table, provider = table.db.provide()) {
|
|
40
|
+
super();
|
|
41
|
+
this.table = table;
|
|
42
|
+
this.provider = provider;
|
|
43
|
+
}
|
|
44
|
+
provide = ({ provider } = {}) => provider ?? this.provider;
|
|
45
|
+
all(options) {
|
|
46
|
+
return this.provide(options).query(this.table.select()).then(
|
|
47
|
+
(js) => toPageList(
|
|
48
|
+
js.map((j) => this.table.in(j)),
|
|
49
|
+
options
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
byId(id, options) {
|
|
54
|
+
return this.provide(options).query(this.table.select().where(this.table.id.is(id))).then((js) => js.first()).then((j) => ifDefined(j, this.table.in(j)));
|
|
55
|
+
}
|
|
56
|
+
exists(id, options) {
|
|
57
|
+
return this.byId(id).then((j) => isDefined(j));
|
|
58
|
+
}
|
|
59
|
+
add(item, options) {
|
|
60
|
+
return this.provide(options).query(this.table.insert(item)).then((js) => when(js.first()).not.isDefined.reject(`Could not add items with id ${item.id}`)).then((j) => this.table.in(j));
|
|
61
|
+
}
|
|
62
|
+
remove(id, options) {
|
|
63
|
+
return this.provide(options).command(this.table.delete().where(this.table.id.is(id))).then(() => true);
|
|
64
|
+
}
|
|
65
|
+
update(item, options) {
|
|
66
|
+
return this.provide(options).query(this.table.update(item).where(this.table.id.is(item.id))).then((js) => when(js.first()).not.isDefined.reject(`Could not update item with id ${item.id}`)).then((j) => this.table.in(j));
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
TableGateway
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=TableGateway.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/sql/TableGateway.ts"],"sourcesContent":["import { Table } from './Table';\nimport { PageList, PageOptions, toPageList } from '../types/PageList';\nimport { QueryProvider } from '../data/QueryProvider';\nimport { Gateway } from '../types/Gateway';\nimport { Json } from '../types/Json';\nimport { Id } from '../types/Id';\nimport { Optional } from '../types/Types';\nimport { ifDefined } from '../utils/If';\nimport { isDefined } from '../types/Is';\nimport { when } from '../validation/When';\n\nexport type TableOptions = PageOptions & { provider?: QueryProvider };\n\nexport class TableGateway<T extends Table> extends Gateway<PageOptions> {\n constructor(\n readonly table: T,\n readonly provider = table.db.provide<QueryProvider>()\n ) {\n super();\n }\n\n protected provide = ({ provider }: TableOptions = {}): QueryProvider => provider ?? this.provider;\n\n all(options?: TableOptions): Promise<PageList<Json>> {\n return this.provide(options)\n .query(this.table.select())\n .then(js =>\n toPageList(\n js.map(j => this.table.in(j)),\n options\n )\n );\n }\n\n byId(id: Id, options?: TableOptions): Promise<Optional<Json>> {\n return this.provide(options)\n .query(this.table.select().where(this.table.id.is(id)))\n .then(js => js.first())\n .then(j => ifDefined(j, this.table.in(j)));\n }\n\n exists(id: Id, options?: TableOptions): Promise<boolean> {\n return this.byId(id).then(j => isDefined(j));\n }\n\n add(item: Json, options?: TableOptions): Promise<Json> {\n return this.provide(options)\n .query(this.table.insert(item))\n .then(js => when(js.first()).not.isDefined.reject(`Could not add items with id ${item.id}`))\n .then(j => this.table.in(j));\n }\n\n remove(id: Id, options?: TableOptions): Promise<boolean> {\n return this.provide(options)\n .command(this.table.delete().where(this.table.id.is(id)))\n .then(() => true);\n }\n\n update(item: Json, options?: TableOptions): Promise<Json> {\n return this.provide(options)\n .query(this.table.update(item).where(this.table.id.is(item.id)))\n .then(js => when(js.first()).not.isDefined.reject(`Could not update item with id ${item.id}`))\n .then(j => this.table.in(j));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,IAAM,eAAN,cAA4C,QAAqB;AAAA,EACtE,YACW,OACA,WAAW,MAAM,GAAG,QAAuB,GACpD;AACA,UAAM;AAHG;AACA;AAAA,EAGX;AAAA,EAEU,UAAU,CAAC,EAAE,SAAS,IAAkB,CAAC,MAAqB,YAAY,KAAK;AAAA,EAEzF,IAAI,SAAiD;AACnD,WAAO,KAAK,QAAQ,OAAO,EACxB,MAAM,KAAK,MAAM,OAAO,CAAC,EACzB;AAAA,MAAK,QACJ;AAAA,QACE,GAAG,IAAI,OAAK,KAAK,MAAM,GAAG,CAAC,CAAC;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AAAA,EACJ;AAAA,EAEA,KAAK,IAAQ,SAAiD;AAC5D,WAAO,KAAK,QAAQ,OAAO,EACxB,MAAM,KAAK,MAAM,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,EACrD,KAAK,QAAM,GAAG,MAAM,CAAC,EACrB,KAAK,OAAK,UAAU,GAAG,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC;AAAA,EAC7C;AAAA,EAEA,OAAO,IAAQ,SAA0C;AACvD,WAAO,KAAK,KAAK,EAAE,EAAE,KAAK,OAAK,UAAU,CAAC,CAAC;AAAA,EAC7C;AAAA,EAEA,IAAI,MAAY,SAAuC;AACrD,WAAO,KAAK,QAAQ,OAAO,EACxB,MAAM,KAAK,MAAM,OAAO,IAAI,CAAC,EAC7B,KAAK,QAAM,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,UAAU,OAAO,+BAA+B,KAAK,EAAE,EAAE,CAAC,EAC1F,KAAK,OAAK,KAAK,MAAM,GAAG,CAAC,CAAC;AAAA,EAC/B;AAAA,EAEA,OAAO,IAAQ,SAA0C;AACvD,WAAO,KAAK,QAAQ,OAAO,EACxB,QAAQ,KAAK,MAAM,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,EACvD,KAAK,MAAM,IAAI;AAAA,EACpB;AAAA,EAEA,OAAO,MAAY,SAAuC;AACxD,WAAO,KAAK,QAAQ,OAAO,EACxB,MAAM,KAAK,MAAM,OAAO,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,GAAG,KAAK,EAAE,CAAC,CAAC,EAC9D,KAAK,QAAM,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,UAAU,OAAO,iCAAiC,KAAK,EAAE,EAAE,CAAC,EAC5F,KAAK,OAAK,KAAK,MAAM,GAAG,CAAC,CAAC;AAAA,EAC/B;AACF;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Update
|
|
3
|
+
} from "../chunk-2AB6ZQHC.mjs";
|
|
4
|
+
import "../chunk-WLTLSV2I.mjs";
|
|
5
|
+
import "../chunk-OKPGJD64.mjs";
|
|
6
|
+
import "../chunk-MDXL65W4.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
|
+
Update
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=Update.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=AnyKey.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
array,
|
|
3
|
+
toArray,
|
|
4
|
+
toObject
|
|
5
|
+
} from "../chunk-CO2AFYVD.mjs";
|
|
6
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
7
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
8
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
9
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
10
|
+
import "../chunk-4N72FQFX.mjs";
|
|
11
|
+
export {
|
|
12
|
+
array,
|
|
13
|
+
toArray,
|
|
14
|
+
toObject
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Array.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
asString
|
|
3
|
+
} from "../chunk-BDA5LB4S.mjs";
|
|
4
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
5
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
6
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
7
|
+
import "../chunk-4N72FQFX.mjs";
|
|
8
|
+
|
|
9
|
+
// src/types/Builder.ts
|
|
10
|
+
var builder = class _builder {
|
|
11
|
+
static state = {};
|
|
12
|
+
static singleton = (ctr, ...args) => _builder.state[asString(ctr)] ?? (_builder.state[asString(ctr)] = new ctr(...args));
|
|
13
|
+
static reset = () => {
|
|
14
|
+
_builder.state = {};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
var build = {
|
|
18
|
+
singleton: (ctr, ...args) => builder.singleton(ctr, ...args),
|
|
19
|
+
reset: () => builder.reset()
|
|
20
|
+
};
|
|
21
|
+
var singleton = (ctr, ...args) => build.singleton(ctr, ...args);
|
|
22
|
+
export {
|
|
23
|
+
build,
|
|
24
|
+
singleton
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Builder.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/Builder.ts"],"sourcesContent":["import { Constructor } from './Constructor';\nimport { asString } from './Text';\n\nclass builder {\n private static state: any = {};\n static singleton = <T>(ctr: Constructor<T>, ...args: any[]): T => builder.state[asString(ctr)] ?? (builder.state[asString(ctr)] = new ctr(...args));\n static reset = (): void => {\n builder.state = {};\n };\n}\n\nexport const build = {\n singleton: <T>(ctr: Constructor<T>, ...args: any[]): T => builder.singleton(ctr, ...args),\n reset: (): void => builder.reset(),\n};\n\nexport const singleton = <T>(ctr: Constructor<T>, ...args: any[]): T => build.singleton(ctr, ...args);\n"],"mappings":";;;;;;;;;AAGA,IAAM,UAAN,MAAM,SAAQ;AAAA,EACZ,OAAe,QAAa,CAAC;AAAA,EAC7B,OAAO,YAAY,CAAI,QAAwB,SAAmB,SAAQ,MAAM,SAAS,GAAG,CAAC,MAAM,SAAQ,MAAM,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,IAAI;AAAA,EACjJ,OAAO,QAAQ,MAAY;AACzB,aAAQ,QAAQ,CAAC;AAAA,EACnB;AACF;AAEO,IAAM,QAAQ;AAAA,EACnB,WAAW,CAAI,QAAwB,SAAmB,QAAQ,UAAU,KAAK,GAAG,IAAI;AAAA,EACxF,OAAO,MAAY,QAAQ,MAAM;AACnC;AAEO,IAAM,YAAY,CAAI,QAAwB,SAAmB,MAAM,UAAU,KAAK,GAAG,IAAI;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
meta
|
|
3
|
+
} from "../chunk-FN7HN3YK.mjs";
|
|
4
|
+
import "../chunk-4VZHB642.mjs";
|
|
5
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
6
|
+
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
8
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
9
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
11
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
12
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
13
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
14
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
15
|
+
import "../chunk-4N72FQFX.mjs";
|
|
16
|
+
|
|
17
|
+
// src/types/Cache.ts
|
|
18
|
+
var toCacheOptions = (co) => ({
|
|
19
|
+
expiresIn: co.expiresIn ?? "5m",
|
|
20
|
+
store: co.store
|
|
21
|
+
});
|
|
22
|
+
var cache = (options) => (subject) => {
|
|
23
|
+
meta(subject).set("cache", toCacheOptions(options));
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
cache,
|
|
27
|
+
toCacheOptions
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Cache.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/Cache.ts"],"sourcesContent":["import { Func } from './Func';\nimport { CacheAge } from './CacheAge';\nimport { Construct } from './Constructor';\nimport { meta } from './Meta';\n\nexport interface Store<To = any, From = any> {\n execute: (fetch: From, f: Func<Promise<To>, From>) => Promise<To>;\n}\n\nexport type CacheOptions = {\n expiresIn?: CacheAge;\n store?: Construct<Store>;\n};\n\nexport const toCacheOptions = (co: Partial<CacheOptions>): CacheOptions => ({\n expiresIn: co.expiresIn ?? '5m',\n store: co.store,\n});\n\nexport const cache =\n (options: Partial<CacheOptions>): ClassDecorator =>\n (subject: unknown): void => {\n meta(subject).set('cache', toCacheOptions(options));\n };\n"],"mappings":";;;;;;;;;;;;;;;;;AAcO,IAAM,iBAAiB,CAAC,QAA6C;AAAA,EAC1E,WAAW,GAAG,aAAa;AAAA,EAC3B,OAAO,GAAG;AACZ;AAEO,IAAM,QACX,CAAC,YACD,CAAC,YAA2B;AAC1B,OAAK,OAAO,EAAE,IAAI,SAAS,eAAe,OAAO,CAAC;AACpD;","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 "../chunk-4VZHB642.mjs";
|
|
18
|
+
import "../chunk-HOVTNDHS.mjs";
|
|
19
|
+
import "../chunk-SSROJBD5.mjs";
|
|
20
|
+
import "../chunk-CO2AFYVD.mjs";
|
|
21
|
+
import "../chunk-BDA5LB4S.mjs";
|
|
22
|
+
import "../chunk-SJGQU3OG.mjs";
|
|
23
|
+
import "../chunk-ZHXKBOK2.mjs";
|
|
24
|
+
import "../chunk-ZPNFXK7Y.mjs";
|
|
25
|
+
import "../chunk-DXQSIBC7.mjs";
|
|
26
|
+
import "../chunk-PIRWVOO2.mjs";
|
|
27
|
+
import "../chunk-DEJ7A5PY.mjs";
|
|
28
|
+
import "../chunk-4N72FQFX.mjs";
|
|
29
|
+
export {
|
|
30
|
+
cacheAge,
|
|
31
|
+
isCacheAge
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=CacheAge.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|