@thisisagile/easy 15.28.3 → 15.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-M4JCTLVV.mjs → chunk-2KKIXOMB.mjs} +3 -3
- package/dist/{chunk-CKKG2TOW.mjs → chunk-2L3GZ6NK.mjs} +2 -2
- package/dist/{chunk-3XOVUGPJ.mjs → chunk-3MOFYE2N.mjs} +5 -5
- package/dist/{chunk-CMRS457E.mjs → chunk-4ROYPQPC.mjs} +2 -2
- package/dist/{chunk-A3FHVE2F.mjs → chunk-57QV3J5N.mjs} +5 -7
- package/dist/{chunk-A3FHVE2F.mjs.map → chunk-57QV3J5N.mjs.map} +1 -1
- package/dist/{chunk-TTEGXOE6.mjs → chunk-5J3LAY32.mjs} +3 -3
- package/dist/{chunk-5SHSRD7G.mjs → chunk-624IHTEI.mjs} +9 -11
- package/dist/{chunk-5SHSRD7G.mjs.map → chunk-624IHTEI.mjs.map} +1 -1
- package/dist/{chunk-HUX5AH3U.mjs → chunk-65W3AYRE.mjs} +3 -3
- package/dist/{chunk-GDGSD3VQ.mjs → chunk-7Z3YQCXR.mjs} +3 -3
- package/dist/{chunk-Q72JVDUL.mjs → chunk-A5MC57TL.mjs} +5 -5
- package/dist/{chunk-6VHHAS6E.mjs → chunk-ARN4MTMY.mjs} +3 -3
- package/dist/{chunk-AW6C5HW2.mjs → chunk-BAXNN36F.mjs} +2 -2
- package/dist/{chunk-PHO6ASCU.mjs → chunk-C7OPGGIF.mjs} +2 -2
- package/dist/{chunk-E7LIVVCN.mjs → chunk-CJDDGEEK.mjs} +6 -8
- package/dist/{chunk-E7LIVVCN.mjs.map → chunk-CJDDGEEK.mjs.map} +1 -1
- package/dist/{chunk-LG2WONNH.mjs → chunk-DMFWWDUF.mjs} +3 -3
- package/dist/{chunk-SXEUINIJ.mjs → chunk-EB26LF5Z.mjs} +4 -4
- package/dist/{chunk-YYRW6TXZ.mjs → chunk-ELFAMVTF.mjs} +3 -3
- package/dist/{chunk-WG634V2Y.mjs → chunk-F4CWMZCV.mjs} +13 -7
- package/dist/chunk-F4CWMZCV.mjs.map +1 -0
- package/dist/{chunk-6CLWWGMG.mjs → chunk-GARRF3U7.mjs} +3 -3
- package/dist/{chunk-MDLVDMKY.mjs → chunk-GCPVSACZ.mjs} +2 -2
- package/dist/{chunk-C3NWSFLY.mjs → chunk-GJFFYHHX.mjs} +2 -2
- package/dist/{chunk-ROTH4GC6.mjs → chunk-GUSPHVF2.mjs} +2 -2
- package/dist/{chunk-5MXWESXK.mjs → chunk-H7NDGISC.mjs} +2 -2
- package/dist/{chunk-ORF3O3Q7.mjs → chunk-I2NKUYUM.mjs} +2 -2
- package/dist/{chunk-EFNL26QA.mjs → chunk-I3DRDMCS.mjs} +3 -3
- package/dist/{chunk-QAMOOHKN.mjs → chunk-I5MPU33B.mjs} +4 -4
- package/dist/{chunk-QUWX3OO6.mjs → chunk-IWLJEAQZ.mjs} +2 -2
- package/dist/{chunk-QCBB3UGW.mjs → chunk-J64VE55O.mjs} +6 -6
- package/dist/{chunk-WTXV2LSF.mjs → chunk-L7JZMM3J.mjs} +4 -4
- package/dist/{chunk-IHBFSXCI.mjs → chunk-MRIELSWP.mjs} +2 -2
- package/dist/{chunk-MAGJDA5X.mjs → chunk-NKHZO3ME.mjs} +4 -4
- package/dist/{chunk-AYWYF7P3.mjs → chunk-NOMZAVQC.mjs} +3 -3
- package/dist/{chunk-AKYA7FHU.mjs → chunk-OXVJLJIE.mjs} +2 -2
- package/dist/{chunk-LSIKOJI7.mjs → chunk-PFAEQQXA.mjs} +14 -16
- package/dist/{chunk-LSIKOJI7.mjs.map → chunk-PFAEQQXA.mjs.map} +1 -1
- package/dist/{chunk-B6WYILMJ.mjs → chunk-PWCGCUT7.mjs} +4 -6
- package/dist/{chunk-B6WYILMJ.mjs.map → chunk-PWCGCUT7.mjs.map} +1 -1
- package/dist/{chunk-4QX4EMLL.mjs → chunk-Q5ATL34D.mjs} +2 -2
- package/dist/{chunk-PGKWMBCX.mjs → chunk-Q6RSBDMM.mjs} +2 -2
- package/dist/{chunk-KON73NC7.mjs → chunk-QRLGQY7M.mjs} +3 -3
- package/dist/{chunk-Q7C342ZE.mjs → chunk-QRN4Y2QC.mjs} +8 -10
- package/dist/{chunk-Q7C342ZE.mjs.map → chunk-QRN4Y2QC.mjs.map} +1 -1
- package/dist/{chunk-7YZBPTRS.mjs → chunk-RFG5LNDQ.mjs} +3 -3
- package/dist/{chunk-5OX2J7QF.mjs → chunk-S5RHU67S.mjs} +7 -9
- package/dist/{chunk-5OX2J7QF.mjs.map → chunk-S5RHU67S.mjs.map} +1 -1
- package/dist/{chunk-5LTTK24U.mjs → chunk-SG6BDC6T.mjs} +7 -7
- package/dist/{chunk-KYSAFCRJ.mjs → chunk-TG5IPJOG.mjs} +2 -2
- package/dist/{chunk-SYHOZABJ.mjs → chunk-TQUDYF6E.mjs} +2 -2
- package/dist/{chunk-OXBQSJDF.mjs → chunk-UWNXWKBU.mjs} +33 -1
- package/dist/chunk-UWNXWKBU.mjs.map +1 -0
- package/dist/{chunk-FPB3TF7R.mjs → chunk-V7FP66LM.mjs} +2 -2
- package/dist/{chunk-K3LB2CZD.mjs → chunk-WX6UP67J.mjs} +4 -4
- package/dist/{chunk-5ETV2AVU.mjs → chunk-WYT52YAX.mjs} +6 -8
- package/dist/{chunk-5ETV2AVU.mjs.map → chunk-WYT52YAX.mjs.map} +1 -1
- package/dist/{chunk-CTRNZM37.mjs → chunk-XLFC44Y3.mjs} +5 -5
- package/dist/{chunk-CQ43DOMR.mjs → chunk-Y5WPU3ZU.mjs} +3 -3
- package/dist/{chunk-RLSYFZP4.mjs → chunk-YHL2CUBI.mjs} +2 -2
- package/dist/{chunk-DXDS2SVX.mjs → chunk-YUSOGMIJ.mjs} +5 -5
- package/dist/{chunk-2G5FT26W.mjs → chunk-YXE66GAL.mjs} +2 -2
- package/dist/{chunk-VS5ZTJXR.mjs → chunk-ZELLSP3E.mjs} +4 -6
- package/dist/{chunk-VS5ZTJXR.mjs.map → chunk-ZELLSP3E.mjs.map} +1 -1
- package/dist/{chunk-JPGOVYNI.mjs → chunk-ZJKVMRGU.mjs} +5 -5
- package/dist/data/Condition.mjs +8 -10
- package/dist/data/Database.mjs +7 -9
- package/dist/data/Field.mjs +10 -12
- package/dist/data/Field.mjs.map +1 -1
- package/dist/data/InMemoryGateway.mjs +9 -11
- package/dist/data/InMemoryGateway.mjs.map +1 -1
- package/dist/domain/Audit.d.ts +2 -5
- package/dist/domain/Audit.mjs +10 -12
- package/dist/domain/Child.mjs +10 -12
- package/dist/domain/Child.mjs.map +1 -1
- package/dist/domain/Entity.mjs +14 -16
- package/dist/domain/Entity.mjs.map +1 -1
- package/dist/domain/Repo.mjs +7 -9
- package/dist/domain/Repo.mjs.map +1 -1
- package/dist/domain/Struct.mjs +7 -9
- package/dist/domain/Typo.mjs +7 -9
- package/dist/domain/Typo.mjs.map +1 -1
- package/dist/domain/enums/Country.mjs +7 -9
- package/dist/domain/enums/Currency.mjs +9 -11
- package/dist/domain/enums/Environment.mjs +6 -8
- package/dist/domain/enums/Environment.mjs.map +1 -1
- package/dist/domain/enums/Locale.mjs +6 -8
- package/dist/domain/enums/Locale.mjs.map +1 -1
- package/dist/domain/enums/UnitOfMeasurement.mjs +7 -9
- package/dist/domain/enums/UnitOfWeight.mjs +7 -9
- package/dist/domain/structs/Address.mjs +11 -13
- package/dist/domain/structs/Address.mjs.map +1 -1
- package/dist/domain/structs/Box.mjs +10 -12
- package/dist/domain/structs/Box.mjs.map +1 -1
- package/dist/domain/structs/Dimension.mjs +10 -12
- package/dist/domain/structs/Money.mjs +9 -11
- package/dist/domain/structs/Name.mjs +8 -10
- package/dist/domain/structs/Name.mjs.map +1 -1
- package/dist/domain/structs/Weight.mjs +9 -11
- package/dist/domain/structs/Weight.mjs.map +1 -1
- package/dist/domain/values/DateTime.mjs +7 -9
- package/dist/domain/values/EAN.mjs +7 -9
- package/dist/domain/values/EAN.mjs.map +1 -1
- package/dist/domain/values/Email.mjs +7 -9
- package/dist/domain/values/Email.mjs.map +1 -1
- package/dist/domain/values/IBAN.mjs +7 -9
- package/dist/domain/values/IBAN.mjs.map +1 -1
- package/dist/domain/values/PostalCode.mjs +8 -10
- package/dist/domain/values/Slug.mjs +7 -9
- package/dist/domain/values/Slug.mjs.map +1 -1
- package/dist/domain/values/Url.mjs +7 -9
- package/dist/domain/values/Url.mjs.map +1 -1
- package/dist/health/HealthResource.mjs +16 -18
- package/dist/health/HealthResource.mjs.map +1 -1
- package/dist/health/HealthUri.mjs +8 -10
- package/dist/http/CacheControl.mjs +9 -11
- package/dist/http/ContentType.mjs +7 -9
- package/dist/http/HttpStatus.mjs +7 -9
- package/dist/http/HttpVerb.mjs +7 -9
- package/dist/http/LocalRequestStore.mjs +6 -8
- package/dist/http/LocalRequestStore.mjs.map +1 -1
- package/dist/http/OriginatedError.mjs +2 -1
- package/dist/http/OriginatedError.mjs.map +1 -1
- package/dist/http/RequestOptions.mjs +9 -11
- package/dist/http/Response.mjs +8 -10
- package/dist/http/RestResult.mjs +8 -10
- package/dist/http/Verb.mjs +13 -15
- package/dist/index.js +30 -24
- package/dist/index.js.map +1 -1
- package/dist/process/App.mjs +7 -9
- package/dist/process/App.mjs.map +1 -1
- package/dist/process/Manage.mjs +8 -10
- package/dist/process/Manage.mjs.map +1 -1
- package/dist/process/Scope.mjs +7 -9
- package/dist/process/Search.mjs +8 -10
- package/dist/process/UseCase.mjs +7 -9
- package/dist/process/UseCase.mjs.map +1 -1
- package/dist/resources/Req.mjs +7 -9
- package/dist/resources/Req.mjs.map +1 -1
- package/dist/resources/Requires.mjs +6 -8
- package/dist/resources/Requires.mjs.map +1 -1
- package/dist/resources/Route.mjs +7 -9
- package/dist/resources/Service.mjs +6 -8
- package/dist/resources/Service.mjs.map +1 -1
- package/dist/security/Jwt.mjs +6 -8
- package/dist/security/Jwt.mjs.map +1 -1
- package/dist/services/Api.mjs +16 -18
- package/dist/services/ApiGateway.mjs +19 -21
- package/dist/services/AxiosProvider.mjs +14 -16
- package/dist/services/MappedRouteGateway.mjs +24 -26
- package/dist/services/MappedRouteGateway.mjs.map +1 -1
- package/dist/services/RouteGateway.mjs +20 -22
- package/dist/services/ViewRouteGateway.mjs +22 -24
- package/dist/services/ViewRouteGateway.mjs.map +1 -1
- package/dist/sql/Clause.mjs +8 -10
- package/dist/sql/Column.mjs +10 -12
- package/dist/sql/Count.mjs +9 -11
- package/dist/sql/Delete.mjs +8 -10
- package/dist/sql/Insert.mjs +10 -12
- package/dist/sql/Select.mjs +8 -10
- package/dist/sql/SqlQuery.mjs +7 -9
- package/dist/sql/Table.mjs +20 -22
- package/dist/sql/Table.mjs.map +1 -1
- package/dist/sql/TableGateway.mjs +9 -11
- package/dist/sql/TableGateway.mjs.map +1 -1
- package/dist/sql/Update.mjs +10 -12
- package/dist/types/Array.mjs +2 -4
- package/dist/types/Builder.mjs +6 -8
- package/dist/types/Builder.mjs.map +1 -1
- package/dist/types/Cache.mjs +6 -8
- package/dist/types/Cache.mjs.map +1 -1
- package/dist/types/CacheAge.mjs +8 -10
- package/dist/types/Case.mjs +6 -8
- package/dist/types/Constructor.mjs +1 -3
- package/dist/types/Context.mjs +6 -8
- package/dist/types/Enum.mjs +6 -8
- package/dist/types/Exception.mjs +6 -8
- package/dist/types/Gateway.mjs +7 -9
- package/dist/types/Id.mjs +4 -3
- package/dist/types/Is.d.ts +2 -0
- package/dist/types/Is.mjs +4 -1
- package/dist/types/IsA.mjs +3 -3
- package/dist/types/IsEqual.mjs +7 -9
- package/dist/types/Json.mjs +6 -8
- package/dist/types/List.mjs +6 -8
- package/dist/types/Meta.mjs +6 -8
- package/dist/types/Number.mjs +7 -9
- package/dist/types/PageList.mjs +7 -9
- package/dist/types/Parser.mjs +9 -12
- package/dist/types/Parser.mjs.map +1 -1
- package/dist/types/Primitive.mjs +2 -2
- package/dist/types/Repository.mjs +7 -9
- package/dist/types/Result.mjs +6 -8
- package/dist/types/Results.mjs +6 -8
- package/dist/types/Tag.mjs +6 -8
- package/dist/types/Tag.mjs.map +1 -1
- package/dist/types/Template.mjs +6 -8
- package/dist/types/Text.mjs +6 -8
- package/dist/types/Try.mjs +6 -8
- package/dist/types/Uri.mjs +7 -9
- package/dist/types/Uuid.mjs +3 -2
- package/dist/types/Validatable.mjs +4 -4
- package/dist/types/Value.mjs +6 -8
- package/dist/utils/Convert.mjs +7 -9
- package/dist/utils/If.mjs +2 -4
- package/dist/utils/Loading.mjs +2 -1
- package/dist/utils/Loading.mjs.map +1 -1
- package/dist/utils/Mapper.mjs +10 -12
- package/dist/utils/Promise.mjs +6 -8
- package/dist/utils/Property.mjs +8 -10
- package/dist/utils/Sentence.mjs +6 -8
- package/dist/utils/Sentence.mjs.map +1 -1
- package/dist/utils/State.mjs +2 -4
- package/dist/utils/View.mjs +9 -11
- package/dist/validation/Contraints.mjs +7 -9
- package/dist/validation/Validate.mjs +6 -8
- package/dist/validation/When.mjs +6 -8
- package/package.json +2 -2
- package/src/domain/Audit.ts +9 -6
- package/src/types/Is.ts +4 -1
- package/dist/chunk-HUJHIZYS.mjs +0 -33
- package/dist/chunk-HUJHIZYS.mjs.map +0 -1
- package/dist/chunk-OXBQSJDF.mjs.map +0 -1
- package/dist/chunk-PSIJUWZT.mjs +0 -13
- package/dist/chunk-PSIJUWZT.mjs.map +0 -1
- package/dist/chunk-WG634V2Y.mjs.map +0 -1
- /package/dist/{chunk-M4JCTLVV.mjs.map → chunk-2KKIXOMB.mjs.map} +0 -0
- /package/dist/{chunk-CKKG2TOW.mjs.map → chunk-2L3GZ6NK.mjs.map} +0 -0
- /package/dist/{chunk-3XOVUGPJ.mjs.map → chunk-3MOFYE2N.mjs.map} +0 -0
- /package/dist/{chunk-CMRS457E.mjs.map → chunk-4ROYPQPC.mjs.map} +0 -0
- /package/dist/{chunk-TTEGXOE6.mjs.map → chunk-5J3LAY32.mjs.map} +0 -0
- /package/dist/{chunk-HUX5AH3U.mjs.map → chunk-65W3AYRE.mjs.map} +0 -0
- /package/dist/{chunk-GDGSD3VQ.mjs.map → chunk-7Z3YQCXR.mjs.map} +0 -0
- /package/dist/{chunk-Q72JVDUL.mjs.map → chunk-A5MC57TL.mjs.map} +0 -0
- /package/dist/{chunk-6VHHAS6E.mjs.map → chunk-ARN4MTMY.mjs.map} +0 -0
- /package/dist/{chunk-AW6C5HW2.mjs.map → chunk-BAXNN36F.mjs.map} +0 -0
- /package/dist/{chunk-PHO6ASCU.mjs.map → chunk-C7OPGGIF.mjs.map} +0 -0
- /package/dist/{chunk-LG2WONNH.mjs.map → chunk-DMFWWDUF.mjs.map} +0 -0
- /package/dist/{chunk-SXEUINIJ.mjs.map → chunk-EB26LF5Z.mjs.map} +0 -0
- /package/dist/{chunk-YYRW6TXZ.mjs.map → chunk-ELFAMVTF.mjs.map} +0 -0
- /package/dist/{chunk-6CLWWGMG.mjs.map → chunk-GARRF3U7.mjs.map} +0 -0
- /package/dist/{chunk-MDLVDMKY.mjs.map → chunk-GCPVSACZ.mjs.map} +0 -0
- /package/dist/{chunk-C3NWSFLY.mjs.map → chunk-GJFFYHHX.mjs.map} +0 -0
- /package/dist/{chunk-ROTH4GC6.mjs.map → chunk-GUSPHVF2.mjs.map} +0 -0
- /package/dist/{chunk-5MXWESXK.mjs.map → chunk-H7NDGISC.mjs.map} +0 -0
- /package/dist/{chunk-ORF3O3Q7.mjs.map → chunk-I2NKUYUM.mjs.map} +0 -0
- /package/dist/{chunk-EFNL26QA.mjs.map → chunk-I3DRDMCS.mjs.map} +0 -0
- /package/dist/{chunk-QAMOOHKN.mjs.map → chunk-I5MPU33B.mjs.map} +0 -0
- /package/dist/{chunk-QUWX3OO6.mjs.map → chunk-IWLJEAQZ.mjs.map} +0 -0
- /package/dist/{chunk-QCBB3UGW.mjs.map → chunk-J64VE55O.mjs.map} +0 -0
- /package/dist/{chunk-WTXV2LSF.mjs.map → chunk-L7JZMM3J.mjs.map} +0 -0
- /package/dist/{chunk-IHBFSXCI.mjs.map → chunk-MRIELSWP.mjs.map} +0 -0
- /package/dist/{chunk-MAGJDA5X.mjs.map → chunk-NKHZO3ME.mjs.map} +0 -0
- /package/dist/{chunk-AYWYF7P3.mjs.map → chunk-NOMZAVQC.mjs.map} +0 -0
- /package/dist/{chunk-AKYA7FHU.mjs.map → chunk-OXVJLJIE.mjs.map} +0 -0
- /package/dist/{chunk-4QX4EMLL.mjs.map → chunk-Q5ATL34D.mjs.map} +0 -0
- /package/dist/{chunk-PGKWMBCX.mjs.map → chunk-Q6RSBDMM.mjs.map} +0 -0
- /package/dist/{chunk-KON73NC7.mjs.map → chunk-QRLGQY7M.mjs.map} +0 -0
- /package/dist/{chunk-7YZBPTRS.mjs.map → chunk-RFG5LNDQ.mjs.map} +0 -0
- /package/dist/{chunk-5LTTK24U.mjs.map → chunk-SG6BDC6T.mjs.map} +0 -0
- /package/dist/{chunk-KYSAFCRJ.mjs.map → chunk-TG5IPJOG.mjs.map} +0 -0
- /package/dist/{chunk-SYHOZABJ.mjs.map → chunk-TQUDYF6E.mjs.map} +0 -0
- /package/dist/{chunk-FPB3TF7R.mjs.map → chunk-V7FP66LM.mjs.map} +0 -0
- /package/dist/{chunk-K3LB2CZD.mjs.map → chunk-WX6UP67J.mjs.map} +0 -0
- /package/dist/{chunk-CTRNZM37.mjs.map → chunk-XLFC44Y3.mjs.map} +0 -0
- /package/dist/{chunk-CQ43DOMR.mjs.map → chunk-Y5WPU3ZU.mjs.map} +0 -0
- /package/dist/{chunk-RLSYFZP4.mjs.map → chunk-YHL2CUBI.mjs.map} +0 -0
- /package/dist/{chunk-DXDS2SVX.mjs.map → chunk-YUSOGMIJ.mjs.map} +0 -0
- /package/dist/{chunk-2G5FT26W.mjs.map → chunk-YXE66GAL.mjs.map} +0 -0
- /package/dist/{chunk-JPGOVYNI.mjs.map → chunk-ZJKVMRGU.mjs.map} +0 -0
package/dist/utils/Mapper.mjs
CHANGED
|
@@ -2,20 +2,18 @@ import {
|
|
|
2
2
|
Mapper,
|
|
3
3
|
isMapping,
|
|
4
4
|
mappings
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-QRN4Y2QC.mjs";
|
|
6
|
+
import "../chunk-V7FP66LM.mjs";
|
|
7
|
+
import "../chunk-TG5IPJOG.mjs";
|
|
8
|
+
import "../chunk-TQUDYF6E.mjs";
|
|
9
|
+
import "../chunk-PFAEQQXA.mjs";
|
|
10
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
11
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
12
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
13
13
|
import "../chunk-SJGQU3OG.mjs";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
14
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
15
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
17
16
|
import "../chunk-PIRWVOO2.mjs";
|
|
18
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
19
17
|
import "../chunk-4N72FQFX.mjs";
|
|
20
18
|
export {
|
|
21
19
|
Mapper,
|
package/dist/utils/Promise.mjs
CHANGED
|
@@ -6,16 +6,14 @@ import {
|
|
|
6
6
|
tuple3,
|
|
7
7
|
tuple4,
|
|
8
8
|
tuple5
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-PFAEQQXA.mjs";
|
|
10
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
11
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
12
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
13
13
|
import "../chunk-SJGQU3OG.mjs";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
14
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
15
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
17
16
|
import "../chunk-PIRWVOO2.mjs";
|
|
18
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
19
17
|
import "../chunk-4N72FQFX.mjs";
|
|
20
18
|
export {
|
|
21
19
|
reject,
|
package/dist/utils/Property.mjs
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Property
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-TG5IPJOG.mjs";
|
|
4
|
+
import "../chunk-TQUDYF6E.mjs";
|
|
5
|
+
import "../chunk-PFAEQQXA.mjs";
|
|
6
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
7
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
8
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
9
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
10
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
11
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
13
12
|
import "../chunk-PIRWVOO2.mjs";
|
|
14
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
15
13
|
import "../chunk-4N72FQFX.mjs";
|
|
16
14
|
export {
|
|
17
15
|
Property
|
package/dist/utils/Sentence.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
text
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-PFAEQQXA.mjs";
|
|
4
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
5
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
6
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
7
7
|
import "../chunk-SJGQU3OG.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
8
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
9
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
11
10
|
import "../chunk-PIRWVOO2.mjs";
|
|
12
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
13
11
|
import "../chunk-4N72FQFX.mjs";
|
|
14
12
|
|
|
15
13
|
// src/utils/Sentence.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/Sentence.ts"],"sourcesContent":["import { Id, text, Text } from '../types';\n\nexport class Sentence implements Text {\n constructor(word: Text, pre?: Sentence, private sentence: Text[] = (pre?.sentence ?? []).concat(word)) {}\n\n toString(): string {\n return text(this.sentence.join(' ')).sentence.toString();\n }\n}\n\nclass Topic extends Sentence {\n it = new Sentence('it', this);\n anything = new Sentence('anything', this);\n id = (id: Id) => new Sentence(`id '${id}'`, this);\n your = (subject?: Text) => new Sentence(`your ${subject ?? 'item'}`, this);\n a = (subject?: Text) => new Sentence(subject ? `a ${subject}` : 'an item', this);\n an = (subject?: Text) => new Sentence(`an ${subject ?? 'item'}`, this);\n any = (subjects?: Text) => new Sentence(`any ${subjects ?? 'items'}`, this);\n}\n\nclass Verb extends Sentence {\n add = new Topic('add', this);\n check = new Topic('check', this);\n fetch = new Topic('fetch', this);\n find = new Topic('find', this);\n like = new Topic('like', this);\n process = new Topic('process', this);\n remove = new Topic('remove', this);\n translate = new Topic('translate', this);\n update = new Topic('update', this);\n validate = new Topic('validate', this);\n}\n\nclass Not extends Verb {}\n\nclass SupportVerb extends Verb {\n not = new Not('not', this);\n}\n\nclass We extends Sentence {\n could = new SupportVerb('could', this);\n did = new SupportVerb('did', this);\n\n added = new Topic('added', this);\n checked = new Topic('checked', this);\n fetched = new Topic('fetched', this);\n found = new Topic('found', this);\n liked = new Topic('liked', this);\n processed = new Topic('processed', this);\n removed = new Topic('removed', this);\n translated = new Topic('translated', this);\n updated = new Topic('updated', this);\n validated = new Topic('validated', this);\n}\n\nexport const we = new We('we');\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/utils/Sentence.ts"],"sourcesContent":["import { Id, text, Text } from '../types';\n\nexport class Sentence implements Text {\n constructor(word: Text, pre?: Sentence, private sentence: Text[] = (pre?.sentence ?? []).concat(word)) {}\n\n toString(): string {\n return text(this.sentence.join(' ')).sentence.toString();\n }\n}\n\nclass Topic extends Sentence {\n it = new Sentence('it', this);\n anything = new Sentence('anything', this);\n id = (id: Id) => new Sentence(`id '${id}'`, this);\n your = (subject?: Text) => new Sentence(`your ${subject ?? 'item'}`, this);\n a = (subject?: Text) => new Sentence(subject ? `a ${subject}` : 'an item', this);\n an = (subject?: Text) => new Sentence(`an ${subject ?? 'item'}`, this);\n any = (subjects?: Text) => new Sentence(`any ${subjects ?? 'items'}`, this);\n}\n\nclass Verb extends Sentence {\n add = new Topic('add', this);\n check = new Topic('check', this);\n fetch = new Topic('fetch', this);\n find = new Topic('find', this);\n like = new Topic('like', this);\n process = new Topic('process', this);\n remove = new Topic('remove', this);\n translate = new Topic('translate', this);\n update = new Topic('update', this);\n validate = new Topic('validate', this);\n}\n\nclass Not extends Verb {}\n\nclass SupportVerb extends Verb {\n not = new Not('not', this);\n}\n\nclass We extends Sentence {\n could = new SupportVerb('could', this);\n did = new SupportVerb('did', this);\n\n added = new Topic('added', this);\n checked = new Topic('checked', this);\n fetched = new Topic('fetched', this);\n found = new Topic('found', this);\n liked = new Topic('liked', this);\n processed = new Topic('processed', this);\n removed = new Topic('removed', this);\n translated = new Topic('translated', this);\n updated = new Topic('updated', this);\n validated = new Topic('validated', this);\n}\n\nexport const we = new We('we');\n"],"mappings":";;;;;;;;;;;;;AAEO,IAAM,WAAN,MAA+B;AAAA,EACpC,YAAY,MAAY,KAAwB,YAAoB,KAAK,YAAY,CAAC,GAAG,OAAO,IAAI,GAAG;AAAvD;AAAA,EAAwD;AAAA,EAExG,WAAmB;AACjB,WAAO,KAAK,KAAK,SAAS,KAAK,GAAG,CAAC,EAAE,SAAS,SAAS;AAAA,EACzD;AACF;AAEA,IAAM,QAAN,cAAoB,SAAS;AAAA,EAC3B,KAAK,IAAI,SAAS,MAAM,IAAI;AAAA,EAC5B,WAAW,IAAI,SAAS,YAAY,IAAI;AAAA,EACxC,KAAK,CAAC,OAAW,IAAI,SAAS,OAAO,EAAE,KAAK,IAAI;AAAA,EAChD,OAAO,CAAC,YAAmB,IAAI,SAAS,QAAQ,WAAW,MAAM,IAAI,IAAI;AAAA,EACzE,IAAI,CAAC,YAAmB,IAAI,SAAS,UAAU,KAAK,OAAO,KAAK,WAAW,IAAI;AAAA,EAC/E,KAAK,CAAC,YAAmB,IAAI,SAAS,MAAM,WAAW,MAAM,IAAI,IAAI;AAAA,EACrE,MAAM,CAAC,aAAoB,IAAI,SAAS,OAAO,YAAY,OAAO,IAAI,IAAI;AAC5E;AAEA,IAAM,OAAN,cAAmB,SAAS;AAAA,EAC1B,MAAM,IAAI,MAAM,OAAO,IAAI;AAAA,EAC3B,QAAQ,IAAI,MAAM,SAAS,IAAI;AAAA,EAC/B,QAAQ,IAAI,MAAM,SAAS,IAAI;AAAA,EAC/B,OAAO,IAAI,MAAM,QAAQ,IAAI;AAAA,EAC7B,OAAO,IAAI,MAAM,QAAQ,IAAI;AAAA,EAC7B,UAAU,IAAI,MAAM,WAAW,IAAI;AAAA,EACnC,SAAS,IAAI,MAAM,UAAU,IAAI;AAAA,EACjC,YAAY,IAAI,MAAM,aAAa,IAAI;AAAA,EACvC,SAAS,IAAI,MAAM,UAAU,IAAI;AAAA,EACjC,WAAW,IAAI,MAAM,YAAY,IAAI;AACvC;AAEA,IAAM,MAAN,cAAkB,KAAK;AAAC;AAExB,IAAM,cAAN,cAA0B,KAAK;AAAA,EAC7B,MAAM,IAAI,IAAI,OAAO,IAAI;AAC3B;AAEA,IAAM,KAAN,cAAiB,SAAS;AAAA,EACxB,QAAQ,IAAI,YAAY,SAAS,IAAI;AAAA,EACrC,MAAM,IAAI,YAAY,OAAO,IAAI;AAAA,EAEjC,QAAQ,IAAI,MAAM,SAAS,IAAI;AAAA,EAC/B,UAAU,IAAI,MAAM,WAAW,IAAI;AAAA,EACnC,UAAU,IAAI,MAAM,WAAW,IAAI;AAAA,EACnC,QAAQ,IAAI,MAAM,SAAS,IAAI;AAAA,EAC/B,QAAQ,IAAI,MAAM,SAAS,IAAI;AAAA,EAC/B,YAAY,IAAI,MAAM,aAAa,IAAI;AAAA,EACvC,UAAU,IAAI,MAAM,WAAW,IAAI;AAAA,EACnC,aAAa,IAAI,MAAM,cAAc,IAAI;AAAA,EACzC,UAAU,IAAI,MAAM,WAAW,IAAI;AAAA,EACnC,YAAY,IAAI,MAAM,aAAa,IAAI;AACzC;AAEO,IAAM,KAAK,IAAI,GAAG,IAAI;","names":[]}
|
package/dist/utils/State.mjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
State
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
3
|
+
} from "../chunk-V7FP66LM.mjs";
|
|
4
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
6
5
|
import "../chunk-PIRWVOO2.mjs";
|
|
7
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
8
6
|
import "../chunk-4N72FQFX.mjs";
|
|
9
7
|
export {
|
|
10
8
|
State
|
package/dist/utils/View.mjs
CHANGED
|
@@ -4,20 +4,18 @@ import {
|
|
|
4
4
|
toViewer,
|
|
5
5
|
view,
|
|
6
6
|
views
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-624IHTEI.mjs";
|
|
8
8
|
import "../chunk-DICMUQFL.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-2KKIXOMB.mjs";
|
|
10
|
+
import "../chunk-57QV3J5N.mjs";
|
|
11
|
+
import "../chunk-PFAEQQXA.mjs";
|
|
12
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
13
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
14
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
15
15
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
16
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
17
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
19
18
|
import "../chunk-PIRWVOO2.mjs";
|
|
20
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
21
19
|
import "../chunk-4N72FQFX.mjs";
|
|
22
20
|
export {
|
|
23
21
|
View,
|
|
@@ -17,18 +17,16 @@ import {
|
|
|
17
17
|
required,
|
|
18
18
|
rule,
|
|
19
19
|
valid
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-Y5WPU3ZU.mjs";
|
|
21
21
|
import "../chunk-ADJAEGCT.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-PFAEQQXA.mjs";
|
|
23
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
24
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
25
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
26
26
|
import "../chunk-SJGQU3OG.mjs";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
27
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
28
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
30
29
|
import "../chunk-PIRWVOO2.mjs";
|
|
31
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
32
30
|
import "../chunk-4N72FQFX.mjs";
|
|
33
31
|
export {
|
|
34
32
|
constraint,
|
|
@@ -3,16 +3,14 @@ import {
|
|
|
3
3
|
isValid,
|
|
4
4
|
validate,
|
|
5
5
|
validateReject
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-PFAEQQXA.mjs";
|
|
7
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
8
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
9
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
10
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
11
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
12
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
14
13
|
import "../chunk-PIRWVOO2.mjs";
|
|
15
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
16
14
|
import "../chunk-4N72FQFX.mjs";
|
|
17
15
|
export {
|
|
18
16
|
asResults,
|
package/dist/validation/When.mjs
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
When,
|
|
3
3
|
when
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-PFAEQQXA.mjs";
|
|
5
|
+
import "../chunk-4ROYPQPC.mjs";
|
|
6
|
+
import "../chunk-PWCGCUT7.mjs";
|
|
7
|
+
import "../chunk-Q5ATL34D.mjs";
|
|
8
8
|
import "../chunk-SJGQU3OG.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-PSIJUWZT.mjs";
|
|
9
|
+
import "../chunk-ZELLSP3E.mjs";
|
|
10
|
+
import "../chunk-UWNXWKBU.mjs";
|
|
12
11
|
import "../chunk-PIRWVOO2.mjs";
|
|
13
|
-
import "../chunk-OXBQSJDF.mjs";
|
|
14
12
|
import "../chunk-4N72FQFX.mjs";
|
|
15
13
|
export {
|
|
16
14
|
When,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.29.1",
|
|
4
4
|
"description": "Straightforward library for building domain-driven microservice architectures",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@thisisagile/easy-test": "15.
|
|
37
|
+
"@thisisagile/easy-test": "15.29.1",
|
|
38
38
|
"@types/form-urlencoded": "^4.4.0",
|
|
39
39
|
"@types/jsonwebtoken": "^9.0.6",
|
|
40
40
|
"@types/luxon": "3.4.2",
|
package/src/domain/Audit.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { Struct } from './Struct';
|
|
2
|
-
import { choose, ctx,
|
|
2
|
+
import { choose, ctx, Identity, isIdentity, Json } from '../types';
|
|
3
3
|
import { required, valid } from '../validation';
|
|
4
4
|
import { DateTime } from './values';
|
|
5
5
|
|
|
6
6
|
export class Audit extends Struct {
|
|
7
|
-
@required() readonly by:
|
|
7
|
+
@required() readonly by: Identity = { id: this.state.by?.id, user: this.state.by?.user };
|
|
8
8
|
@valid() readonly when: DateTime = new DateTime(this.state.when);
|
|
9
9
|
|
|
10
10
|
constructor(json?: Json) {
|
|
11
11
|
super(
|
|
12
12
|
choose(json)
|
|
13
13
|
.is.defined(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.else({
|
|
14
|
+
j => j,
|
|
15
|
+
j => j,
|
|
16
|
+
)
|
|
17
|
+
.else({
|
|
18
|
+
by: isIdentity(ctx.request?.identity) ? ctx.request?.identity : { id: 0, user: 'easy' },
|
|
19
|
+
when: DateTime.now.toJSON(),
|
|
20
|
+
}),
|
|
18
21
|
);
|
|
19
22
|
}
|
|
20
23
|
}
|
package/src/types/Is.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
1
|
+
import { Constructor, use } from './Constructor';
|
|
2
|
+
import { Identity } from './Identity';
|
|
2
3
|
|
|
3
4
|
export const isDefined = <T = unknown>(o?: T): o is NonNullable<T> => o !== undefined && o !== null;
|
|
4
5
|
|
|
@@ -35,6 +36,8 @@ export const isIntersecting = (o?: unknown[], values?: unknown[]): boolean => is
|
|
|
35
36
|
|
|
36
37
|
export const isError = (e: unknown): e is Error => isDefined(e) && e instanceof Error;
|
|
37
38
|
|
|
39
|
+
export const isIdentity = (by: unknown): by is Identity => use(by as Identity, b => isObject(b) && isDefined(b.id));
|
|
40
|
+
|
|
38
41
|
export const isNotPresent = (...os: unknown[]): boolean =>
|
|
39
42
|
os.some(
|
|
40
43
|
o =>
|
package/dist/chunk-HUJHIZYS.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isPrimitive
|
|
3
|
-
} from "./chunk-PSIJUWZT.mjs";
|
|
4
|
-
import {
|
|
5
|
-
isFunc
|
|
6
|
-
} from "./chunk-PIRWVOO2.mjs";
|
|
7
|
-
import {
|
|
8
|
-
isDefined
|
|
9
|
-
} from "./chunk-OXBQSJDF.mjs";
|
|
10
|
-
|
|
11
|
-
// src/types/Constructor.ts
|
|
12
|
-
var isConstructor = (c) => (isDefined(c) && isFunc(c) && c.prototype && c.prototype.constructor) === c;
|
|
13
|
-
var ofConstruct = (c, ...args) => isConstructor(c) ? new c(...args) : isFunc(c) ? c(...args) : c;
|
|
14
|
-
var toName = (subject, postfix = "") => subject?.constructor?.name?.replace(postfix, "").toLowerCase() ?? "";
|
|
15
|
-
var isPromise = (value) => {
|
|
16
|
-
return value instanceof Promise;
|
|
17
|
-
};
|
|
18
|
-
var on = (t, f) => {
|
|
19
|
-
const result = f(t);
|
|
20
|
-
return isPromise(result) ? result.then(() => t) : t;
|
|
21
|
-
};
|
|
22
|
-
var use = (t, f) => f(t);
|
|
23
|
-
var ifA = (c, t, alt) => !isPrimitive(t) && t instanceof c ? t : alt ? ifA(c, alt) : void 0;
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
isConstructor,
|
|
27
|
-
ofConstruct,
|
|
28
|
-
toName,
|
|
29
|
-
on,
|
|
30
|
-
use,
|
|
31
|
-
ifA
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=chunk-HUJHIZYS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/Constructor.ts"],"sourcesContent":["import { Get } from './Get';\nimport { isFunc } from './Func';\nimport { isDefined } from './Is';\nimport { isPrimitive } from './Primitive';\nimport { Optional } from './Types';\n\nexport type Constructor<T = unknown> = { new (...args: any[]): T };\n\nexport type Construct<Out, In = any> = Get<Out, In> | Constructor<Out>;\n\nexport const isConstructor = <T>(c?: unknown): c is Constructor<T> => (isDefined(c) && isFunc<T, unknown>(c) && c.prototype && c.prototype.constructor) === c;\n\nexport const ofConstruct = <T>(c: Construct<T>, ...args: unknown[]): T => (isConstructor<T>(c) ? new c(...args) : isFunc<T, unknown>(c) ? c(...args) : c);\n\nexport const toName = (subject?: unknown, postfix = ''): string => (subject as any)?.constructor?.name?.replace(postfix, '').toLowerCase() ?? '';\n\nconst isPromise = <T>(value: unknown): value is Promise<T> => {\n return value instanceof Promise;\n};\n\nexport const on = <T, R>(t: T, f: (t: T) => R): R extends Promise<unknown> ? Promise<T> : T => {\n const result = f(t);\n return (isPromise(result) ? result.then(() => t) : t) as R extends Promise<unknown> ? Promise<T> : T;\n};\n\nexport const use = <T, Out>(t: T, f: (t: T) => Out): Out => f(t);\n\nexport const ifA = <T>(c: Constructor<T>, t?: unknown, alt?: unknown): Optional<T> => (!isPrimitive(t) && t instanceof c ? t : alt ? ifA(c, alt) : undefined);\n\nexport type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> &\n {\n [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;\n }[Keys];\n"],"mappings":";;;;;;;;;;;AAUO,IAAM,gBAAgB,CAAI,OAAsC,UAAU,CAAC,KAAK,OAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,UAAU,iBAAiB;AAErJ,IAAM,cAAc,CAAI,MAAoB,SAAwB,cAAiB,CAAC,IAAI,IAAI,EAAE,GAAG,IAAI,IAAI,OAAmB,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI;AAEhJ,IAAM,SAAS,CAAC,SAAmB,UAAU,OAAgB,SAAiB,aAAa,MAAM,QAAQ,SAAS,EAAE,EAAE,YAAY,KAAK;AAE9I,IAAM,YAAY,CAAI,UAAwC;AAC5D,SAAO,iBAAiB;AAC1B;AAEO,IAAM,KAAK,CAAO,GAAM,MAAgE;AAC7F,QAAM,SAAS,EAAE,CAAC;AAClB,SAAQ,UAAU,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC,IAAI;AACrD;AAEO,IAAM,MAAM,CAAS,GAAM,MAA0B,EAAE,CAAC;AAExD,IAAM,MAAM,CAAI,GAAmB,GAAa,QAAgC,CAAC,YAAY,CAAC,KAAK,aAAa,IAAI,IAAI,MAAM,IAAI,GAAG,GAAG,IAAI;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/Is.ts"],"sourcesContent":["import { Constructor } from './Constructor';\n\nexport const isDefined = <T = unknown>(o?: T): o is NonNullable<T> => o !== undefined && o !== null;\n\nexport const isUndefined = (v?: unknown): v is never => v === undefined || v === null;\n\nexport const isEmpty = (o?: unknown): boolean => o === '' || o === null || o === undefined || (isArray(o) && o.length === 0);\n\nexport const isNotEmpty = <T = unknown>(o?: unknown): o is NonNullable<T> => o !== '' && o !== null && o !== undefined && (!isArray(o) || o.length > 0);\n\nexport const isString = (o?: unknown): o is string => o instanceof String || typeof o === 'string';\n\nexport const isIsoDateString = (o?: unknown): o is string =>\n isString(o) && /^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$/.test(o);\n\nexport const isBoolean = (o?: unknown): o is boolean => isDefined(o) && typeof o === 'boolean';\n\nexport const isTrue = (o?: unknown): o is true => (isFunction(o) ? isTrue(o()) : isBoolean(o) ? o : !!o);\n\nexport const isNumber = (o?: unknown): o is number => isDefined(o) && typeof o === 'number' && !Number.isNaN(o);\n\nexport const isObject = (o?: unknown): o is Record<string, unknown> => o != null && typeof o === 'object' && !isArray(o);\n\nexport const isEmptyObject = (o?: unknown): boolean => isObject(o) && Object.getOwnPropertyNames(o).length === 0;\n\nexport const isFunction = (o?: unknown): o is (...params: unknown[]) => unknown => isDefined(o) && typeof o === 'function';\n\nexport const isArray = <T = any>(o?: unknown): o is Array<T> => isDefined(o) && o instanceof Array;\n\nexport const isInstance = <T>(ctor: Constructor<T>, o?: unknown): o is T => isFunction(ctor) && o instanceof ctor;\n\nexport const isIn = (o: unknown, values: unknown[]): boolean => isArray(values) && values.some(v => v === o);\n\nexport const isIntersecting = (o?: unknown[], values?: unknown[]): boolean => isArray(o) && isArray(values) && o.some(ov => isIn(ov, values));\n\nexport const isError = (e: unknown): e is Error => isDefined(e) && e instanceof Error;\n\nexport const isNotPresent = (...os: unknown[]): boolean =>\n os.some(\n o =>\n o === null ||\n o === undefined ||\n o === '' ||\n (o instanceof Array && o.length === 0) ||\n (typeof o === 'object' && Object.getOwnPropertyNames(o).length === 0)\n );\n\nexport const isPresent = (...os: unknown[]): boolean => !isNotPresent(...os);\n"],"mappings":";AAEO,IAAM,YAAY,CAAc,MAA+B,MAAM,UAAa,MAAM;AAExF,IAAM,cAAc,CAAC,MAA4B,MAAM,UAAa,MAAM;AAE1E,IAAM,UAAU,CAAC,MAAyB,MAAM,MAAM,MAAM,QAAQ,MAAM,UAAc,QAAQ,CAAC,KAAK,EAAE,WAAW;AAEnH,IAAM,aAAa,CAAc,MAAqC,MAAM,MAAM,MAAM,QAAQ,MAAM,WAAc,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS;AAE9I,IAAM,WAAW,CAAC,MAA6B,aAAa,UAAU,OAAO,MAAM;AAEnF,IAAM,kBAAkB,CAAC,MAC9B,SAAS,CAAC,KAAK,6EAA6E,KAAK,CAAC;AAE7F,IAAM,YAAY,CAAC,MAA8B,UAAU,CAAC,KAAK,OAAO,MAAM;AAE9E,IAAM,SAAS,CAAC,MAA4B,WAAW,CAAC,IAAI,OAAO,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC;AAE/F,IAAM,WAAW,CAAC,MAA6B,UAAU,CAAC,KAAK,OAAO,MAAM,YAAY,CAAC,OAAO,MAAM,CAAC;AAEvG,IAAM,WAAW,CAAC,MAA8C,KAAK,QAAQ,OAAO,MAAM,YAAY,CAAC,QAAQ,CAAC;AAEhH,IAAM,gBAAgB,CAAC,MAAyB,SAAS,CAAC,KAAK,OAAO,oBAAoB,CAAC,EAAE,WAAW;AAExG,IAAM,aAAa,CAAC,MAAwD,UAAU,CAAC,KAAK,OAAO,MAAM;AAEzG,IAAM,UAAU,CAAU,MAA+B,UAAU,CAAC,KAAK,aAAa;AAEtF,IAAM,aAAa,CAAI,MAAsB,MAAwB,WAAW,IAAI,KAAK,aAAa;AAEtG,IAAM,OAAO,CAAC,GAAY,WAA+B,QAAQ,MAAM,KAAK,OAAO,KAAK,OAAK,MAAM,CAAC;AAEpG,IAAM,iBAAiB,CAAC,GAAe,WAAgC,QAAQ,CAAC,KAAK,QAAQ,MAAM,KAAK,EAAE,KAAK,QAAM,KAAK,IAAI,MAAM,CAAC;AAErI,IAAM,UAAU,CAAC,MAA2B,UAAU,CAAC,KAAK,aAAa;AAEzE,IAAM,eAAe,IAAI,OAC9B,GAAG;AAAA,EACD,OACE,MAAM,QACN,MAAM,UACN,MAAM,MACL,aAAa,SAAS,EAAE,WAAW,KACnC,OAAO,MAAM,YAAY,OAAO,oBAAoB,CAAC,EAAE,WAAW;AACvE;AAEK,IAAM,YAAY,IAAI,OAA2B,CAAC,aAAa,GAAG,EAAE;","names":[]}
|
package/dist/chunk-PSIJUWZT.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isIn
|
|
3
|
-
} from "./chunk-OXBQSJDF.mjs";
|
|
4
|
-
|
|
5
|
-
// src/types/Primitive.ts
|
|
6
|
-
var isPrimitive = (v) => {
|
|
7
|
-
return v === null || v === void 0 || isIn(typeof v, ["string", "number", "bigint", "boolean", "symbol"]);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
isPrimitive
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=chunk-PSIJUWZT.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/Primitive.ts"],"sourcesContent":["import { isIn } from './Is';\n\nexport type Primitive = string | number | bigint | boolean | symbol | null | undefined;\n\nexport const isPrimitive = (v?: unknown): v is Primitive => {\n return v === null || v === undefined || isIn(typeof v, ['string', 'number', 'bigint', 'boolean', 'symbol']);\n};\n"],"mappings":";;;;;AAIO,IAAM,cAAc,CAAC,MAAgC;AAC1D,SAAO,MAAM,QAAQ,MAAM,UAAa,KAAK,OAAO,GAAG,CAAC,UAAU,UAAU,UAAU,WAAW,QAAQ,CAAC;AAC5G;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/domain/Audit.ts"],"sourcesContent":["import { Struct } from './Struct';\nimport { choose, ctx, Id, Json } from '../types';\nimport { required, valid } from '../validation';\nimport { DateTime } from './values';\n\nexport class Audit extends Struct {\n @required() readonly by: { id: Id; user: string } = { id: this.state.by.id, user: this.state.by.user };\n @valid() readonly when: DateTime = new DateTime(this.state.when);\n\n constructor(json?: Json) {\n super(\n choose(json)\n .is.defined(\n j => j,\n j => j\n )\n .else({ by: ctx.request?.identity ?? { id: 0, user: 'easy' }, when: DateTime.now.toJSON() })\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAKO,IAAM,QAAN,cAAoB,OAAO;AAAA,EACX,KAA+B,EAAE,IAAI,KAAK,MAAM,GAAG,IAAI,MAAM,KAAK,MAAM,GAAG,KAAK;AAAA,EACnF,OAAiB,IAAI,SAAS,KAAK,MAAM,IAAI;AAAA,EAE/D,YAAY,MAAa;AACvB;AAAA,MACE,OAAO,IAAI,EACR,GAAG;AAAA,QACF,OAAK;AAAA,QACL,OAAK;AAAA,MACP,EACC,KAAK,EAAE,IAAI,IAAI,SAAS,YAAY,EAAE,IAAI,GAAG,MAAM,OAAO,GAAG,MAAM,SAAS,IAAI,OAAO,EAAE,CAAC;AAAA,IAC/F;AAAA,EACF;AACF;AAbuB;AAAA,EAApB,SAAS;AAAA,GADC,MACU;AACH;AAAA,EAAjB,MAAM;AAAA,GAFI,MAEO;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|