@thisisagile/easy 17.20.1 → 17.20.4
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-M456CJK4.mjs → chunk-47V3G3KC.mjs} +2 -2
- package/dist/{chunk-PVWD7L7K.mjs → chunk-4MWG7HLF.mjs} +2 -2
- package/dist/{chunk-3B4UXDOZ.mjs → chunk-5CCBFBUA.mjs} +2 -2
- package/dist/{chunk-RTTVCEWR.mjs → chunk-C6FPTXGL.mjs} +2 -2
- package/dist/{chunk-VZYOBAK7.mjs → chunk-COLGDJXC.mjs} +3 -3
- package/dist/{chunk-WVYZIPWC.mjs → chunk-D3ZOWGOD.mjs} +4 -4
- package/dist/{chunk-4U4PPZWS.mjs → chunk-GNY3BVOB.mjs} +2 -2
- package/dist/{chunk-DXXBPAXT.mjs → chunk-JRA27RR5.mjs} +2 -2
- package/dist/{chunk-FI3X2XXY.mjs → chunk-LIPK3XUE.mjs} +6 -6
- package/dist/{chunk-ZDGQPZ6G.mjs → chunk-LXCI7XE5.mjs} +4 -4
- package/dist/{chunk-K7NZINEX.mjs → chunk-MFKAXIYD.mjs} +2 -2
- package/dist/{chunk-S5I6XCJK.mjs → chunk-PIRR2IPA.mjs} +3 -3
- package/dist/{chunk-LXJTNB3X.mjs → chunk-Q76PZB4S.mjs} +5 -5
- package/dist/{chunk-3MDXTFJG.mjs → chunk-R75ROHXF.mjs} +4 -4
- package/dist/{chunk-AYPE2G3T.mjs → chunk-SC36TKG3.mjs} +2 -2
- package/dist/{chunk-BQ2N2Y7O.mjs → chunk-TUK5OWH6.mjs} +3 -3
- package/dist/{chunk-5RL5STCD.mjs → chunk-UAN6CCEA.mjs} +2 -2
- package/dist/{chunk-XH47BBYI.mjs → chunk-YCSZEXBK.mjs} +5 -5
- package/dist/{chunk-TRIKRGDF.mjs → chunk-ZEBWWW4F.mjs} +40 -34
- package/dist/chunk-ZEBWWW4F.mjs.map +1 -0
- package/dist/{chunk-Q5LRJWPK.mjs → chunk-ZJXJIGXG.mjs} +2 -2
- package/dist/data/InMemoryGateway.mjs +4 -4
- package/dist/domain/Audit.mjs +6 -6
- package/dist/domain/Child.mjs +4 -4
- package/dist/domain/DateTime.mjs +3 -3
- package/dist/domain/Entity.mjs +6 -6
- package/dist/domain/Repo.mjs +5 -5
- package/dist/domain/Struct.mjs +3 -3
- package/dist/domain/Typo.mjs +3 -3
- package/dist/http/CacheControl.mjs +4 -4
- package/dist/http/RestResult.mjs +3 -3
- package/dist/http/toResponse.mjs +4 -4
- package/dist/index.js +36 -30
- package/dist/index.js.map +1 -1
- package/dist/process/Manage.mjs +4 -4
- package/dist/process/Search.mjs +4 -4
- package/dist/resources/Req.mjs +3 -3
- package/dist/services/Api.mjs +8 -8
- package/dist/services/ApiGateway.mjs +11 -11
- package/dist/services/AxiosProvider.mjs +7 -7
- package/dist/services/MappedRouteGateway.mjs +12 -12
- package/dist/services/RouteGateway.mjs +12 -12
- package/dist/services/ViewRouteGateway.mjs +14 -14
- package/dist/sql/Column.mjs +3 -3
- package/dist/sql/Table.mjs +3 -3
- package/dist/sql/TableGateway.mjs +4 -4
- package/dist/types/CacheAge.mjs +4 -4
- package/dist/types/Case.d.ts +16 -8
- package/dist/types/Case.mjs +2 -2
- package/dist/types/Gateway.mjs +2 -2
- package/dist/types/IsEqual.mjs +3 -3
- package/dist/types/Number.mjs +3 -3
- package/dist/types/PageList.mjs +3 -3
- package/dist/types/Parser.mjs +2 -2
- package/dist/types/Repository.mjs +2 -2
- package/dist/types/Try.mjs +2 -2
- package/dist/types/Uri.mjs +2 -2
- package/dist/utils/View.mjs +5 -5
- package/dist/validation/Contraints.mjs +3 -3
- package/dist/validation/Validate.mjs +2 -2
- package/dist/validation/When.mjs +2 -2
- package/package.json +1 -1
- package/src/types/Case.ts +38 -35
- package/dist/chunk-TRIKRGDF.mjs.map +0 -1
- /package/dist/{chunk-M456CJK4.mjs.map → chunk-47V3G3KC.mjs.map} +0 -0
- /package/dist/{chunk-PVWD7L7K.mjs.map → chunk-4MWG7HLF.mjs.map} +0 -0
- /package/dist/{chunk-3B4UXDOZ.mjs.map → chunk-5CCBFBUA.mjs.map} +0 -0
- /package/dist/{chunk-RTTVCEWR.mjs.map → chunk-C6FPTXGL.mjs.map} +0 -0
- /package/dist/{chunk-VZYOBAK7.mjs.map → chunk-COLGDJXC.mjs.map} +0 -0
- /package/dist/{chunk-WVYZIPWC.mjs.map → chunk-D3ZOWGOD.mjs.map} +0 -0
- /package/dist/{chunk-4U4PPZWS.mjs.map → chunk-GNY3BVOB.mjs.map} +0 -0
- /package/dist/{chunk-DXXBPAXT.mjs.map → chunk-JRA27RR5.mjs.map} +0 -0
- /package/dist/{chunk-FI3X2XXY.mjs.map → chunk-LIPK3XUE.mjs.map} +0 -0
- /package/dist/{chunk-ZDGQPZ6G.mjs.map → chunk-LXCI7XE5.mjs.map} +0 -0
- /package/dist/{chunk-K7NZINEX.mjs.map → chunk-MFKAXIYD.mjs.map} +0 -0
- /package/dist/{chunk-S5I6XCJK.mjs.map → chunk-PIRR2IPA.mjs.map} +0 -0
- /package/dist/{chunk-LXJTNB3X.mjs.map → chunk-Q76PZB4S.mjs.map} +0 -0
- /package/dist/{chunk-3MDXTFJG.mjs.map → chunk-R75ROHXF.mjs.map} +0 -0
- /package/dist/{chunk-AYPE2G3T.mjs.map → chunk-SC36TKG3.mjs.map} +0 -0
- /package/dist/{chunk-BQ2N2Y7O.mjs.map → chunk-TUK5OWH6.mjs.map} +0 -0
- /package/dist/{chunk-5RL5STCD.mjs.map → chunk-UAN6CCEA.mjs.map} +0 -0
- /package/dist/{chunk-XH47BBYI.mjs.map → chunk-YCSZEXBK.mjs.map} +0 -0
- /package/dist/{chunk-Q5LRJWPK.mjs.map → chunk-ZJXJIGXG.mjs.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-UYDZZAEK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
choose
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
11
11
|
import {
|
|
12
12
|
isResults
|
|
13
13
|
} from "./chunk-KYQULNU4.mjs";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
rest,
|
|
53
53
|
isRestResult
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-47V3G3KC.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
choose
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isArray,
|
|
6
6
|
isObject
|
|
@@ -20,4 +20,4 @@ var isEqual = (one, another) => choose([one, another]).case(([o, a]) => o === a,
|
|
|
20
20
|
export {
|
|
21
21
|
isEqual
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-4MWG7HLF.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-47V3G3KC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toHttpStatus
|
|
6
6
|
} from "./chunk-H27UMLDT.mjs";
|
|
@@ -17,4 +17,4 @@ function toResponse(status, body, headers) {
|
|
|
17
17
|
export {
|
|
18
18
|
toResponse
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-5CCBFBUA.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AxiosProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YCSZEXBK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpVerb
|
|
6
6
|
} from "./chunk-KFSHBLFI.mjs";
|
|
@@ -76,4 +76,4 @@ export {
|
|
|
76
76
|
Api,
|
|
77
77
|
api
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-C6FPTXGL.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toPageList
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JRA27RR5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
choose
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolve
|
|
9
9
|
} from "./chunk-PKILDKWU.mjs";
|
|
@@ -45,4 +45,4 @@ var Search = class {
|
|
|
45
45
|
export {
|
|
46
46
|
Search
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-COLGDJXC.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Exception
|
|
3
|
-
} from "./chunk-KXOBVHGI.mjs";
|
|
4
1
|
import {
|
|
5
2
|
reject
|
|
6
3
|
} from "./chunk-PKILDKWU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Exception
|
|
6
|
+
} from "./chunk-KXOBVHGI.mjs";
|
|
7
7
|
|
|
8
8
|
// src/types/Repository.ts
|
|
9
9
|
var Repository = class {
|
|
@@ -48,4 +48,4 @@ var Repository = class {
|
|
|
48
48
|
export {
|
|
49
49
|
Repository
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-D3ZOWGOD.mjs.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
tryTo,
|
|
7
7
|
validate
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
9
9
|
import {
|
|
10
10
|
text
|
|
11
11
|
} from "./chunk-3Y7X2UQ6.mjs";
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
maxLength,
|
|
74
74
|
rule
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-GNY3BVOB.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
choose
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
List,
|
|
6
6
|
isList,
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
toPageList,
|
|
171
171
|
asPageList
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-JRA27RR5.mjs.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isEqual
|
|
3
|
-
} from "./chunk-PVWD7L7K.mjs";
|
|
4
1
|
import {
|
|
5
2
|
traverse
|
|
6
3
|
} from "./chunk-SSROJBD5.mjs";
|
|
4
|
+
import {
|
|
5
|
+
isEqual
|
|
6
|
+
} from "./chunk-4MWG7HLF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isPageList,
|
|
9
9
|
toPageList
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JRA27RR5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
asJson,
|
|
13
13
|
json
|
|
14
14
|
} from "./chunk-IANSP3JJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
choose
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
18
18
|
import {
|
|
19
19
|
isEnumConstructor
|
|
20
20
|
} from "./chunk-HCIL5KUZ.mjs";
|
|
@@ -102,4 +102,4 @@ export {
|
|
|
102
102
|
view,
|
|
103
103
|
views
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-LIPK3XUE.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Exception
|
|
3
|
-
} from "./chunk-KXOBVHGI.mjs";
|
|
4
1
|
import {
|
|
5
2
|
reject
|
|
6
3
|
} from "./chunk-PKILDKWU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Exception
|
|
6
|
+
} from "./chunk-KXOBVHGI.mjs";
|
|
7
7
|
|
|
8
8
|
// src/types/Gateway.ts
|
|
9
9
|
var Gateway = class {
|
|
@@ -42,4 +42,4 @@ var Gateway = class {
|
|
|
42
42
|
export {
|
|
43
43
|
Gateway
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-LXCI7XE5.mjs.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-IANSP3JJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
validate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isDefined
|
|
9
9
|
} from "./chunk-DEJ7A5PY.mjs";
|
|
@@ -37,4 +37,4 @@ export {
|
|
|
37
37
|
Struct,
|
|
38
38
|
isStruct
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-MFKAXIYD.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiGateway
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R75ROHXF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Api
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C6FPTXGL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-H27UMLDT.mjs";
|
|
@@ -57,4 +57,4 @@ var RouteGateway = class extends ApiGateway {
|
|
|
57
57
|
export {
|
|
58
58
|
RouteGateway
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-PIRR2IPA.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
required,
|
|
3
3
|
valid
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GNY3BVOB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DateTime
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UAN6CCEA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Struct
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MFKAXIYD.mjs";
|
|
11
11
|
import {
|
|
12
12
|
choose
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
14
14
|
import {
|
|
15
15
|
ctx
|
|
16
16
|
} from "./chunk-YGKMN5UC.mjs";
|
|
@@ -47,4 +47,4 @@ __decorateClass([
|
|
|
47
47
|
export {
|
|
48
48
|
Audit
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-Q76PZB4S.mjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C6FPTXGL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Gateway
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LXCI7XE5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
toPageList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JRA27RR5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
use
|
|
12
12
|
} from "./chunk-ZPNFXK7Y.mjs";
|
|
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
|
|
|
43
43
|
export {
|
|
44
44
|
ApiGateway
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-R75ROHXF.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryTo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
asString
|
|
6
6
|
} from "./chunk-BDA5LB4S.mjs";
|
|
@@ -17,4 +17,4 @@ var asNumber = (n, alt) => tryTo(() => asString(n)).map((s) => parseInt(s)).filt
|
|
|
17
17
|
export {
|
|
18
18
|
asNumber
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-SC36TKG3.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asNumber
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SC36TKG3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
choose
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
asString
|
|
9
9
|
} from "./chunk-BDA5LB4S.mjs";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
cacheAge,
|
|
55
55
|
isCacheAge
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-TUK5OWH6.mjs.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
choose,
|
|
9
9
|
tryTo
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Value
|
|
13
13
|
} from "./chunk-WSBULPUZ.mjs";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
isDateTime,
|
|
140
140
|
dt
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-UAN6CCEA.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5CCBFBUA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isRestResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-47V3G3KC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-H27UMLDT.mjs";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-DKTEKZ4O.mjs";
|
|
13
13
|
import {
|
|
14
14
|
cacheAge
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TUK5OWH6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
choose
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
19
19
|
import {
|
|
20
20
|
toResult
|
|
21
21
|
} from "./chunk-BGSOJQAU.mjs";
|
|
@@ -53,4 +53,4 @@ var AxiosProvider = class {
|
|
|
53
53
|
export {
|
|
54
54
|
AxiosProvider
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-YCSZEXBK.mjs.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
toResult
|
|
10
10
|
} from "./chunk-BGSOJQAU.mjs";
|
|
11
|
-
import {
|
|
12
|
-
Exception
|
|
13
|
-
} from "./chunk-KXOBVHGI.mjs";
|
|
14
11
|
import {
|
|
15
12
|
reject,
|
|
16
13
|
resolve
|
|
17
14
|
} from "./chunk-PKILDKWU.mjs";
|
|
15
|
+
import {
|
|
16
|
+
Exception
|
|
17
|
+
} from "./chunk-KXOBVHGI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
isValue
|
|
20
20
|
} from "./chunk-WSBULPUZ.mjs";
|
|
@@ -162,52 +162,56 @@ var CaseBuilder = class {
|
|
|
162
162
|
constructor(v) {
|
|
163
163
|
this.v = v;
|
|
164
164
|
}
|
|
165
|
-
case(pred, out) {
|
|
166
|
-
return new Case(this.v).case(pred, out);
|
|
167
|
-
}
|
|
168
|
-
type(guard, out) {
|
|
169
|
-
return new Case(this.v).type(guard, out);
|
|
170
|
-
}
|
|
171
|
-
equals(value, out) {
|
|
172
|
-
return new Case(this.v).equals(value, out);
|
|
173
|
-
}
|
|
174
165
|
is = {
|
|
175
166
|
defined: (prop, out) => new Case(this.v).case(isDefined(prop(this.v)), out),
|
|
176
167
|
empty: (prop, out) => new Case(this.v).case(isEmpty(prop(this.v)), out),
|
|
177
168
|
valid: (prop, out) => new Case(this.v).case(validate(prop(this.v)).isValid, out),
|
|
169
|
+
in: (prop, out) => new Case(this.v).case(ofGet(prop, this.v).includes(this.v), out),
|
|
178
170
|
not: {
|
|
179
171
|
defined: (prop, out) => new Case(this.v).case(!isDefined(prop(this.v)), out),
|
|
180
172
|
empty: (prop, out) => new Case(this.v).case(!isEmpty(prop(this.v)), out),
|
|
181
|
-
valid: (prop, out) => new Case(this.v).case(!validate(prop(this.v)).isValid, out)
|
|
173
|
+
valid: (prop, out) => new Case(this.v).case(!validate(prop(this.v)).isValid, out),
|
|
174
|
+
in: (prop, out) => new Case(this.v).case(!ofGet(prop, this.v).includes(this.v), out)
|
|
182
175
|
}
|
|
183
176
|
};
|
|
184
177
|
if = this.is;
|
|
185
|
-
};
|
|
186
|
-
var Case = class _Case {
|
|
187
|
-
constructor(value, outcome) {
|
|
188
|
-
this.value = value;
|
|
189
|
-
this.outcome = outcome;
|
|
190
|
-
}
|
|
191
178
|
case(pred, out) {
|
|
192
|
-
return
|
|
179
|
+
return new Case(this.v).case(pred, out);
|
|
193
180
|
}
|
|
194
181
|
type(guard, out) {
|
|
195
|
-
return
|
|
182
|
+
return new Case(this.v).type(guard, out);
|
|
196
183
|
}
|
|
197
184
|
equals(value, out) {
|
|
198
|
-
return this.
|
|
185
|
+
return new Case(this.v).equals(value, out);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
var Case = class _Case {
|
|
189
|
+
constructor(value, outcome) {
|
|
190
|
+
this.value = value;
|
|
191
|
+
this.outcome = outcome;
|
|
199
192
|
}
|
|
200
193
|
is = {
|
|
201
194
|
defined: (prop, out) => new _Case(this.value).case(isDefined(prop(this.value)), out),
|
|
202
195
|
empty: (prop, out) => new _Case(this.value).case(isEmpty(prop(this.value)), out),
|
|
203
196
|
valid: (prop, out) => new _Case(this.value).case(validate(prop(this.value)).isValid, out),
|
|
197
|
+
in: (prop, out) => new _Case(this.value).case(ofGet(prop, this.value).includes(this.value), out),
|
|
204
198
|
not: {
|
|
205
199
|
defined: (prop, out) => new _Case(this.value).case(!isDefined(prop(this.value)), out),
|
|
206
200
|
empty: (prop, out) => new _Case(this.value).case(!isEmpty(prop(this.value)), out),
|
|
207
|
-
valid: (prop, out) => new _Case(this.value).case(!validate(prop(this.value)).isValid, out)
|
|
201
|
+
valid: (prop, out) => new _Case(this.value).case(!validate(prop(this.value)).isValid, out),
|
|
202
|
+
in: (prop, out) => new _Case(this.value).case(!ofGet(prop, this.value).includes(this.value), out)
|
|
208
203
|
}
|
|
209
204
|
};
|
|
210
205
|
if = this.is;
|
|
206
|
+
case(pred, out) {
|
|
207
|
+
return tryTo(pred, this.value).is.true().map(() => ofGet(out, this.value)).map((res) => new Found(this.value, res)).or(this);
|
|
208
|
+
}
|
|
209
|
+
type(guard, out) {
|
|
210
|
+
return tryTo(guard, this.value).is.true().map(() => out(this.value)).map((res) => new Found(this.value, res)).or(this);
|
|
211
|
+
}
|
|
212
|
+
equals(value, out) {
|
|
213
|
+
return this.case(this.value === value, out);
|
|
214
|
+
}
|
|
211
215
|
else(alt) {
|
|
212
216
|
return ofGet(alt, this.value);
|
|
213
217
|
}
|
|
@@ -218,26 +222,28 @@ var Found = class extends Case {
|
|
|
218
222
|
this.value = value;
|
|
219
223
|
this.outcome = outcome;
|
|
220
224
|
}
|
|
221
|
-
case(pred, out) {
|
|
222
|
-
return this;
|
|
223
|
-
}
|
|
224
|
-
type(guard, out) {
|
|
225
|
-
return this;
|
|
226
|
-
}
|
|
227
|
-
equals(value, out) {
|
|
228
|
-
return this;
|
|
229
|
-
}
|
|
230
225
|
is = {
|
|
231
226
|
defined: (_prop, _out) => this,
|
|
232
227
|
empty: (_prop, _out) => this,
|
|
233
228
|
valid: (_prop, _out) => this,
|
|
229
|
+
in: (_prop, _out) => this,
|
|
234
230
|
not: {
|
|
235
231
|
defined: (_prop, _out) => this,
|
|
236
232
|
empty: (_prop, _out) => this,
|
|
237
|
-
valid: (_prop, _out) => this
|
|
233
|
+
valid: (_prop, _out) => this,
|
|
234
|
+
in: (_prop, _out) => this
|
|
238
235
|
}
|
|
239
236
|
};
|
|
240
237
|
if = this.is;
|
|
238
|
+
case(pred, out) {
|
|
239
|
+
return this;
|
|
240
|
+
}
|
|
241
|
+
type(guard, out) {
|
|
242
|
+
return this;
|
|
243
|
+
}
|
|
244
|
+
equals(value, out) {
|
|
245
|
+
return this;
|
|
246
|
+
}
|
|
241
247
|
else(alt) {
|
|
242
248
|
return this.outcome;
|
|
243
249
|
}
|
|
@@ -312,4 +318,4 @@ export {
|
|
|
312
318
|
tryTo,
|
|
313
319
|
choose
|
|
314
320
|
};
|
|
315
|
-
//# sourceMappingURL=chunk-
|
|
321
|
+
//# sourceMappingURL=chunk-ZEBWWW4F.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/Try.ts","../src/types/Case.ts","../src/validation/Validate.ts","../src/validation/When.ts"],"sourcesContent":["import { isDefined, isEmpty, isTrue } from './Is';\nimport { validate } from '../validation/Validate';\nimport { Construct, Constructor, ofConstruct } from './Constructor';\nimport { Validatable } from './Validatable';\nimport { Get, ofGet } from './Get';\nimport { Func } from './Func';\nimport { Optional } from './Types';\n\nexport abstract class Try<T = unknown> implements Validatable {\n is = {\n defined: (prop?: Func<unknown, T>): Try<T> => this.filter(v => isDefined(prop ? prop(v) : v)),\n empty: (prop?: Func<unknown, T>): Try<T> => this.filter(v => isEmpty(prop ? prop(v) : v)),\n valid: (prop?: Func<unknown, T>): Try<T> => this.filter(v => validate(prop ? prop(v) : v).isValid),\n true: (prop?: Func<unknown, T>): Try<T> => this.filter(v => isTrue(prop ? prop(v) : v)),\n false: (prop?: Func<unknown, T>): Try<T> => this.filter(v => !isTrue(prop ? prop(v) : v)),\n not: {\n defined: (prop?: Func<unknown, T>): Try<T> => this.filter(v => !isDefined(prop ? prop(v) : v)),\n empty: (prop?: Func<unknown, T>): Try<T> => this.filter(v => !isEmpty(prop ? prop(v) : v)),\n valid: (prop?: Func<unknown, T>): Try<T> => this.filter(v => !validate(prop ? prop(v) : v).isValid),\n },\n };\n\n if = this.is;\n\n abstract get value(): T;\n\n abstract get error(): Error;\n\n abstract get isValid(): boolean;\n\n static of = <T>(c: Get<T | Try<T>>, ...args: unknown[]): Try<T> => {\n try {\n const out = ofGet(c, ...args);\n return new Success(out instanceof Try ? out.value : out);\n } catch (e) {\n return new Failure(e as Error);\n }\n };\n\n abstract map<U>(f: Func<U | Try<U>, T>): Try<U>;\n\n abstract recover(f: Func<T | Try<T>, Error>): Try<T>;\n\n abstract recoverFrom(type: Constructor<Error>, f: Func<T | Try<T>, Error>): Try<T>;\n\n abstract accept(f: Func<void, T>): Try<T>;\n\n abstract filter(predicate: Func<boolean, T>): Try<T>;\n\n abstract or(value: Get<T>): T;\n\n abstract orElse(value?: Get<T>): Optional<T>;\n\n abstract orThrow(error: Construct<Error>): T;\n}\n\nclass Success<T> extends Try<T> {\n constructor(readonly value: T) {\n super();\n }\n\n get error(): Error {\n throw new Error('No error found');\n }\n\n get isValid(): boolean {\n return true;\n }\n\n map<U>(f: Func<U | Try<U>, T>): Try<U> {\n return tryTo<U>(f, this.value);\n }\n\n recover(f: Func<T | Try<T>, Error>): Try<T> {\n return this;\n }\n\n recoverFrom(type: Constructor<Error>, f: Func<T | Try<T>, Error>): Try<T> {\n return this;\n }\n\n accept(f: Func<void, T>): Try<T> {\n return tryTo(() => {\n f(this.value);\n return this;\n });\n }\n\n filter(predicate: Func<boolean, T>): Try<T> {\n return tryTo(() => {\n if (predicate(this.value)) return this;\n throw new Error(`Applying filter(${predicate.toString()}) failed.`);\n });\n }\n\n or(value: Get<T>): T {\n return this.value;\n }\n\n orElse(value?: Get<T>): Optional<T> {\n return this.value;\n }\n\n orThrow(_error: Construct<Error>): T {\n return this.value;\n }\n}\n\nclass Failure<T> extends Try<T> {\n constructor(readonly error: Error) {\n super();\n }\n\n get value(): T {\n throw this.error;\n }\n\n get isValid(): boolean {\n return false;\n }\n\n map<U>(f: Func<U | Try<U>, T>): Try<U> {\n return new Failure<U>(this.error);\n }\n\n recover<U>(f: Func<U | Try<U>, Error>): Try<U> {\n return tryTo<U>(f, this.error);\n }\n\n recoverFrom<U>(type: Constructor<Error>, f: Func<T | Try<T>, Error>): Try<T> {\n return tryTo(() => (this.error instanceof type ? this.recover(f) : this));\n }\n\n accept(f: Func<void, T>): Try<T> {\n return this;\n }\n\n filter(predicate: Func<boolean, T>): Try<T> {\n return this;\n }\n\n or(value: Get<T>): T {\n return ofGet(value);\n }\n\n orElse(value?: Get<T>): Optional<T> {\n return ofGet(value);\n }\n\n orThrow(error: Construct<Error>): T {\n throw ofConstruct(error);\n }\n}\n\nexport const tryTo = <T>(c: Get<T | Try<T>>, ...args: unknown[]) => Try.of<T>(c, ...args);\n","import { Get, ofGet, Predicate } from './Get';\nimport { TypeGuard } from './TypeGuard';\nimport { Func } from './Func';\nimport { isDefined, isEmpty } from './Is';\nimport { validate } from '../validation/Validate';\nimport { tryTo } from './Try';\n\nclass CaseBuilder<V> {\n is = {\n defined: <T>(prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(isDefined(prop(this.v)), out),\n empty: <T>(prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(isEmpty(prop(this.v)), out),\n valid: <T>(prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(validate(prop(this.v)).isValid, out),\n in: <T>(prop: Get<Array<V>, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(ofGet(prop, this.v).includes(this.v), out),\n not: {\n defined: <T>(prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(!isDefined(prop(this.v)), out),\n empty: <T>(prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(!isEmpty(prop(this.v)), out),\n valid: <T>(prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(!validate(prop(this.v)).isValid, out),\n in: <T>(prop: Get<Array<V>, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.v).case(!ofGet(prop, this.v).includes(this.v), out),\n },\n };\n if = this.is;\n\n constructor(readonly v: V) {}\n\n case<T>(pred: Predicate<V>, out: Get<T, V>): Case<T, V> {\n return new Case<T, V>(this.v).case(pred, out);\n }\n\n type<T, U = unknown>(guard: TypeGuard<U>, out: Func<T, U>): Case<T, V> {\n return new Case<T, V>(this.v).type<U>(guard, out);\n }\n\n equals<T>(value: V, out: Get<T, V>): Case<T, V> {\n return new Case<T, V>(this.v).equals(value, out);\n }\n}\n\nclass Case<T, V = unknown> {\n is = {\n defined: (prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(isDefined(prop(this.value)), out),\n empty: (prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(isEmpty(prop(this.value)), out),\n valid: (prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(validate(prop(this.value)).isValid, out),\n in: (prop: Get<Array<V>, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(ofGet(prop, this.value).includes(this.value), out),\n not: {\n defined: (prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(!isDefined(prop(this.value)), out),\n empty: (prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(!isEmpty(prop(this.value)), out),\n valid: (prop: Func<unknown, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(!validate(prop(this.value)).isValid, out),\n in: (prop: Get<Array<V>, V>, out: Get<T, V>): Case<T, V> => new Case<T, V>(this.value).case(!ofGet(prop, this.value).includes(this.value), out),\n },\n };\n if = this.is;\n\n constructor(\n protected value: V,\n protected outcome?: T\n ) {}\n\n case(pred: Predicate<V>, out: Get<T, V>): Case<T, V> {\n return tryTo(pred, this.value)\n .is.true()\n .map(() => ofGet(out, this.value))\n .map(res => new Found(this.value, res) as Case<T, V>)\n .or(this);\n }\n\n type<U>(guard: TypeGuard<U>, out: Func<T, U>): Case<T, V> {\n return tryTo(guard, this.value)\n .is.true()\n .map(() => out(this.value as unknown as U))\n .map(res => new Found(this.value, res) as Case<T, V>)\n .or(this);\n }\n\n equals(value: V, out: Get<T, V>): Case<T, V> {\n return this.case(this.value === value, out);\n }\n\n else(alt: Get<T, V>): T {\n return ofGet<T, V>(alt, this.value);\n }\n}\n\nclass Found<T, V> extends Case<T, V> {\n is = {\n defined: (_prop: Func<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n empty: (_prop: Func<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n valid: (_prop: Func<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n in: (_prop: Get<Array<V>, V>, _out: Get<T, V>): Case<T, V> => this,\n not: {\n defined: (_prop: Func<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n empty: (_prop: Func<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n valid: (_prop: Func<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n in: (_prop: Get<unknown, V>, _out: Get<T, V>): Case<T, V> => this,\n },\n };\n if = this.is;\n\n constructor(\n protected value: V,\n protected outcome: T\n ) {\n super(value, outcome);\n }\n\n case(pred: Predicate<V>, out: Get<T, V>): this {\n return this;\n }\n\n type<U>(guard: TypeGuard<U>, out: Func<T, U>): Case<T, V> {\n return this;\n }\n\n equals(value: V, out: Get<T, V>): Case<T, V> {\n return this;\n }\n\n else(alt: Get<T, V>): T {\n return this.outcome;\n }\n}\n\nexport const choose = <V>(value: V) => new CaseBuilder<V>(value);\n","import { Constraint } from './Contraints';\nimport { when } from './When';\nimport { text } from '../types/Template';\nimport type { TemplateOptions } from '../types/Template';\nimport { isResults, Results, toResults } from '../types/Results';\nimport { toName } from '../types/Constructor';\nimport { toResult } from '../types/Result';\nimport { List, toList } from '../types/List';\nimport { meta } from '../types/Meta';\nimport { isArray, isFunction } from '../types/Is';\nimport { asString } from '../types/Text';\nimport { choose } from '../types/Case';\nimport { isEnum } from '../types/Enum';\nimport { isValue } from '../types/Value';\nimport { isValidatable } from '../types/Validatable';\nimport type { Text } from '../types/Text';\n\nexport type Validator = { property: string | symbol; constraint: Constraint; text: Text; actual?: Text };\n\nexport const asResults = (subject: unknown, template: Text, options: TemplateOptions = {}): Results =>\n toResults(toResult(text(template).parse(subject, options), toName(subject)));\n\nconst validators = (subject: unknown): List<Validator> =>\n meta(subject)\n .keys<List<Validator>>('constraint')\n .reduce((list, vs) => list.add(vs), toList<Validator>());\n\nconst runValidator = (v: Validator, subject?: unknown): Results => {\n try {\n const actual = isFunction((subject as any)[v.property]) ? (subject as any)[v.property]() : (subject as any)[v.property];\n const constraint = v.constraint(actual);\n return isResults(constraint) ? constraint : !constraint ? asResults(subject, v.text, { ...v, actual }) : toResults();\n } catch (e) {\n return asResults(subject, asString(e));\n }\n};\n\nconst constraints = (subject?: unknown): Results =>\n validators(subject)\n .map(vs => runValidator(vs, subject))\n .reduce((rs, r) => rs.add(...r.results), toResults());\n\nexport const validate = (subject?: unknown): Results =>\n choose(subject)\n .is.not.defined(\n s => s,\n () => toResults('Subject is not defined.')\n )\n .type(isEnum, e => (e.isValid ? toResults() : asResults(e, 'This is not a valid {type}.')))\n .type(isValue, v => (v.isValid ? toResults() : asResults(v, 'This is not a valid {type}.')))\n .type(isArray, a => a.map(i => validate(i)).reduce((rs, r) => rs.add(...r.results), toResults()))\n .type(isValidatable, v => constraints(v))\n .else(toResults());\n\nexport const validateReject = <T>(subject: T): Promise<T> => when(subject).not.isValid.reject();\n\nexport const isValid = <T>(t: T): boolean => validate(t).isValid;\n","import { validate } from './Validate';\nimport { Results } from '../types/Results';\nimport { Constructor } from '../types/Constructor';\nimport { Get, ofGet, Predicate } from '../types/Get';\nimport { isDefined, isEmpty, isIn } from '../types/Is';\nimport { toArray } from '../types/Array';\nimport { ErrorOrigin } from '../types/ErrorOrigin';\nimport { reject, resolve } from '../utils/Promise';\nimport { Exception } from '../types/Exception';\n\nexport class When<W> {\n constructor(\n readonly subject: W,\n readonly valid = true,\n private results?: Results\n ) {}\n\n get not(): When<W> {\n return this.clone(!this.valid);\n }\n\n get and(): When<W> {\n return this.clone(this.valid);\n }\n\n get isDefined(): When<W> {\n return this.clone(this.valid === isDefined(this.subject));\n }\n\n get isEmpty(): When<W> {\n return this.clone(this.valid === isEmpty(this.subject));\n }\n\n get isTrue(): When<W> {\n return this.clone(this.valid === !!this.subject);\n }\n\n get isValid(): When<W> {\n this.results = validate(this.subject);\n return this.clone(this.valid === this.results.isValid);\n }\n\n isInstance = <U>(c: Constructor<U>): When<W> => this.clone(this.valid === this.subject instanceof c);\n\n with = (pred: Predicate<W>): When<W> => this.clone(this.valid === ofGet(pred, this.subject));\n\n contains = (property: (w: W) => unknown): When<W> => this.clone(this.valid === isDefined(ofGet(property, this.subject)));\n\n in = (...items: W[]): When<W> => this.clone(this.valid === isIn(this.subject, toArray(...items)));\n\n is = (item: W): When<W> => this.clone(this.valid === (this.subject === item));\n\n reject = (error?: Get<ErrorOrigin, W>): Promise<NonNullable<W>> =>\n !this.valid ? resolve(this.subject as NonNullable<W>) : reject(ofGet(error, this.subject) ?? this.results ?? Exception.Unknown);\n\n recover = (f: (item: W) => W | Promise<W>): Promise<W> => resolve(!this.valid ? this.subject : f(this.subject));\n\n protected clone = (result = true): When<W> => new When(this.subject, result, this.results);\n}\n\nexport const when = <T>(subject: T): When<T> => new When<T>(subject);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,IAAe,MAAf,MAAe,KAAwC;AAAA,EAC5D,KAAK;AAAA,IACH,SAAS,CAAC,SAAoC,KAAK,OAAO,OAAK,UAAU,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AAAA,IAC5F,OAAO,CAAC,SAAoC,KAAK,OAAO,OAAK,QAAQ,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AAAA,IACxF,OAAO,CAAC,SAAoC,KAAK,OAAO,OAAK,SAAS,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO;AAAA,IACjG,MAAM,CAAC,SAAoC,KAAK,OAAO,OAAK,OAAO,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AAAA,IACtF,OAAO,CAAC,SAAoC,KAAK,OAAO,OAAK,CAAC,OAAO,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AAAA,IACxF,KAAK;AAAA,MACH,SAAS,CAAC,SAAoC,KAAK,OAAO,OAAK,CAAC,UAAU,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AAAA,MAC7F,OAAO,CAAC,SAAoC,KAAK,OAAO,OAAK,CAAC,QAAQ,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AAAA,MACzF,OAAO,CAAC,SAAoC,KAAK,OAAO,OAAK,CAAC,SAAS,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO;AAAA,IACpG;AAAA,EACF;AAAA,EAEA,KAAK,KAAK;AAAA,EAQV,OAAO,KAAK,CAAI,MAAuB,SAA4B;AACjE,QA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QAAQ,KAAK,UAAU,EAAE,KAAK,OAAO,CAAC;AAAA,EAEpG,QAAQ,CAAC,SAAS,SAAkB,IAAI,MAAK,KAAK,SAAS,QAAQ,KAAK,OAAO;AAC3F;AAEO,IAAM,OAAO,CAAI,YAAwB,IAAI,KAAQ,OAAO;","names":[]}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-GCY5A63A.mjs";
|
|
7
7
|
import {
|
|
8
8
|
tryTo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZEBWWW4F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ofGet
|
|
12
12
|
} from "./chunk-SJGQU3OG.mjs";
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
PatternColumn,
|
|
80
80
|
OrderColumn
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-ZJXJIGXG.mjs.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Gateway
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LXCI7XE5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toPageList
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-JRA27RR5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
when
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-ZEBWWW4F.mjs";
|
|
10
10
|
import "../chunk-OFGI5FLG.mjs";
|
|
11
11
|
import "../chunk-KYQULNU4.mjs";
|
|
12
12
|
import "../chunk-BGSOJQAU.mjs";
|
|
13
|
+
import "../chunk-PKILDKWU.mjs";
|
|
13
14
|
import {
|
|
14
15
|
Exception
|
|
15
16
|
} from "../chunk-KXOBVHGI.mjs";
|
|
16
|
-
import "../chunk-PKILDKWU.mjs";
|
|
17
17
|
import "../chunk-WSBULPUZ.mjs";
|
|
18
18
|
import "../chunk-YGKMN5UC.mjs";
|
|
19
19
|
import "../chunk-3Y7X2UQ6.mjs";
|
package/dist/domain/Audit.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Audit
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-Q76PZB4S.mjs";
|
|
4
|
+
import "../chunk-GNY3BVOB.mjs";
|
|
5
|
+
import "../chunk-UAN6CCEA.mjs";
|
|
6
6
|
import "../chunk-YDC3NPU4.mjs";
|
|
7
7
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-MFKAXIYD.mjs";
|
|
9
9
|
import "../chunk-IANSP3JJ.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ZEBWWW4F.mjs";
|
|
11
11
|
import "../chunk-OFGI5FLG.mjs";
|
|
12
12
|
import "../chunk-KYQULNU4.mjs";
|
|
13
13
|
import "../chunk-BGSOJQAU.mjs";
|
|
14
|
-
import "../chunk-KXOBVHGI.mjs";
|
|
15
14
|
import "../chunk-PKILDKWU.mjs";
|
|
15
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
16
16
|
import "../chunk-WSBULPUZ.mjs";
|
|
17
17
|
import "../chunk-YGKMN5UC.mjs";
|
|
18
18
|
import "../chunk-3Y7X2UQ6.mjs";
|
package/dist/domain/Child.mjs
CHANGED
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
import "../chunk-LXQQ5N6S.mjs";
|
|
5
5
|
import {
|
|
6
6
|
required
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-GNY3BVOB.mjs";
|
|
8
8
|
import "../chunk-ADJAEGCT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Struct
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-MFKAXIYD.mjs";
|
|
12
12
|
import {
|
|
13
13
|
json
|
|
14
14
|
} from "../chunk-IANSP3JJ.mjs";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-ZEBWWW4F.mjs";
|
|
16
16
|
import "../chunk-OFGI5FLG.mjs";
|
|
17
17
|
import "../chunk-KYQULNU4.mjs";
|
|
18
18
|
import "../chunk-BGSOJQAU.mjs";
|
|
19
|
-
import "../chunk-KXOBVHGI.mjs";
|
|
20
19
|
import "../chunk-PKILDKWU.mjs";
|
|
20
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
21
21
|
import "../chunk-WSBULPUZ.mjs";
|
|
22
22
|
import "../chunk-YGKMN5UC.mjs";
|
|
23
23
|
import "../chunk-3Y7X2UQ6.mjs";
|
package/dist/domain/DateTime.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
DateTime,
|
|
3
3
|
dt,
|
|
4
4
|
isDateTime
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-UAN6CCEA.mjs";
|
|
6
6
|
import "../chunk-YDC3NPU4.mjs";
|
|
7
7
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-ZEBWWW4F.mjs";
|
|
9
9
|
import "../chunk-OFGI5FLG.mjs";
|
|
10
10
|
import "../chunk-KYQULNU4.mjs";
|
|
11
11
|
import "../chunk-BGSOJQAU.mjs";
|
|
12
|
-
import "../chunk-KXOBVHGI.mjs";
|
|
13
12
|
import "../chunk-PKILDKWU.mjs";
|
|
13
|
+
import "../chunk-KXOBVHGI.mjs";
|
|
14
14
|
import "../chunk-WSBULPUZ.mjs";
|
|
15
15
|
import "../chunk-YGKMN5UC.mjs";
|
|
16
16
|
import "../chunk-3Y7X2UQ6.mjs";
|