@thisisagile/easy 17.12.1 → 17.13.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-WFJW3CXD.mjs → chunk-BM7QLQAQ.mjs} +4 -4
- package/dist/{chunk-M2I3TRAA.mjs → chunk-HAPQZXZM.mjs} +5 -5
- package/dist/{chunk-H6ZVPJNT.mjs → chunk-MNTKAUHO.mjs} +2 -2
- package/dist/chunk-MNTKAUHO.mjs.map +1 -0
- package/dist/{chunk-INYB7PBK.mjs → chunk-QT5TKJT4.mjs} +2 -2
- package/dist/{chunk-W6VZANW7.mjs → chunk-RDLH6MXX.mjs} +2 -1
- package/dist/chunk-RDLH6MXX.mjs.map +1 -0
- package/dist/{chunk-MJKWY4F4.mjs → chunk-RSTN6E6S.mjs} +4 -4
- package/dist/{chunk-UHNJKMHB.mjs → chunk-SZMAMBMD.mjs} +4 -4
- package/dist/{chunk-MKMTHBLE.mjs → chunk-VQRR4XHC.mjs} +2 -2
- package/dist/{chunk-S62CMWWY.mjs → chunk-WAKTY3LS.mjs} +3 -3
- package/dist/{chunk-T55MAIFL.mjs → chunk-WD6VLSJD.mjs} +5 -5
- package/dist/{chunk-3EUPCIVY.mjs → chunk-XZ5M52TO.mjs} +3 -3
- package/dist/domain/Audit.mjs +3 -3
- package/dist/domain/Child.mjs +2 -2
- package/dist/domain/DateTime.mjs +1 -1
- package/dist/domain/Entity.mjs +7 -7
- package/dist/http/ContentType.d.ts +1 -0
- package/dist/http/ContentType.mjs +1 -1
- package/dist/http/RequestOptions.mjs +3 -3
- package/dist/http/RestResult.mjs +2 -2
- package/dist/http/toResponse.mjs +3 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- 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 +13 -13
- package/dist/services/RouteGateway.mjs +12 -12
- package/dist/services/ViewRouteGateway.mjs +14 -14
- package/dist/utils/View.mjs +2 -2
- package/package.json +1 -1
- package/src/domain/DateTime.ts +1 -1
- package/src/http/ContentType.ts +1 -0
- package/dist/chunk-H6ZVPJNT.mjs.map +0 -1
- package/dist/chunk-W6VZANW7.mjs.map +0 -1
- /package/dist/{chunk-WFJW3CXD.mjs.map → chunk-BM7QLQAQ.mjs.map} +0 -0
- /package/dist/{chunk-M2I3TRAA.mjs.map → chunk-HAPQZXZM.mjs.map} +0 -0
- /package/dist/{chunk-INYB7PBK.mjs.map → chunk-QT5TKJT4.mjs.map} +0 -0
- /package/dist/{chunk-MJKWY4F4.mjs.map → chunk-RSTN6E6S.mjs.map} +0 -0
- /package/dist/{chunk-UHNJKMHB.mjs.map → chunk-SZMAMBMD.mjs.map} +0 -0
- /package/dist/{chunk-MKMTHBLE.mjs.map → chunk-VQRR4XHC.mjs.map} +0 -0
- /package/dist/{chunk-S62CMWWY.mjs.map → chunk-WAKTY3LS.mjs.map} +0 -0
- /package/dist/{chunk-T55MAIFL.mjs.map → chunk-WD6VLSJD.mjs.map} +0 -0
- /package/dist/{chunk-3EUPCIVY.mjs.map → chunk-XZ5M52TO.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isResponse
|
|
3
|
+
} from "./chunk-UYDZZAEK.mjs";
|
|
1
4
|
import {
|
|
2
5
|
HttpStatus,
|
|
3
6
|
isHttpStatus
|
|
4
7
|
} from "./chunk-UGUAZFM4.mjs";
|
|
5
|
-
import {
|
|
6
|
-
isResponse
|
|
7
|
-
} from "./chunk-UYDZZAEK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
choose
|
|
10
10
|
} from "./chunk-JICCIN24.mjs";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
rest,
|
|
53
53
|
isRestResult
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-BM7QLQAQ.mjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpHeader
|
|
3
|
-
} from "./chunk-SW2OCUH3.mjs";
|
|
4
1
|
import {
|
|
5
2
|
toUuid
|
|
6
3
|
} from "./chunk-LXQQ5N6S.mjs";
|
|
7
4
|
import {
|
|
8
5
|
ContentType
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RDLH6MXX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
HttpHeader
|
|
9
|
+
} from "./chunk-SW2OCUH3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ctx
|
|
12
12
|
} from "./chunk-P354LSDN.mjs";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
RequestOptions,
|
|
88
88
|
isRequestOptions
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-HAPQZXZM.mjs.map
|
|
@@ -28,7 +28,7 @@ Settings.defaultZone = "utc";
|
|
|
28
28
|
var DateTime = class _DateTime extends Value {
|
|
29
29
|
luxon;
|
|
30
30
|
constructor(value, format) {
|
|
31
|
-
const luxon = choose(value).type(isString, (v) => format ? LuxonDateTime.fromFormat(v, format, { setZone: true }) : LuxonDateTime.fromISO(v, { setZone: true })).type(isNumber, (v) => LuxonDateTime.fromMillis(v)).type(isDate, (v) => LuxonDateTime.fromJSDate(v)).type(isDateTime, (v) => v.luxon).else(value
|
|
31
|
+
const luxon = choose(value).type(isString, (v) => format ? LuxonDateTime.fromFormat(v, format, { setZone: true }) : LuxonDateTime.fromISO(v, { setZone: true })).type(isNumber, (v) => LuxonDateTime.fromMillis(v)).type(isDate, (v) => LuxonDateTime.fromJSDate(v)).type(isDateTime, (v) => v.luxon).else(value instanceof LuxonDateTime ? value : LuxonDateTime.fromISO(void 0));
|
|
32
32
|
super(luxon.toISO() ?? void 0);
|
|
33
33
|
this.luxon = luxon;
|
|
34
34
|
}
|
|
@@ -119,4 +119,4 @@ export {
|
|
|
119
119
|
isDateTime,
|
|
120
120
|
dt
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-MNTKAUHO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/domain/DateTime.ts"],"sourcesContent":["import { DateTime as LuxonDateTime, DateTimeUnit as LuxonDateTimeUnit, DurationUnit as LuxonDurationUnit, Settings } from 'luxon';\nimport { Value } from '../types/Value';\nimport { Optional } from '../types/Types';\nimport { choose } from '../types/Case';\nimport { isDefined, isNumber, isString } from '../types/Is';\nimport { isDate } from '../types/IsDate';\nimport { isA } from '../types/IsA';\nimport { ifDefined } from '../utils/If';\nimport { JsonValue } from '../types/Json';\nimport { seconds } from '../utils/Seconds';\n\nSettings.defaultZone = 'utc';\n\nexport type DateTimeUnit = LuxonDateTimeUnit;\nexport type DurationUnit = LuxonDurationUnit;\nexport type Duration = Partial<Record<DurationUnit, number>>;\n\nexport type DiffOptions = {\n rounding: 'floor' | 'ceil' | 'round';\n};\n\ntype DatetimeInput = string | number | Date | DateTime | null;\n\nexport class DateTime extends Value<Optional<string>> {\n protected readonly luxon: LuxonDateTime;\n\n constructor(value?: DatetimeInput);\n constructor(value?: string, format?: string);\n constructor(value?: DatetimeInput, format?: string) {\n const luxon = choose(value)\n .type(isString, v => (format ? LuxonDateTime.fromFormat(v, format, { setZone: true }) : LuxonDateTime.fromISO(v, { setZone: true })))\n .type(isNumber, v => LuxonDateTime.fromMillis(v))\n .type(isDate, v => LuxonDateTime.fromJSDate(v))\n .type(isDateTime, v => v.luxon)\n // Allow constructing with LuxonDateTime without exposing types\n .else(value instanceof LuxonDateTime ? value : LuxonDateTime.fromISO(undefined as any));\n\n super(luxon.toISO() ?? undefined);\n this.luxon = luxon;\n }\n\n static get now(): DateTime {\n return new DateTime(LuxonDateTime.utc() as any);\n }\n\n get isValid(): boolean {\n return isDefined(this.value) && this.utc.isValid;\n }\n\n /**\n * @deprecated Deprecated in favor for DateTime.from as that also accepts locales and another DateTime\n */\n get fromNow(): string {\n return this.from();\n }\n\n protected get utc(): LuxonDateTime {\n return this.luxon.setZone('utc');\n }\n\n from(locale?: string): string;\n from(date?: DateTime, locale?: string): string;\n from(dateOrLocale?: string | DateTime, maybeLocale?: string): string {\n const date: Optional<DateTime> = isA<DateTime>(dateOrLocale) ? dateOrLocale : undefined;\n const locale: string = (isString(dateOrLocale) ? dateOrLocale : undefined) ?? maybeLocale ?? 'en';\n return ifDefined(\n date,\n d => this.utc.setLocale(locale).toRelative({ base: d.utc }),\n () => this.utc.setLocale(locale).toRelative()\n ) ?? \"\";\n }\n\n isAfter(dt: DateTime): boolean {\n return this.utc > dt.utc;\n }\n\n isBefore(dt: DateTime): boolean {\n return this.utc < dt.utc;\n }\n\n equals(dt: DateTime): boolean {\n return this.utc.hasSame(dt.utc, 'millisecond');\n }\n\n add(n: number, unit?: DurationUnit): DateTime;\n add(duration: Duration): DateTime;\n add(n: number | Duration, unit: DurationUnit = 'day'): DateTime {\n return new DateTime(this.luxon.plus(isNumber(n) ? { [unit]: n } : n) as any);\n }\n\n subtract(n: number, unit?: DurationUnit): DateTime;\n subtract(duration: Duration): DateTime;\n subtract(n: number | Duration, unit: DurationUnit = 'day'): DateTime {\n return new DateTime(this.luxon.minus(isNumber(n) ? { [unit]: n } : n) as any);\n }\n\n diff(other: DateTime, unit: DateTimeUnit = 'day', opts?: DiffOptions): number {\n return Math[opts?.rounding ?? 'floor'](this.utc.diff(other.utc).as(unit));\n }\n\n startOf(unit: DateTimeUnit = 'day'): DateTime {\n return new DateTime(this.luxon.startOf(unit) as any);\n }\n\n endOf(unit: DateTimeUnit = 'day'): DateTime {\n return new DateTime(this.luxon.endOf(unit) as any);\n }\n\n isWeekend(): boolean {\n return this.luxon.isWeekend;\n }\n\n withZone(zone: string): DateTime {\n return new DateTime(this.luxon.setZone(zone) as any);\n }\n\n toString(): string {\n return this.value ?? '';\n }\n\n toJSON(): JsonValue {\n return this.utc.toISO();\n }\n\n toFormat(format: string): string {\n return this.luxon.toFormat(format);\n }\n\n toLocale(locale = 'nl-NL', format = 'D'): string {\n return this.luxon.setLocale(locale).toFormat(format);\n }\n\n toFull(locale?: string): string {\n return this.toLocale(locale, 'DDD');\n }\n\n toDate(): Optional<Date> {\n return this.isValid ? this.utc.toJSDate() : undefined;\n }\n\n toEpoch(): number {\n return this.luxon.toMillis();\n }\n\n ago(end: DateTime = DateTime.now): string {\n return seconds.toText(end.diff(this, 'second'));\n }\n}\n\nexport const isDateTime = (dt?: unknown): dt is DateTime => isDefined(dt) && dt instanceof DateTime;\n\nexport const dt = (dt?: DatetimeInput): DateTime => new DateTime(dt);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY,eAAqF,gBAAgB;AAW1H,SAAS,cAAc;AAYhB,IAAM,WAAN,MAAM,kBAAiB,MAAwB;AAAA,EACjC;AAAA,EAInB,YAAY,OAAuB,QAAiB;AAClD,UAAM,QAAQ,OAAO,KAAK,EACvB,KAAK,UAAU,OAAM,SAAS,cAAc,WAAW,GAAG,QAAQ,EAAE,SAAS,KAAK,CAAC,IAAI,cAAc,QAAQ,GAAG,EAAE,SAAS,KAAK,CAAC,CAAE,EACnI,KAAK,UAAU,OAAK,cAAc,WAAW,CAAC,CAAC,EAC/C,KAAK,QAAQ,OAAK,cAAc,WAAW,CAAC,CAAC,EAC7C,KAAK,YAAY,OAAK,EAAE,KAAK,EAE7B,KAAK,iBAAiB,gBAAgB,QAAQ,cAAc,QAAQ,MAAgB,CAAC;AAExF,UAAM,MAAM,MAAM,KAAK,MAAS;AAChC,SAAK,QAAQ;AAAA,EACf;AAAA,EAEA,WAAW,MAAgB;AACzB,WAAO,IAAI,UAAS,cAAc,IAAI,CAAQ;AAAA,EAChD;AAAA,EAEA,IAAI,UAAmB;AACrB,WAAO,UAAU,KAAK,KAAK,KAAK,KAAK,IAAI;AAAA,EAC3C;A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"./chunk-5YMCCYYA.mjs";
|
|
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
|
|
|
43
43
|
export {
|
|
44
44
|
ApiGateway
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-QT5TKJT4.mjs.map
|
|
@@ -18,6 +18,7 @@ var ContentType = class _ContentType extends Enum {
|
|
|
18
18
|
}
|
|
19
19
|
static Form = new _ContentType("form", "application/x-www-form-urlencoded", (b) => formUrlEncoded(b));
|
|
20
20
|
static Json = new _ContentType("json", "application/json", (b) => b);
|
|
21
|
+
static RawJson = new _ContentType("rawJson", "application/json", (b) => b);
|
|
21
22
|
static Stream = new _ContentType("stream", "application/octet-stream");
|
|
22
23
|
static Text = new _ContentType("text", "text/plain");
|
|
23
24
|
static Xml = new _ContentType("xml", "application/xml");
|
|
@@ -27,4 +28,4 @@ var ContentType = class _ContentType extends Enum {
|
|
|
27
28
|
export {
|
|
28
29
|
ContentType
|
|
29
30
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-RDLH6MXX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/http/ContentType.ts"],"sourcesContent":["import formUrlEncoded from 'form-urlencoded';\nimport { Enum } from '../types/Enum';\nimport { Get, ofGet } from '../types/Get';\nimport { asString } from '../types/Text';\n\nexport class ContentType extends Enum {\n static Form = new ContentType('form', 'application/x-www-form-urlencoded', b => formUrlEncoded(b));\n static Json = new ContentType('json', 'application/json', b => b);\n static RawJson = new ContentType('rawJson', 'application/json', b => b);\n static Stream = new ContentType('stream', 'application/octet-stream');\n static Text = new ContentType('text', 'text/plain');\n static Xml = new ContentType('xml', 'application/xml');\n\n private constructor(\n name: string,\n readonly type: string,\n protected readonly encoder: Get<string> = b => asString(b)\n ) {\n super(name, type);\n }\n\n encode = (body?: unknown): string => ofGet(this.encoder, body);\n}\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,oBAAoB;AAKpB,IAAM,cAAN,MAAM,qBAAoB,KAAK;AAAA,EAQ5B,YACN,MACS,MACU,UAAuB,OAAK,SAAS,CAAC,GACzD;AACA,UAAM,MAAM,IAAI;AAHP;AACU;AAAA,EAGrB;AAAA,EAbA,OAAO,OAAO,IAAI,aAAY,QAAQ,qCAAqC,OAAK,eAAe,CAAC,CAAC;AAAA,EACjG,OAAO,OAAO,IAAI,aAAY,QAAQ,oBAAoB,OAAK,CAAC;AAAA,EAChE,OAAO,UAAU,IAAI,aAAY,WAAW,oBAAoB,OAAK,CAAC;AAAA,EACtE,OAAO,SAAS,IAAI,aAAY,UAAU,0BAA0B;AAAA,EACpE,OAAO,OAAO,IAAI,aAAY,QAAQ,YAAY;AAAA,EAClD,OAAO,MAAM,IAAI,aAAY,OAAO,iBAAiB;AAAA,EAUrD,SAAS,CAAC,SAA2B,MAAM,KAAK,SAAS,IAAI;AAC/D;","names":[]}
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
required,
|
|
3
3
|
valid
|
|
4
4
|
} from "./chunk-3LJLCDBY.mjs";
|
|
5
|
-
import {
|
|
6
|
-
DateTime
|
|
7
|
-
} from "./chunk-H6ZVPJNT.mjs";
|
|
8
5
|
import {
|
|
9
6
|
Struct
|
|
10
7
|
} from "./chunk-545DNQMV.mjs";
|
|
8
|
+
import {
|
|
9
|
+
DateTime
|
|
10
|
+
} from "./chunk-MNTKAUHO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
choose
|
|
13
13
|
} from "./chunk-JICCIN24.mjs";
|
|
@@ -47,4 +47,4 @@ __decorateClass([
|
|
|
47
47
|
export {
|
|
48
48
|
Audit
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-RSTN6E6S.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQRR4XHC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isRestResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BM7QLQAQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-UGUAZFM4.mjs";
|
|
10
10
|
import {
|
|
11
11
|
RequestOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HAPQZXZM.mjs";
|
|
13
13
|
import {
|
|
14
14
|
cacheAge
|
|
15
15
|
} from "./chunk-L6CBLUX3.mjs";
|
|
@@ -53,4 +53,4 @@ var AxiosProvider = class {
|
|
|
53
53
|
export {
|
|
54
54
|
AxiosProvider
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-SZMAMBMD.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BM7QLQAQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toHttpStatus
|
|
6
6
|
} from "./chunk-UGUAZFM4.mjs";
|
|
@@ -17,4 +17,4 @@ function toResponse(status, body, headers) {
|
|
|
17
17
|
export {
|
|
18
18
|
toResponse
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-VQRR4XHC.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiGateway
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QT5TKJT4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Api
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XZ5M52TO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-UGUAZFM4.mjs";
|
|
@@ -54,4 +54,4 @@ var RouteGateway = class extends ApiGateway {
|
|
|
54
54
|
export {
|
|
55
55
|
RouteGateway
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-WAKTY3LS.mjs.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
isEqual
|
|
6
6
|
} from "./chunk-KZBVIWZZ.mjs";
|
|
7
|
-
import {
|
|
8
|
-
isPageList,
|
|
9
|
-
toPageList
|
|
10
|
-
} from "./chunk-6K4R4SKN.mjs";
|
|
11
7
|
import {
|
|
12
8
|
asJson,
|
|
13
9
|
json
|
|
14
10
|
} from "./chunk-6NJ65PSU.mjs";
|
|
11
|
+
import {
|
|
12
|
+
isPageList,
|
|
13
|
+
toPageList
|
|
14
|
+
} from "./chunk-6K4R4SKN.mjs";
|
|
15
15
|
import {
|
|
16
16
|
choose
|
|
17
17
|
} from "./chunk-JICCIN24.mjs";
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
view,
|
|
89
89
|
views
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-WD6VLSJD.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AxiosProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SZMAMBMD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpVerb
|
|
6
6
|
} from "./chunk-YMTOGXYB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
RequestOptions,
|
|
9
9
|
toPageOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HAPQZXZM.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-
|
|
79
|
+
//# sourceMappingURL=chunk-XZ5M52TO.mjs.map
|
package/dist/domain/Audit.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Audit
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RSTN6E6S.mjs";
|
|
4
4
|
import "../chunk-3LJLCDBY.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-545DNQMV.mjs";
|
|
6
|
+
import "../chunk-MNTKAUHO.mjs";
|
|
6
7
|
import "../chunk-JQQGQCYH.mjs";
|
|
7
8
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
-
import "../chunk-545DNQMV.mjs";
|
|
9
9
|
import "../chunk-6NJ65PSU.mjs";
|
|
10
10
|
import "../chunk-JICCIN24.mjs";
|
|
11
11
|
import "../chunk-OFGI5FLG.mjs";
|
package/dist/domain/Child.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toId
|
|
3
3
|
} from "../chunk-5YM5CLOG.mjs";
|
|
4
|
-
import "../chunk-LXQQ5N6S.mjs";
|
|
5
4
|
import {
|
|
6
5
|
required
|
|
7
6
|
} from "../chunk-3LJLCDBY.mjs";
|
|
8
|
-
import "../chunk-ADJAEGCT.mjs";
|
|
9
7
|
import {
|
|
10
8
|
Struct
|
|
11
9
|
} from "../chunk-545DNQMV.mjs";
|
|
10
|
+
import "../chunk-ADJAEGCT.mjs";
|
|
11
|
+
import "../chunk-LXQQ5N6S.mjs";
|
|
12
12
|
import {
|
|
13
13
|
json
|
|
14
14
|
} from "../chunk-6NJ65PSU.mjs";
|
package/dist/domain/DateTime.mjs
CHANGED
package/dist/domain/Entity.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Audit
|
|
3
|
+
} from "../chunk-RSTN6E6S.mjs";
|
|
1
4
|
import {
|
|
2
5
|
toId
|
|
3
6
|
} from "../chunk-5YM5CLOG.mjs";
|
|
4
|
-
import "../chunk-LXQQ5N6S.mjs";
|
|
5
|
-
import {
|
|
6
|
-
Audit
|
|
7
|
-
} from "../chunk-MJKWY4F4.mjs";
|
|
8
7
|
import {
|
|
9
8
|
required
|
|
10
9
|
} from "../chunk-3LJLCDBY.mjs";
|
|
11
|
-
import "../chunk-H6ZVPJNT.mjs";
|
|
12
|
-
import "../chunk-JQQGQCYH.mjs";
|
|
13
|
-
import "../chunk-ADJAEGCT.mjs";
|
|
14
10
|
import {
|
|
15
11
|
Struct
|
|
16
12
|
} from "../chunk-545DNQMV.mjs";
|
|
13
|
+
import "../chunk-MNTKAUHO.mjs";
|
|
14
|
+
import "../chunk-JQQGQCYH.mjs";
|
|
15
|
+
import "../chunk-ADJAEGCT.mjs";
|
|
16
|
+
import "../chunk-LXQQ5N6S.mjs";
|
|
17
17
|
import {
|
|
18
18
|
json
|
|
19
19
|
} from "../chunk-6NJ65PSU.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
RequestOptions,
|
|
3
3
|
isRequestOptions,
|
|
4
4
|
toPageOptions
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-SW2OCUH3.mjs";
|
|
5
|
+
} from "../chunk-HAPQZXZM.mjs";
|
|
7
6
|
import "../chunk-LXQQ5N6S.mjs";
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-RDLH6MXX.mjs";
|
|
8
|
+
import "../chunk-SW2OCUH3.mjs";
|
|
9
9
|
import "../chunk-P354LSDN.mjs";
|
|
10
10
|
import "../chunk-FIQ32LMI.mjs";
|
|
11
11
|
import "../chunk-JVDKV5HE.mjs";
|
package/dist/http/RestResult.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRestResult,
|
|
3
3
|
rest
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-UGUAZFM4.mjs";
|
|
4
|
+
} from "../chunk-BM7QLQAQ.mjs";
|
|
6
5
|
import "../chunk-UYDZZAEK.mjs";
|
|
6
|
+
import "../chunk-UGUAZFM4.mjs";
|
|
7
7
|
import "../chunk-JICCIN24.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
9
|
import "../chunk-MNDGLLBO.mjs";
|
package/dist/http/toResponse.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toResponse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-UGUAZFM4.mjs";
|
|
3
|
+
} from "../chunk-VQRR4XHC.mjs";
|
|
4
|
+
import "../chunk-BM7QLQAQ.mjs";
|
|
6
5
|
import "../chunk-UYDZZAEK.mjs";
|
|
6
|
+
import "../chunk-UGUAZFM4.mjs";
|
|
7
7
|
import "../chunk-JICCIN24.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
9
|
import "../chunk-MNDGLLBO.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1695,7 +1695,7 @@ import_luxon.Settings.defaultZone = "utc";
|
|
|
1695
1695
|
var DateTime = class _DateTime extends Value {
|
|
1696
1696
|
luxon;
|
|
1697
1697
|
constructor(value, format) {
|
|
1698
|
-
const luxon = choose(value).type(isString, (v) => format ? import_luxon.DateTime.fromFormat(v, format, { setZone: true }) : import_luxon.DateTime.fromISO(v, { setZone: true })).type(isNumber, (v) => import_luxon.DateTime.fromMillis(v)).type(isDate, (v) => import_luxon.DateTime.fromJSDate(v)).type(isDateTime, (v) => v.luxon).else(value
|
|
1698
|
+
const luxon = choose(value).type(isString, (v) => format ? import_luxon.DateTime.fromFormat(v, format, { setZone: true }) : import_luxon.DateTime.fromISO(v, { setZone: true })).type(isNumber, (v) => import_luxon.DateTime.fromMillis(v)).type(isDate, (v) => import_luxon.DateTime.fromJSDate(v)).type(isDateTime, (v) => v.luxon).else(value instanceof import_luxon.DateTime ? value : import_luxon.DateTime.fromISO(void 0));
|
|
1699
1699
|
super(luxon.toISO() ?? void 0);
|
|
1700
1700
|
this.luxon = luxon;
|
|
1701
1701
|
}
|
|
@@ -2080,6 +2080,7 @@ var ContentType = class _ContentType extends Enum {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
static Form = new _ContentType("form", "application/x-www-form-urlencoded", (b) => (0, import_form_urlencoded.default)(b));
|
|
2082
2082
|
static Json = new _ContentType("json", "application/json", (b) => b);
|
|
2083
|
+
static RawJson = new _ContentType("rawJson", "application/json", (b) => b);
|
|
2083
2084
|
static Stream = new _ContentType("stream", "application/octet-stream");
|
|
2084
2085
|
static Text = new _ContentType("text", "text/plain");
|
|
2085
2086
|
static Xml = new _ContentType("xml", "application/xml");
|