@thisisagile/easy 17.4.8 → 17.4.9

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.
Files changed (40) hide show
  1. package/dist/{chunk-IXUCBTR3.mjs → chunk-7CQACHJI.mjs} +6 -6
  2. package/dist/{chunk-3EYCIHXW.mjs → chunk-CJYYPKV3.mjs} +2 -2
  3. package/dist/{chunk-Y4RD46AM.mjs → chunk-ELUSAGYQ.mjs} +4 -4
  4. package/dist/{chunk-5GALY24M.mjs → chunk-F5HICSU2.mjs} +4 -4
  5. package/dist/{chunk-PWYWE7H7.mjs → chunk-GB76XDBG.mjs} +2 -2
  6. package/dist/{chunk-NE6FVUU7.mjs → chunk-HD6MZ4Q6.mjs} +3 -3
  7. package/dist/{chunk-H6WLTQXF.mjs → chunk-J6HZAFMO.mjs} +4 -4
  8. package/dist/{chunk-QKWQIRUO.mjs → chunk-JNRSMOA7.mjs} +3 -3
  9. package/dist/{chunk-BKA7GVXL.mjs → chunk-SSROJBD5.mjs} +3 -2
  10. package/dist/chunk-SSROJBD5.mjs.map +1 -0
  11. package/dist/{chunk-6TJC3RI3.mjs → chunk-TYXWSRB2.mjs} +4 -4
  12. package/dist/domain/Audit.mjs +2 -2
  13. package/dist/domain/Child.mjs +2 -2
  14. package/dist/domain/Entity.mjs +7 -7
  15. package/dist/http/RequestOptions.mjs +2 -2
  16. package/dist/http/RestResult.mjs +2 -2
  17. package/dist/http/toResponse.mjs +3 -3
  18. package/dist/index.js +2 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/services/Api.mjs +8 -8
  21. package/dist/services/ApiGateway.mjs +10 -10
  22. package/dist/services/AxiosProvider.mjs +7 -7
  23. package/dist/services/MappedRouteGateway.mjs +12 -12
  24. package/dist/services/RouteGateway.mjs +11 -11
  25. package/dist/services/ViewRouteGateway.mjs +14 -14
  26. package/dist/utils/Traverse.d.ts +1 -1
  27. package/dist/utils/Traverse.mjs +1 -1
  28. package/dist/utils/View.mjs +3 -3
  29. package/package.json +2 -2
  30. package/src/utils/Traverse.ts +2 -1
  31. package/dist/chunk-BKA7GVXL.mjs.map +0 -1
  32. /package/dist/{chunk-IXUCBTR3.mjs.map → chunk-7CQACHJI.mjs.map} +0 -0
  33. /package/dist/{chunk-3EYCIHXW.mjs.map → chunk-CJYYPKV3.mjs.map} +0 -0
  34. /package/dist/{chunk-Y4RD46AM.mjs.map → chunk-ELUSAGYQ.mjs.map} +0 -0
  35. /package/dist/{chunk-5GALY24M.mjs.map → chunk-F5HICSU2.mjs.map} +0 -0
  36. /package/dist/{chunk-PWYWE7H7.mjs.map → chunk-GB76XDBG.mjs.map} +0 -0
  37. /package/dist/{chunk-NE6FVUU7.mjs.map → chunk-HD6MZ4Q6.mjs.map} +0 -0
  38. /package/dist/{chunk-H6WLTQXF.mjs.map → chunk-J6HZAFMO.mjs.map} +0 -0
  39. /package/dist/{chunk-QKWQIRUO.mjs.map → chunk-JNRSMOA7.mjs.map} +0 -0
  40. /package/dist/{chunk-6TJC3RI3.mjs.map → chunk-TYXWSRB2.mjs.map} +0 -0
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  traverse
3
- } from "./chunk-BKA7GVXL.mjs";
3
+ } from "./chunk-SSROJBD5.mjs";
4
4
  import {
5
5
  isEqual
6
6
  } from "./chunk-OJW2KVY7.mjs";
7
- import {
8
- asJson,
9
- json
10
- } from "./chunk-CHNRVP7J.mjs";
11
7
  import {
12
8
  isPageList,
13
9
  toPageList
14
10
  } from "./chunk-3BXPK7FX.mjs";
11
+ import {
12
+ asJson,
13
+ json
14
+ } from "./chunk-CHNRVP7J.mjs";
15
15
  import {
16
16
  choose
17
17
  } from "./chunk-3DAZTFKD.mjs";
@@ -88,4 +88,4 @@ export {
88
88
  view,
89
89
  views
90
90
  };
91
- //# sourceMappingURL=chunk-IXUCBTR3.mjs.map
91
+ //# sourceMappingURL=chunk-7CQACHJI.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rest
3
- } from "./chunk-Y4RD46AM.mjs";
3
+ } from "./chunk-ELUSAGYQ.mjs";
4
4
  import {
5
5
  toHttpStatus
6
6
  } from "./chunk-24WJGYH4.mjs";
@@ -17,4 +17,4 @@ function toResponse(status, body, headers) {
17
17
  export {
18
18
  toResponse
19
19
  };
20
- //# sourceMappingURL=chunk-3EYCIHXW.mjs.map
20
+ //# sourceMappingURL=chunk-CJYYPKV3.mjs.map
@@ -1,10 +1,10 @@
1
- import {
2
- isResponse
3
- } from "./chunk-UYDZZAEK.mjs";
4
1
  import {
5
2
  HttpStatus,
6
3
  isHttpStatus
7
4
  } from "./chunk-24WJGYH4.mjs";
5
+ import {
6
+ isResponse
7
+ } from "./chunk-UYDZZAEK.mjs";
8
8
  import {
9
9
  choose
10
10
  } from "./chunk-3DAZTFKD.mjs";
@@ -52,4 +52,4 @@ export {
52
52
  rest,
53
53
  isRestResult
54
54
  };
55
- //# sourceMappingURL=chunk-Y4RD46AM.mjs.map
55
+ //# sourceMappingURL=chunk-ELUSAGYQ.mjs.map
@@ -2,12 +2,12 @@ import {
2
2
  required,
3
3
  valid
4
4
  } from "./chunk-Z7CGMLOT.mjs";
5
- import {
6
- Struct
7
- } from "./chunk-JEIESGLS.mjs";
8
5
  import {
9
6
  DateTime
10
7
  } from "./chunk-SJJ4E4HD.mjs";
8
+ import {
9
+ Struct
10
+ } from "./chunk-JEIESGLS.mjs";
11
11
  import {
12
12
  choose
13
13
  } from "./chunk-3DAZTFKD.mjs";
@@ -47,4 +47,4 @@ __decorateClass([
47
47
  export {
48
48
  Audit
49
49
  };
50
- //# sourceMappingURL=chunk-5GALY24M.mjs.map
50
+ //# sourceMappingURL=chunk-F5HICSU2.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api
3
- } from "./chunk-QKWQIRUO.mjs";
3
+ } from "./chunk-JNRSMOA7.mjs";
4
4
  import {
5
5
  Gateway
6
6
  } from "./chunk-ILJV7234.mjs";
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
43
43
  export {
44
44
  ApiGateway
45
45
  };
46
- //# sourceMappingURL=chunk-PWYWE7H7.mjs.map
46
+ //# sourceMappingURL=chunk-GB76XDBG.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ApiGateway
3
- } from "./chunk-PWYWE7H7.mjs";
3
+ } from "./chunk-GB76XDBG.mjs";
4
4
  import {
5
5
  Api
6
- } from "./chunk-QKWQIRUO.mjs";
6
+ } from "./chunk-JNRSMOA7.mjs";
7
7
  import {
8
8
  HttpStatus
9
9
  } from "./chunk-24WJGYH4.mjs";
@@ -54,4 +54,4 @@ var RouteGateway = class extends ApiGateway {
54
54
  export {
55
55
  RouteGateway
56
56
  };
57
- //# sourceMappingURL=chunk-NE6FVUU7.mjs.map
57
+ //# sourceMappingURL=chunk-HD6MZ4Q6.mjs.map
@@ -1,12 +1,12 @@
1
+ import {
2
+ HttpHeader
3
+ } from "./chunk-SW2OCUH3.mjs";
1
4
  import {
2
5
  toUuid
3
6
  } from "./chunk-LXQQ5N6S.mjs";
4
7
  import {
5
8
  ContentType
6
9
  } from "./chunk-YUFKMTUP.mjs";
7
- import {
8
- HttpHeader
9
- } from "./chunk-SW2OCUH3.mjs";
10
10
  import {
11
11
  ctx
12
12
  } from "./chunk-KK66VUSS.mjs";
@@ -87,4 +87,4 @@ export {
87
87
  RequestOptions,
88
88
  isRequestOptions
89
89
  };
90
- //# sourceMappingURL=chunk-H6WLTQXF.mjs.map
90
+ //# sourceMappingURL=chunk-J6HZAFMO.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  AxiosProvider
3
- } from "./chunk-6TJC3RI3.mjs";
3
+ } from "./chunk-TYXWSRB2.mjs";
4
4
  import {
5
5
  HttpVerb
6
6
  } from "./chunk-4KB2NPKQ.mjs";
7
7
  import {
8
8
  RequestOptions,
9
9
  toPageOptions
10
- } from "./chunk-H6WLTQXF.mjs";
10
+ } from "./chunk-J6HZAFMO.mjs";
11
11
 
12
12
  // src/services/Api.ts
13
13
  var Api = class {
@@ -76,4 +76,4 @@ export {
76
76
  Api,
77
77
  api
78
78
  };
79
- //# sourceMappingURL=chunk-QKWQIRUO.mjs.map
79
+ //# sourceMappingURL=chunk-JNRSMOA7.mjs.map
@@ -1,5 +1,6 @@
1
1
  // src/utils/Traverse.ts
2
- var traverse = (subject = {}, property = "") => {
2
+ var traverse = (subject, property = "") => {
3
+ subject ??= {};
3
4
  const props = property.split(".");
4
5
  const p = props.shift();
5
6
  return props.length === 0 ? subject[p] : traverse(subject[p], props.join("."));
@@ -26,4 +27,4 @@ export {
26
27
  traverseSet,
27
28
  accumulate
28
29
  };
29
- //# sourceMappingURL=chunk-BKA7GVXL.mjs.map
30
+ //# sourceMappingURL=chunk-SSROJBD5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/Traverse.ts"],"sourcesContent":["import { AnyKey } from '../types/AnyKey';\n\nexport const traverse = (subject: unknown, property = ''): unknown => {\n subject ??= {};\n const props = property.split('.');\n const p = props.shift() as string;\n return props.length === 0 ? (subject as any)[p] : traverse((subject as any)[p], props.join('.'));\n};\n\nexport const traverseSet = <T>(subject: T, property: AnyKey<T>, value: unknown): unknown => {\n const props = property.split('.');\n const p = props.shift() as string;\n return {\n ...(subject as any),\n [p]: props.length === 0 ? value : traverseSet((subject as any)[p], props.join('.'), value),\n } as T;\n};\n\nexport const accumulate = <T>(items: T[], ...keys: AnyKey<T>[]): T[] =>\n items.map((t, i, arr) => {\n const acc = keys.reduce(\n (acc, v) => traverseSet(acc, v, i === 0 ? traverse(t, v) : (traverse(arr[i - 1], v) as number) + (traverse(t, v) as number)) as T,\n t\n );\n arr[i] = acc;\n return acc;\n });\n"],"mappings":";AAEO,IAAM,WAAW,CAAC,SAAkB,WAAW,OAAgB;AACpE,cAAY,CAAC;AACb,QAAM,QAAQ,SAAS,MAAM,GAAG;AAChC,QAAM,IAAI,MAAM,MAAM;AACtB,SAAO,MAAM,WAAW,IAAK,QAAgB,CAAC,IAAI,SAAU,QAAgB,CAAC,GAAG,MAAM,KAAK,GAAG,CAAC;AACjG;AAEO,IAAM,cAAc,CAAI,SAAY,UAAqB,UAA4B;AAC1F,QAAM,QAAQ,SAAS,MAAM,GAAG;AAChC,QAAM,IAAI,MAAM,MAAM;AACtB,SAAO;AAAA,IACL,GAAI;AAAA,IACJ,CAAC,CAAC,GAAG,MAAM,WAAW,IAAI,QAAQ,YAAa,QAAgB,CAAC,GAAG,MAAM,KAAK,GAAG,GAAG,KAAK;AAAA,EAC3F;AACF;AAEO,IAAM,aAAa,CAAI,UAAe,SAC3C,MAAM,IAAI,CAAC,GAAG,GAAG,QAAQ;AACvB,QAAM,MAAM,KAAK;AAAA,IACf,CAACA,MAAK,MAAM,YAAYA,MAAK,GAAG,MAAM,IAAI,SAAS,GAAG,CAAC,IAAK,SAAS,IAAI,IAAI,CAAC,GAAG,CAAC,IAAgB,SAAS,GAAG,CAAC,CAAY;AAAA,IAC3H;AAAA,EACF;AACA,MAAI,CAAC,IAAI;AACT,SAAO;AACT,CAAC;","names":["acc"]}
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  toResponse
3
- } from "./chunk-3EYCIHXW.mjs";
3
+ } from "./chunk-CJYYPKV3.mjs";
4
4
  import {
5
5
  isRestResult
6
- } from "./chunk-Y4RD46AM.mjs";
6
+ } from "./chunk-ELUSAGYQ.mjs";
7
7
  import {
8
8
  HttpStatus
9
9
  } from "./chunk-24WJGYH4.mjs";
10
10
  import {
11
11
  RequestOptions
12
- } from "./chunk-H6WLTQXF.mjs";
12
+ } from "./chunk-J6HZAFMO.mjs";
13
13
  import {
14
14
  cacheAge
15
15
  } from "./chunk-GKDMM6XO.mjs";
@@ -53,4 +53,4 @@ var AxiosProvider = class {
53
53
  export {
54
54
  AxiosProvider
55
55
  };
56
- //# sourceMappingURL=chunk-6TJC3RI3.mjs.map
56
+ //# sourceMappingURL=chunk-TYXWSRB2.mjs.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Audit
3
- } from "../chunk-5GALY24M.mjs";
3
+ } from "../chunk-F5HICSU2.mjs";
4
4
  import "../chunk-Z7CGMLOT.mjs";
5
- import "../chunk-JEIESGLS.mjs";
6
5
  import "../chunk-SJJ4E4HD.mjs";
7
6
  import "../chunk-4NI3O7DE.mjs";
8
7
  import "../chunk-ADJAEGCT.mjs";
8
+ import "../chunk-JEIESGLS.mjs";
9
9
  import "../chunk-CHNRVP7J.mjs";
10
10
  import "../chunk-3DAZTFKD.mjs";
11
11
  import "../chunk-OFGI5FLG.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  toId
3
3
  } from "../chunk-5YM5CLOG.mjs";
4
+ import "../chunk-LXQQ5N6S.mjs";
4
5
  import {
5
6
  required
6
7
  } from "../chunk-Z7CGMLOT.mjs";
8
+ import "../chunk-ADJAEGCT.mjs";
7
9
  import {
8
10
  Struct
9
11
  } from "../chunk-JEIESGLS.mjs";
10
- import "../chunk-ADJAEGCT.mjs";
11
- import "../chunk-LXQQ5N6S.mjs";
12
12
  import {
13
13
  json
14
14
  } from "../chunk-CHNRVP7J.mjs";
@@ -1,19 +1,19 @@
1
- import {
2
- Audit
3
- } from "../chunk-5GALY24M.mjs";
4
1
  import {
5
2
  toId
6
3
  } from "../chunk-5YM5CLOG.mjs";
4
+ import "../chunk-LXQQ5N6S.mjs";
5
+ import {
6
+ Audit
7
+ } from "../chunk-F5HICSU2.mjs";
7
8
  import {
8
9
  required
9
10
  } from "../chunk-Z7CGMLOT.mjs";
10
- import {
11
- Struct
12
- } from "../chunk-JEIESGLS.mjs";
13
11
  import "../chunk-SJJ4E4HD.mjs";
14
12
  import "../chunk-4NI3O7DE.mjs";
15
13
  import "../chunk-ADJAEGCT.mjs";
16
- import "../chunk-LXQQ5N6S.mjs";
14
+ import {
15
+ Struct
16
+ } from "../chunk-JEIESGLS.mjs";
17
17
  import {
18
18
  json
19
19
  } from "../chunk-CHNRVP7J.mjs";
@@ -2,10 +2,10 @@ import {
2
2
  RequestOptions,
3
3
  isRequestOptions,
4
4
  toPageOptions
5
- } from "../chunk-H6WLTQXF.mjs";
5
+ } from "../chunk-J6HZAFMO.mjs";
6
+ import "../chunk-SW2OCUH3.mjs";
6
7
  import "../chunk-LXQQ5N6S.mjs";
7
8
  import "../chunk-YUFKMTUP.mjs";
8
- import "../chunk-SW2OCUH3.mjs";
9
9
  import "../chunk-KK66VUSS.mjs";
10
10
  import "../chunk-55B7FIAE.mjs";
11
11
  import "../chunk-H7TRIY7A.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  isRestResult,
3
3
  rest
4
- } from "../chunk-Y4RD46AM.mjs";
5
- import "../chunk-UYDZZAEK.mjs";
4
+ } from "../chunk-ELUSAGYQ.mjs";
6
5
  import "../chunk-24WJGYH4.mjs";
6
+ import "../chunk-UYDZZAEK.mjs";
7
7
  import "../chunk-3DAZTFKD.mjs";
8
8
  import "../chunk-OFGI5FLG.mjs";
9
9
  import "../chunk-VVWELITO.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toResponse
3
- } from "../chunk-3EYCIHXW.mjs";
4
- import "../chunk-Y4RD46AM.mjs";
5
- import "../chunk-UYDZZAEK.mjs";
3
+ } from "../chunk-CJYYPKV3.mjs";
4
+ import "../chunk-ELUSAGYQ.mjs";
6
5
  import "../chunk-24WJGYH4.mjs";
6
+ import "../chunk-UYDZZAEK.mjs";
7
7
  import "../chunk-3DAZTFKD.mjs";
8
8
  import "../chunk-OFGI5FLG.mjs";
9
9
  import "../chunk-VVWELITO.mjs";
package/dist/index.js CHANGED
@@ -2687,7 +2687,8 @@ var MappedRouteGateway = class extends RouteGateway {
2687
2687
  };
2688
2688
 
2689
2689
  // src/utils/Traverse.ts
2690
- var traverse = (subject = {}, property = "") => {
2690
+ var traverse = (subject, property = "") => {
2691
+ subject ??= {};
2691
2692
  const props = property.split(".");
2692
2693
  const p = props.shift();
2693
2694
  return props.length === 0 ? subject[p] : traverse(subject[p], props.join("."));