@thisisagile/easy 18.6.0 → 18.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-34COXZ5A.mjs → chunk-5N6Q7OXJ.mjs} +3 -3
- package/dist/{chunk-ZBVKM7WT.mjs → chunk-63DTRTSC.mjs} +4 -8
- package/dist/{chunk-ZBVKM7WT.mjs.map → chunk-63DTRTSC.mjs.map} +1 -1
- package/dist/{chunk-U3NVU37K.mjs → chunk-6PMTGQVO.mjs} +3 -3
- package/dist/{chunk-ISRJB7Z4.mjs → chunk-6YTIRHPN.mjs} +4 -6
- package/dist/{chunk-ISRJB7Z4.mjs.map → chunk-6YTIRHPN.mjs.map} +1 -1
- package/dist/{chunk-KXNGKB2N.mjs → chunk-7TW4TBFN.mjs} +8 -16
- package/dist/{chunk-KXNGKB2N.mjs.map → chunk-7TW4TBFN.mjs.map} +1 -1
- package/dist/{chunk-GOZMSSH5.mjs → chunk-AYR4US3Z.mjs} +2 -2
- package/dist/{chunk-6MBDCDGA.mjs → chunk-B37NZCNW.mjs} +2 -2
- package/dist/{chunk-H73MZAGT.mjs → chunk-FF3BNZ4H.mjs} +3 -5
- package/dist/{chunk-H73MZAGT.mjs.map → chunk-FF3BNZ4H.mjs.map} +1 -1
- package/dist/{chunk-WWYPWYFC.mjs → chunk-FFD2T6YV.mjs} +2 -2
- package/dist/{chunk-GV6NUD6R.mjs → chunk-FSWASMJZ.mjs} +2 -2
- package/dist/{chunk-TRR2LTWJ.mjs → chunk-GF7JYGJU.mjs} +4 -8
- package/dist/{chunk-TRR2LTWJ.mjs.map → chunk-GF7JYGJU.mjs.map} +1 -1
- package/dist/{chunk-LPT6LW5N.mjs → chunk-GKQMIKIY.mjs} +2 -2
- package/dist/{chunk-C6VQGKDB.mjs → chunk-IESVFCB3.mjs} +3 -3
- package/dist/{chunk-JZCNZKGP.mjs → chunk-IYUYA5OX.mjs} +5 -5
- package/dist/{chunk-SW73SKB2.mjs → chunk-J5PB7ZVO.mjs} +4 -6
- package/dist/{chunk-SW73SKB2.mjs.map → chunk-J5PB7ZVO.mjs.map} +1 -1
- package/dist/{chunk-V6TMXDF7.mjs → chunk-JI7MC5EA.mjs} +2 -2
- package/dist/{chunk-GMFUUU3V.mjs → chunk-JM6NAJQ3.mjs} +4 -6
- package/dist/{chunk-GMFUUU3V.mjs.map → chunk-JM6NAJQ3.mjs.map} +1 -1
- package/dist/{chunk-2SE4U4T2.mjs → chunk-JNZUGKMO.mjs} +2 -2
- package/dist/{chunk-MLYUI7R7.mjs → chunk-KPXOQFEB.mjs} +4 -6
- package/dist/{chunk-MLYUI7R7.mjs.map → chunk-KPXOQFEB.mjs.map} +1 -1
- package/dist/{chunk-FAFNTQIS.mjs → chunk-LHDTOERW.mjs} +3 -5
- package/dist/{chunk-FAFNTQIS.mjs.map → chunk-LHDTOERW.mjs.map} +1 -1
- package/dist/{chunk-CFJJ2C6C.mjs → chunk-M2S4OLVZ.mjs} +2 -2
- package/dist/{chunk-SW5NBVHL.mjs → chunk-O4RWZGFC.mjs} +4 -6
- package/dist/{chunk-SW5NBVHL.mjs.map → chunk-O4RWZGFC.mjs.map} +1 -1
- package/dist/{chunk-ZEIIFJDX.mjs → chunk-QBPSI5NM.mjs} +4 -4
- package/dist/{chunk-HBDIZSIE.mjs → chunk-QLEGIYVU.mjs} +3 -5
- package/dist/{chunk-HBDIZSIE.mjs.map → chunk-QLEGIYVU.mjs.map} +1 -1
- package/dist/{chunk-DUYHH6LC.mjs → chunk-QZPBFVZL.mjs} +2 -2
- package/dist/{chunk-YXLGHJ5Q.mjs → chunk-RBJBAJOK.mjs} +2 -2
- package/dist/{chunk-5C5OHGRW.mjs → chunk-RW4AKBCN.mjs} +3 -3
- package/dist/{chunk-5FD5G442.mjs → chunk-SBT3WGBP.mjs} +7 -7
- package/dist/{chunk-USR4ETA7.mjs → chunk-TNIG6FU2.mjs} +2 -2
- package/dist/{chunk-5BGTUK7G.mjs → chunk-TUO7ZPSP.mjs} +540 -104
- package/dist/chunk-TUO7ZPSP.mjs.map +1 -0
- package/dist/{chunk-UATZAAX2.mjs → chunk-WOUH6UVC.mjs} +3 -5
- package/dist/{chunk-UATZAAX2.mjs.map → chunk-WOUH6UVC.mjs.map} +1 -1
- package/dist/{chunk-5MCJXABA.mjs → chunk-XQJ5LQEQ.mjs} +2 -2
- package/dist/{chunk-5JE4QW4E.mjs → chunk-ZBOGLMG2.mjs} +4 -4
- package/dist/{chunk-UGNNHNYX.mjs → chunk-ZRH6FGUK.mjs} +4 -4
- package/dist/{chunk-LCJEJ3LU.mjs → chunk-ZZ73Z5CU.mjs} +2 -2
- package/dist/data/Condition.mjs +5 -4
- package/dist/data/Database.mjs +4 -5
- package/dist/data/Field.mjs +5 -4
- package/dist/data/Field.mjs.map +1 -1
- package/dist/data/InMemoryGateway.mjs +4 -9
- package/dist/data/InMemoryGateway.mjs.map +1 -1
- package/dist/domain/Audit.mjs +8 -13
- package/dist/domain/Child.mjs +5 -10
- package/dist/domain/Child.mjs.map +1 -1
- package/dist/domain/DateTime.mjs +4 -9
- package/dist/domain/Entity.mjs +8 -13
- package/dist/domain/Entity.mjs.map +1 -1
- package/dist/domain/Repo.mjs +7 -14
- package/dist/domain/Repo.mjs.map +1 -1
- package/dist/domain/Struct.mjs +4 -9
- package/dist/domain/Typo.mjs +4 -9
- package/dist/domain/Typo.mjs.map +1 -1
- package/dist/http/CacheControl.mjs +6 -12
- package/dist/http/CacheControl.mjs.map +1 -1
- package/dist/http/ContentType.mjs +4 -5
- package/dist/http/HttpStatus.mjs +4 -5
- package/dist/http/HttpVerb.mjs +4 -5
- package/dist/http/LocalRequestStore.mjs +2 -7
- package/dist/http/LocalRequestStore.mjs.map +1 -1
- package/dist/http/RequestOptions.mjs +4 -9
- package/dist/http/RestResult.mjs +4 -9
- package/dist/http/toResponse.mjs +5 -10
- package/dist/index.js +528 -523
- package/dist/index.js.map +1 -1
- package/dist/process/App.mjs +3 -8
- package/dist/process/App.mjs.map +1 -1
- package/dist/process/Manage.mjs +4 -9
- package/dist/process/Manage.mjs.map +1 -1
- package/dist/process/Scope.mjs +3 -8
- package/dist/process/Search.mjs +4 -9
- package/dist/process/UseCase.mjs +5 -12
- package/dist/process/UseCase.mjs.map +1 -1
- package/dist/resources/Req.mjs +4 -9
- package/dist/resources/Req.mjs.map +1 -1
- package/dist/services/Api.mjs +12 -17
- package/dist/services/ApiGateway.mjs +15 -20
- package/dist/services/AxiosProvider.mjs +10 -15
- package/dist/services/MappedRouteGateway.mjs +18 -23
- package/dist/services/MappedRouteGateway.mjs.map +1 -1
- package/dist/services/RouteGateway.mjs +16 -21
- package/dist/services/ViewRouteGateway.mjs +18 -24
- package/dist/services/ViewRouteGateway.mjs.map +1 -1
- package/dist/sql/Column.mjs +3 -8
- package/dist/sql/Count.mjs +6 -4
- package/dist/sql/Delete.mjs +5 -3
- package/dist/sql/Insert.mjs +5 -3
- package/dist/sql/Select.mjs +5 -3
- package/dist/sql/SqlQuery.mjs +4 -2
- package/dist/sql/Table.mjs +13 -18
- package/dist/sql/Table.mjs.map +1 -1
- package/dist/sql/TableGateway.mjs +5 -11
- package/dist/sql/TableGateway.mjs.map +1 -1
- package/dist/sql/Update.mjs +5 -3
- package/dist/types/Cache.mjs +3 -3
- package/dist/types/CacheAge.mjs +4 -9
- package/dist/types/Case.mjs +2 -7
- package/dist/types/Context.mjs +2 -7
- package/dist/types/Enum.mjs +3 -4
- package/dist/types/Environment.mjs +3 -4
- package/dist/types/Environment.mjs.map +1 -1
- package/dist/types/Exception.mjs +2 -7
- package/dist/types/Gateway.mjs +3 -8
- package/dist/types/IsEqual.mjs +2 -8
- package/dist/types/Json.mjs +4 -3
- package/dist/types/List.mjs +3 -1
- package/dist/types/Meta.mjs +3 -3
- package/dist/types/Number.mjs +3 -8
- package/dist/types/Object.mjs +3 -2
- package/dist/types/PageList.mjs +3 -8
- package/dist/types/Parser.mjs +2 -7
- package/dist/types/Parser.mjs.map +1 -1
- package/dist/types/Repository.mjs +3 -8
- package/dist/types/Result.mjs +2 -7
- package/dist/types/Results.mjs +2 -7
- package/dist/types/Tag.mjs +3 -3
- package/dist/types/Template.mjs +2 -7
- package/dist/types/ToText.mjs +2 -7
- package/dist/types/Try.mjs +2 -7
- package/dist/types/Uri.mjs +5 -13
- package/dist/types/Uri.mjs.map +1 -1
- package/dist/utils/If.d.ts +2 -0
- package/dist/utils/If.mjs +5 -1
- package/dist/utils/Mapper.mjs +5 -5
- package/dist/utils/Period.mjs +4 -9
- package/dist/utils/Period.mjs.map +1 -1
- package/dist/utils/Promise.mjs +3 -3
- package/dist/utils/Seconds.mjs +4 -2
- package/dist/utils/Sentence.mjs +2 -7
- package/dist/utils/Sentence.mjs.map +1 -1
- package/dist/utils/View.mjs +5 -11
- package/dist/validation/Contraints.mjs +3 -8
- package/dist/validation/Validate.mjs +2 -7
- package/dist/validation/When.mjs +2 -7
- package/package.json +1 -1
- package/src/utils/If.ts +7 -0
- package/dist/chunk-2PL5VUHT.mjs +0 -37
- package/dist/chunk-2PL5VUHT.mjs.map +0 -1
- package/dist/chunk-5BGTUK7G.mjs.map +0 -1
- package/dist/chunk-5FAZA55F.mjs +0 -58
- package/dist/chunk-5FAZA55F.mjs.map +0 -1
- package/dist/chunk-7A3RM67L.mjs +0 -68
- package/dist/chunk-7A3RM67L.mjs.map +0 -1
- package/dist/chunk-AJZIKJEC.mjs +0 -54
- package/dist/chunk-AJZIKJEC.mjs.map +0 -1
- package/dist/chunk-AQXV7L65.mjs +0 -310
- package/dist/chunk-AQXV7L65.mjs.map +0 -1
- package/dist/chunk-DC5HIBQG.mjs +0 -23
- package/dist/chunk-DC5HIBQG.mjs.map +0 -1
- /package/dist/{chunk-34COXZ5A.mjs.map → chunk-5N6Q7OXJ.mjs.map} +0 -0
- /package/dist/{chunk-U3NVU37K.mjs.map → chunk-6PMTGQVO.mjs.map} +0 -0
- /package/dist/{chunk-GOZMSSH5.mjs.map → chunk-AYR4US3Z.mjs.map} +0 -0
- /package/dist/{chunk-6MBDCDGA.mjs.map → chunk-B37NZCNW.mjs.map} +0 -0
- /package/dist/{chunk-WWYPWYFC.mjs.map → chunk-FFD2T6YV.mjs.map} +0 -0
- /package/dist/{chunk-GV6NUD6R.mjs.map → chunk-FSWASMJZ.mjs.map} +0 -0
- /package/dist/{chunk-LPT6LW5N.mjs.map → chunk-GKQMIKIY.mjs.map} +0 -0
- /package/dist/{chunk-C6VQGKDB.mjs.map → chunk-IESVFCB3.mjs.map} +0 -0
- /package/dist/{chunk-JZCNZKGP.mjs.map → chunk-IYUYA5OX.mjs.map} +0 -0
- /package/dist/{chunk-V6TMXDF7.mjs.map → chunk-JI7MC5EA.mjs.map} +0 -0
- /package/dist/{chunk-2SE4U4T2.mjs.map → chunk-JNZUGKMO.mjs.map} +0 -0
- /package/dist/{chunk-CFJJ2C6C.mjs.map → chunk-M2S4OLVZ.mjs.map} +0 -0
- /package/dist/{chunk-ZEIIFJDX.mjs.map → chunk-QBPSI5NM.mjs.map} +0 -0
- /package/dist/{chunk-DUYHH6LC.mjs.map → chunk-QZPBFVZL.mjs.map} +0 -0
- /package/dist/{chunk-YXLGHJ5Q.mjs.map → chunk-RBJBAJOK.mjs.map} +0 -0
- /package/dist/{chunk-5C5OHGRW.mjs.map → chunk-RW4AKBCN.mjs.map} +0 -0
- /package/dist/{chunk-5FD5G442.mjs.map → chunk-SBT3WGBP.mjs.map} +0 -0
- /package/dist/{chunk-USR4ETA7.mjs.map → chunk-TNIG6FU2.mjs.map} +0 -0
- /package/dist/{chunk-5MCJXABA.mjs.map → chunk-XQJ5LQEQ.mjs.map} +0 -0
- /package/dist/{chunk-5JE4QW4E.mjs.map → chunk-ZBOGLMG2.mjs.map} +0 -0
- /package/dist/{chunk-UGNNHNYX.mjs.map → chunk-ZRH6FGUK.mjs.map} +0 -0
- /package/dist/{chunk-LCJEJ3LU.mjs.map → chunk-ZZ73Z5CU.mjs.map} +0 -0
package/dist/sql/Table.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Update
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JNZUGKMO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Column
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-RBJBAJOK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Count
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-TNIG6FU2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Delete
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-AYR4US3Z.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Insert
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-QZPBFVZL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Join
|
|
18
18
|
} from "../chunk-OQNZEKWO.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Select
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-6PMTGQVO.mjs";
|
|
22
|
+
import "../chunk-B37NZCNW.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Mapper,
|
|
25
25
|
mappings
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-J5PB7ZVO.mjs";
|
|
27
27
|
import "../chunk-KIC2K3GH.mjs";
|
|
28
28
|
import "../chunk-UXDH5W4T.mjs";
|
|
29
29
|
import {
|
|
@@ -31,22 +31,17 @@ import {
|
|
|
31
31
|
} from "../chunk-KL75JJTY.mjs";
|
|
32
32
|
import {
|
|
33
33
|
Database
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-ZZ73Z5CU.mjs";
|
|
35
35
|
import "../chunk-RUKHONCR.mjs";
|
|
36
36
|
import "../chunk-UAYAS3WM.mjs";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-5BGTUK7G.mjs";
|
|
39
|
-
import "../chunk-GPNPXSOF.mjs";
|
|
40
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
41
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
42
|
-
import "../chunk-7A3RM67L.mjs";
|
|
43
|
-
import "../chunk-5FAZA55F.mjs";
|
|
44
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
37
|
+
import "../chunk-WOUH6UVC.mjs";
|
|
45
38
|
import {
|
|
46
39
|
toList
|
|
47
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
41
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
48
42
|
import "../chunk-QCPWEAAJ.mjs";
|
|
49
43
|
import "../chunk-SSROJBD5.mjs";
|
|
44
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
50
45
|
import "../chunk-4Q6IHSAU.mjs";
|
|
51
46
|
import "../chunk-SJGQU3OG.mjs";
|
|
52
47
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/sql/Table.mjs.map
CHANGED
|
@@ -1 +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":"
|
|
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":[]}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Gateway
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-FF3BNZ4H.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toPageList
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-QLEGIYVU.mjs";
|
|
7
7
|
import {
|
|
8
|
+
ifDefined,
|
|
8
9
|
when
|
|
9
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
10
11
|
import "../chunk-GPNPXSOF.mjs";
|
|
11
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
12
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
13
|
-
import "../chunk-7A3RM67L.mjs";
|
|
14
|
-
import "../chunk-5FAZA55F.mjs";
|
|
15
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
16
|
-
import {
|
|
17
|
-
ifDefined
|
|
18
|
-
} from "../chunk-AQXV7L65.mjs";
|
|
19
12
|
import "../chunk-QCPWEAAJ.mjs";
|
|
20
13
|
import "../chunk-SSROJBD5.mjs";
|
|
14
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
21
15
|
import "../chunk-4Q6IHSAU.mjs";
|
|
22
16
|
import "../chunk-SJGQU3OG.mjs";
|
|
23
17
|
import "../chunk-MDIO6K2O.mjs";
|
|
@@ -1 +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":"
|
|
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":[]}
|
package/dist/sql/Update.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Update
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JNZUGKMO.mjs";
|
|
4
|
+
import "../chunk-B37NZCNW.mjs";
|
|
5
5
|
import "../chunk-UXDH5W4T.mjs";
|
|
6
6
|
import "../chunk-UAYAS3WM.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
8
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
8
9
|
import "../chunk-QCPWEAAJ.mjs";
|
|
9
10
|
import "../chunk-SSROJBD5.mjs";
|
|
11
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
10
12
|
import "../chunk-4Q6IHSAU.mjs";
|
|
11
13
|
import "../chunk-SJGQU3OG.mjs";
|
|
12
14
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Cache.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-AQXV7L65.mjs";
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
4
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
6
5
|
import "../chunk-QCPWEAAJ.mjs";
|
|
7
6
|
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
8
8
|
import "../chunk-4Q6IHSAU.mjs";
|
|
9
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
10
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/CacheAge.mjs
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cacheAge,
|
|
3
3
|
isCacheAge
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-IESVFCB3.mjs";
|
|
5
|
+
import "../chunk-XQJ5LQEQ.mjs";
|
|
6
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
7
7
|
import "../chunk-GPNPXSOF.mjs";
|
|
8
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
9
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
10
|
-
import "../chunk-7A3RM67L.mjs";
|
|
11
|
-
import "../chunk-5FAZA55F.mjs";
|
|
12
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
13
|
-
import "../chunk-AQXV7L65.mjs";
|
|
14
8
|
import "../chunk-QCPWEAAJ.mjs";
|
|
15
9
|
import "../chunk-SSROJBD5.mjs";
|
|
10
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
16
11
|
import "../chunk-4Q6IHSAU.mjs";
|
|
17
12
|
import "../chunk-SJGQU3OG.mjs";
|
|
18
13
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Case.mjs
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
choose
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
4
4
|
import "../chunk-GPNPXSOF.mjs";
|
|
5
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
6
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
7
|
-
import "../chunk-7A3RM67L.mjs";
|
|
8
|
-
import "../chunk-5FAZA55F.mjs";
|
|
9
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
10
|
-
import "../chunk-AQXV7L65.mjs";
|
|
11
5
|
import "../chunk-QCPWEAAJ.mjs";
|
|
12
6
|
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
13
8
|
import "../chunk-4Q6IHSAU.mjs";
|
|
14
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
15
10
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Context.mjs
CHANGED
|
@@ -4,16 +4,11 @@ import {
|
|
|
4
4
|
Context,
|
|
5
5
|
DotEnvContext,
|
|
6
6
|
ctx
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
8
8
|
import "../chunk-GPNPXSOF.mjs";
|
|
9
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
10
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
11
|
-
import "../chunk-7A3RM67L.mjs";
|
|
12
|
-
import "../chunk-5FAZA55F.mjs";
|
|
13
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
14
|
-
import "../chunk-AQXV7L65.mjs";
|
|
15
9
|
import "../chunk-QCPWEAAJ.mjs";
|
|
16
10
|
import "../chunk-SSROJBD5.mjs";
|
|
11
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
17
12
|
import "../chunk-4Q6IHSAU.mjs";
|
|
18
13
|
import "../chunk-SJGQU3OG.mjs";
|
|
19
14
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Enum.mjs
CHANGED
|
@@ -2,12 +2,11 @@ import {
|
|
|
2
2
|
Enum,
|
|
3
3
|
isEnum,
|
|
4
4
|
isEnumConstructor
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
8
|
-
import "../chunk-AQXV7L65.mjs";
|
|
5
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
6
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
9
7
|
import "../chunk-QCPWEAAJ.mjs";
|
|
10
8
|
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
11
10
|
import "../chunk-4Q6IHSAU.mjs";
|
|
12
11
|
import "../chunk-SJGQU3OG.mjs";
|
|
13
12
|
import "../chunk-MDIO6K2O.mjs";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Enum
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
6
|
-
import "../chunk-AQXV7L65.mjs";
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
4
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
7
5
|
import "../chunk-QCPWEAAJ.mjs";
|
|
8
6
|
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
9
8
|
import "../chunk-4Q6IHSAU.mjs";
|
|
10
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
11
10
|
import "../chunk-MDIO6K2O.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/Environment.ts"],"sourcesContent":["import { Enum } from './Enum';\n\nexport class Environment extends Enum {\n static readonly Dev = new Environment('Development', 'dev');\n static readonly Tst = new Environment('Test', 'tst');\n static readonly Acc = new Environment('Acceptance', 'acc');\n static readonly Prd = new Environment('Production', 'prd');\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/Environment.ts"],"sourcesContent":["import { Enum } from './Enum';\n\nexport class Environment extends Enum {\n static readonly Dev = new Environment('Development', 'dev');\n static readonly Tst = new Environment('Test', 'tst');\n static readonly Acc = new Environment('Acceptance', 'acc');\n static readonly Prd = new Environment('Production', 'prd');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAEO,IAAM,cAAN,MAAM,qBAAoB,KAAK;AAAA,EACpC,OAAgB,MAAM,IAAI,aAAY,eAAe,KAAK;AAAA,EAC1D,OAAgB,MAAM,IAAI,aAAY,QAAQ,KAAK;AAAA,EACnD,OAAgB,MAAM,IAAI,aAAY,cAAc,KAAK;AAAA,EACzD,OAAgB,MAAM,IAAI,aAAY,cAAc,KAAK;AAC3D;","names":[]}
|
package/dist/types/Exception.mjs
CHANGED
|
@@ -2,16 +2,11 @@ import {
|
|
|
2
2
|
Exception,
|
|
3
3
|
isDoesNotExist,
|
|
4
4
|
isException
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
6
6
|
import "../chunk-GPNPXSOF.mjs";
|
|
7
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
8
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
9
|
-
import "../chunk-7A3RM67L.mjs";
|
|
10
|
-
import "../chunk-5FAZA55F.mjs";
|
|
11
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
12
|
-
import "../chunk-AQXV7L65.mjs";
|
|
13
7
|
import "../chunk-QCPWEAAJ.mjs";
|
|
14
8
|
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
15
10
|
import "../chunk-4Q6IHSAU.mjs";
|
|
16
11
|
import "../chunk-SJGQU3OG.mjs";
|
|
17
12
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Gateway.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Gateway
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-FF3BNZ4H.mjs";
|
|
4
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
5
5
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
6
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
7
|
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
9
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
11
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/IsEqual.mjs
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isEqual
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-5BGTUK7G.mjs";
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
5
4
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
5
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
6
|
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
8
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
10
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Json.mjs
CHANGED
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
takeFirst,
|
|
7
7
|
takeFirstKey,
|
|
8
8
|
toJson
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-WOUH6UVC.mjs";
|
|
10
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
11
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
12
12
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
13
|
import "../chunk-SSROJBD5.mjs";
|
|
14
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
15
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
16
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
17
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/List.mjs
CHANGED
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
maxValue,
|
|
6
6
|
minValue,
|
|
7
7
|
toList
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
9
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
9
10
|
import "../chunk-QCPWEAAJ.mjs";
|
|
10
11
|
import "../chunk-SSROJBD5.mjs";
|
|
12
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
11
13
|
import "../chunk-4Q6IHSAU.mjs";
|
|
12
14
|
import "../chunk-SJGQU3OG.mjs";
|
|
13
15
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Meta.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-AQXV7L65.mjs";
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
4
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
6
5
|
import "../chunk-QCPWEAAJ.mjs";
|
|
7
6
|
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
8
8
|
import "../chunk-4Q6IHSAU.mjs";
|
|
9
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
10
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Number.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asNumber
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-XQJ5LQEQ.mjs";
|
|
4
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
5
5
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
6
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
7
|
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
9
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
11
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Object.mjs
CHANGED
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
extractKeys,
|
|
4
4
|
keys,
|
|
5
5
|
values
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
7
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
8
8
|
import "../chunk-QCPWEAAJ.mjs";
|
|
9
9
|
import "../chunk-SSROJBD5.mjs";
|
|
10
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
10
11
|
import "../chunk-4Q6IHSAU.mjs";
|
|
11
12
|
import "../chunk-SJGQU3OG.mjs";
|
|
12
13
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/PageList.mjs
CHANGED
|
@@ -5,17 +5,12 @@ import {
|
|
|
5
5
|
toFilter,
|
|
6
6
|
toPageList,
|
|
7
7
|
toShortFilter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-QLEGIYVU.mjs";
|
|
9
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
10
10
|
import "../chunk-GPNPXSOF.mjs";
|
|
11
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
12
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
13
|
-
import "../chunk-7A3RM67L.mjs";
|
|
14
|
-
import "../chunk-5FAZA55F.mjs";
|
|
15
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
16
|
-
import "../chunk-AQXV7L65.mjs";
|
|
17
11
|
import "../chunk-QCPWEAAJ.mjs";
|
|
18
12
|
import "../chunk-SSROJBD5.mjs";
|
|
13
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
19
14
|
import "../chunk-4Q6IHSAU.mjs";
|
|
20
15
|
import "../chunk-SJGQU3OG.mjs";
|
|
21
16
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Parser.mjs
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isValid
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
4
4
|
import "../chunk-GPNPXSOF.mjs";
|
|
5
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
6
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
7
|
-
import "../chunk-7A3RM67L.mjs";
|
|
8
|
-
import "../chunk-5FAZA55F.mjs";
|
|
9
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
10
|
-
import "../chunk-AQXV7L65.mjs";
|
|
11
5
|
import {
|
|
12
6
|
toArray
|
|
13
7
|
} from "../chunk-QCPWEAAJ.mjs";
|
|
14
8
|
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
15
10
|
import "../chunk-4Q6IHSAU.mjs";
|
|
16
11
|
import {
|
|
17
12
|
ofGet
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/Parser.ts"],"sourcesContent":["import { Get, ofGet, Predicate } from './Get';\nimport { isDefined, isEmpty, isIn, isObject, isString, isTrue } from './Is';\nimport { isValid } from '../validation/Validate';\nimport { Constructor, on } from './Constructor';\nimport { toArray } from './Array';\n\nexport class Parser<T, V> {\n if = {\n equals: (pred?: Predicate<T>): this => this.evaluate(isTrue, pred),\n empty: <U>(pred?: Get<U, T>): this => this.evaluate(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluate(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluate(isValid, pred),\n in: (...items: T[]): this => this.evaluate(() => isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluate(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluate(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => this.value instanceof c, pred),\n },\n not: {\n empty: <U>(pred?: Get<U, T>): this => this.evaluateNot(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluateNot(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluateNot(isValid, pred),\n isObject: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n in: (...items: T[]): this => this.evaluate(() => !isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluateNot(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => !(this.value instanceof c), pred),\n },\n },\n };\n\n constructor(\n protected value: T,\n protected valid = true\n ) {}\n\n protected evaluate<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n\n protected evaluateNot<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = !ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/Parser.ts"],"sourcesContent":["import { Get, ofGet, Predicate } from './Get';\nimport { isDefined, isEmpty, isIn, isObject, isString, isTrue } from './Is';\nimport { isValid } from '../validation/Validate';\nimport { Constructor, on } from './Constructor';\nimport { toArray } from './Array';\n\nexport class Parser<T, V> {\n if = {\n equals: (pred?: Predicate<T>): this => this.evaluate(isTrue, pred),\n empty: <U>(pred?: Get<U, T>): this => this.evaluate(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluate(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluate(isValid, pred),\n in: (...items: T[]): this => this.evaluate(() => isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluate(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluate(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => this.value instanceof c, pred),\n },\n not: {\n empty: <U>(pred?: Get<U, T>): this => this.evaluateNot(isEmpty, pred),\n defined: <U>(pred?: Get<U, T>): this => this.evaluateNot(isDefined, pred),\n valid: <U>(pred?: Get<U, T>): this => this.evaluateNot(isValid, pred),\n isObject: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n in: (...items: T[]): this => this.evaluate(() => !isIn(this.value, toArray(...items))),\n is: {\n object: <U>(pred?: Get<U, T>): this => this.evaluateNot(isObject, pred),\n string: <U>(pred?: Get<U, T>): this => this.evaluateNot(isString, pred),\n instance: <U>(c: Constructor<U>, pred?: Get<U, T>): this => this.evaluate(() => !(this.value instanceof c), pred),\n },\n },\n };\n\n constructor(\n protected value: T,\n protected valid = true\n ) {}\n\n protected evaluate<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n\n protected evaluateNot<U>(meta: Get<boolean>, pred?: Get<U, T>): this {\n return on(this, t => (t.valid = !ofGet(meta, pred ? ofGet(pred, this.value) : this.value)));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,SAAN,MAAmB;AAAA,EA0BxB,YACY,OACA,QAAQ,MAClB;AAFU;AACA;AAAA,EACT;AAAA,EA5BH,KAAK;AAAA,IACH,QAAQ,CAAC,SAA8B,KAAK,SAAS,QAAQ,IAAI;AAAA,IACjE,OAAO,CAAI,SAA2B,KAAK,SAAS,SAAS,IAAI;AAAA,IACjE,SAAS,CAAI,SAA2B,KAAK,SAAS,WAAW,IAAI;AAAA,IACrE,OAAO,CAAI,SAA2B,KAAK,SAAS,SAAS,IAAI;AAAA,IACjE,IAAI,IAAI,UAAqB,KAAK,SAAS,MAAM,KAAK,KAAK,OAAO,QAAQ,GAAG,KAAK,CAAC,CAAC;AAAA,IACpF,IAAI;AAAA,MACF,QAAQ,CAAI,SAA2B,KAAK,SAAS,UAAU,IAAI;AAAA,MACnE,QAAQ,CAAI,SAA2B,KAAK,SAAS,UAAU,IAAI;AAAA,MACnE,UAAU,CAAI,GAAmB,SAA2B,KAAK,SAAS,MAAM,KAAK,iBAAiB,GAAG,IAAI;AAAA,IAC/G;AAAA,IACA,KAAK;AAAA,MACH,OAAO,CAAI,SAA2B,KAAK,YAAY,SAAS,IAAI;AAAA,MACpE,SAAS,CAAI,SAA2B,KAAK,YAAY,WAAW,IAAI;AAAA,MACxE,OAAO,CAAI,SAA2B,KAAK,YAAY,SAAS,IAAI;AAAA,MACpE,UAAU,CAAI,SAA2B,KAAK,YAAY,UAAU,IAAI;AAAA,MACxE,IAAI,IAAI,UAAqB,KAAK,SAAS,MAAM,CAAC,KAAK,KAAK,OAAO,QAAQ,GAAG,KAAK,CAAC,CAAC;AAAA,MACrF,IAAI;AAAA,QACF,QAAQ,CAAI,SAA2B,KAAK,YAAY,UAAU,IAAI;AAAA,QACtE,QAAQ,CAAI,SAA2B,KAAK,YAAY,UAAU,IAAI;AAAA,QACtE,UAAU,CAAI,GAAmB,SAA2B,KAAK,SAAS,MAAM,EAAE,KAAK,iBAAiB,IAAI,IAAI;AAAA,MAClH;AAAA,IACF;AAAA,EACF;AAAA,EAOU,SAAY,MAAoB,MAAwB;AAChE,WAAO,GAAG,MAAM,OAAM,EAAE,QAAQ,MAAM,MAAM,OAAO,MAAM,MAAM,KAAK,KAAK,IAAI,KAAK,KAAK,CAAE;AAAA,EAC3F;AAAA,EAEU,YAAe,MAAoB,MAAwB;AACnE,WAAO,GAAG,MAAM,OAAM,EAAE,QAAQ,CAAC,MAAM,MAAM,OAAO,MAAM,MAAM,KAAK,KAAK,IAAI,KAAK,KAAK,CAAE;AAAA,EAC5F;AACF;","names":[]}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Repository
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LHDTOERW.mjs";
|
|
4
|
+
import "../chunk-TUO7ZPSP.mjs";
|
|
5
5
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
6
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
7
|
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
9
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
11
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Result.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isResult,
|
|
3
3
|
toResult
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
5
5
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
6
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
7
|
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
9
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
11
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Results.mjs
CHANGED
|
@@ -2,16 +2,11 @@ import {
|
|
|
2
2
|
Results,
|
|
3
3
|
isResults,
|
|
4
4
|
toResults
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
6
6
|
import "../chunk-GPNPXSOF.mjs";
|
|
7
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
8
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
9
|
-
import "../chunk-7A3RM67L.mjs";
|
|
10
|
-
import "../chunk-5FAZA55F.mjs";
|
|
11
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
12
|
-
import "../chunk-AQXV7L65.mjs";
|
|
13
7
|
import "../chunk-QCPWEAAJ.mjs";
|
|
14
8
|
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
15
10
|
import "../chunk-4Q6IHSAU.mjs";
|
|
16
11
|
import "../chunk-SJGQU3OG.mjs";
|
|
17
12
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Tag.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-AQXV7L65.mjs";
|
|
3
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
4
|
+
import "../chunk-GPNPXSOF.mjs";
|
|
6
5
|
import "../chunk-QCPWEAAJ.mjs";
|
|
7
6
|
import "../chunk-SSROJBD5.mjs";
|
|
7
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
8
8
|
import "../chunk-4Q6IHSAU.mjs";
|
|
9
9
|
import "../chunk-SJGQU3OG.mjs";
|
|
10
10
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Template.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Template,
|
|
3
3
|
template
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
5
5
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
6
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
7
|
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
9
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
11
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/ToText.mjs
CHANGED
|
@@ -2,16 +2,11 @@ import {
|
|
|
2
2
|
ToText,
|
|
3
3
|
text,
|
|
4
4
|
textValue
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
6
6
|
import "../chunk-GPNPXSOF.mjs";
|
|
7
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
8
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
9
|
-
import "../chunk-7A3RM67L.mjs";
|
|
10
|
-
import "../chunk-5FAZA55F.mjs";
|
|
11
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
12
|
-
import "../chunk-AQXV7L65.mjs";
|
|
13
7
|
import "../chunk-QCPWEAAJ.mjs";
|
|
14
8
|
import "../chunk-SSROJBD5.mjs";
|
|
9
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
15
10
|
import "../chunk-4Q6IHSAU.mjs";
|
|
16
11
|
import "../chunk-SJGQU3OG.mjs";
|
|
17
12
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Try.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Try,
|
|
3
3
|
tryTo
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
5
5
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import "../chunk-5FAZA55F.mjs";
|
|
10
|
-
import "../chunk-2PL5VUHT.mjs";
|
|
11
|
-
import "../chunk-AQXV7L65.mjs";
|
|
12
6
|
import "../chunk-QCPWEAAJ.mjs";
|
|
13
7
|
import "../chunk-SSROJBD5.mjs";
|
|
8
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
14
9
|
import "../chunk-4Q6IHSAU.mjs";
|
|
15
10
|
import "../chunk-SJGQU3OG.mjs";
|
|
16
11
|
import "../chunk-MDIO6K2O.mjs";
|
package/dist/types/Uri.mjs
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ctx,
|
|
3
|
+
entries,
|
|
4
|
+
meta,
|
|
5
|
+
toList,
|
|
3
6
|
tryTo
|
|
4
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-TUO7ZPSP.mjs";
|
|
5
8
|
import "../chunk-GPNPXSOF.mjs";
|
|
6
|
-
import "../chunk-AJZIKJEC.mjs";
|
|
7
|
-
import "../chunk-AMS2ELWR.mjs";
|
|
8
|
-
import "../chunk-7A3RM67L.mjs";
|
|
9
|
-
import {
|
|
10
|
-
meta
|
|
11
|
-
} from "../chunk-5FAZA55F.mjs";
|
|
12
|
-
import {
|
|
13
|
-
entries
|
|
14
|
-
} from "../chunk-2PL5VUHT.mjs";
|
|
15
|
-
import {
|
|
16
|
-
toList
|
|
17
|
-
} from "../chunk-AQXV7L65.mjs";
|
|
18
9
|
import {
|
|
19
10
|
toArray
|
|
20
11
|
} from "../chunk-QCPWEAAJ.mjs";
|
|
21
12
|
import "../chunk-SSROJBD5.mjs";
|
|
13
|
+
import "../chunk-AMS2ELWR.mjs";
|
|
22
14
|
import {
|
|
23
15
|
asString
|
|
24
16
|
} from "../chunk-4Q6IHSAU.mjs";
|