@thisisagile/easy 17.6.1 → 17.6.3
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-D2QZ2MZW.mjs → chunk-2JBEMSUS.mjs} +4 -4
- package/dist/{chunk-IYNKWAG2.mjs → chunk-36UMET5S.mjs} +3 -3
- package/dist/{chunk-HVUWHSLQ.mjs → chunk-3F26HWNG.mjs} +5 -5
- package/dist/{chunk-TQCYECSO.mjs → chunk-3IJ3RO5H.mjs} +2 -2
- package/dist/chunk-3IJ3RO5H.mjs.map +1 -0
- package/dist/{chunk-PCBS3IFK.mjs → chunk-ECBSY7Z7.mjs} +2 -2
- package/dist/{chunk-BOI6JLRI.mjs → chunk-KTYF3X3T.mjs} +4 -4
- package/dist/{chunk-QNCTIBCB.mjs → chunk-M6KW6MUX.mjs} +2 -2
- package/dist/{chunk-5AD7SHET.mjs → chunk-RS3S3CZK.mjs} +4 -4
- package/dist/{chunk-3GIKFZUG.mjs → chunk-T5HT32ZD.mjs} +4 -4
- package/dist/{chunk-KI2XL6FZ.mjs → chunk-V4VRNLTA.mjs} +3 -3
- package/dist/domain/Audit.mjs +3 -3
- package/dist/domain/Child.mjs +2 -2
- package/dist/domain/DateTime.d.ts +4 -2
- package/dist/domain/DateTime.mjs +1 -1
- package/dist/domain/Entity.mjs +7 -7
- package/dist/http/RequestOptions.mjs +2 -2
- package/dist/http/RestResult.mjs +2 -2
- package/dist/http/toResponse.mjs +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/Api.mjs +8 -8
- package/dist/services/ApiGateway.mjs +10 -10
- package/dist/services/AxiosProvider.mjs +7 -7
- package/dist/services/MappedRouteGateway.mjs +12 -12
- package/dist/services/RouteGateway.mjs +11 -11
- package/dist/services/ViewRouteGateway.mjs +13 -13
- package/dist/utils/View.mjs +2 -2
- package/package.json +2 -2
- package/src/domain/DateTime.ts +4 -2
- package/dist/chunk-TQCYECSO.mjs.map +0 -1
- /package/dist/{chunk-D2QZ2MZW.mjs.map → chunk-2JBEMSUS.mjs.map} +0 -0
- /package/dist/{chunk-IYNKWAG2.mjs.map → chunk-36UMET5S.mjs.map} +0 -0
- /package/dist/{chunk-HVUWHSLQ.mjs.map → chunk-3F26HWNG.mjs.map} +0 -0
- /package/dist/{chunk-PCBS3IFK.mjs.map → chunk-ECBSY7Z7.mjs.map} +0 -0
- /package/dist/{chunk-BOI6JLRI.mjs.map → chunk-KTYF3X3T.mjs.map} +0 -0
- /package/dist/{chunk-QNCTIBCB.mjs.map → chunk-M6KW6MUX.mjs.map} +0 -0
- /package/dist/{chunk-5AD7SHET.mjs.map → chunk-RS3S3CZK.mjs.map} +0 -0
- /package/dist/{chunk-3GIKFZUG.mjs.map → chunk-T5HT32ZD.mjs.map} +0 -0
- /package/dist/{chunk-KI2XL6FZ.mjs.map → chunk-V4VRNLTA.mjs.map} +0 -0
|
@@ -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
6
|
} from "./chunk-4XKSYVIX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
HttpHeader
|
|
9
|
+
} from "./chunk-SW2OCUH3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ctx
|
|
12
12
|
} from "./chunk-Z65753EU.mjs";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
RequestOptions,
|
|
88
88
|
isRequestOptions
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-2JBEMSUS.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AxiosProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KTYF3X3T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpVerb
|
|
6
6
|
} from "./chunk-Z6VP2YRJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
RequestOptions,
|
|
9
9
|
toPageOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2JBEMSUS.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-36UMET5S.mjs.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
traverse
|
|
6
6
|
} from "./chunk-SSROJBD5.mjs";
|
|
7
|
-
import {
|
|
8
|
-
isPageList,
|
|
9
|
-
toPageList
|
|
10
|
-
} from "./chunk-JE57W5UY.mjs";
|
|
11
7
|
import {
|
|
12
8
|
asJson,
|
|
13
9
|
json
|
|
14
10
|
} from "./chunk-NEUJSHV6.mjs";
|
|
11
|
+
import {
|
|
12
|
+
isPageList,
|
|
13
|
+
toPageList
|
|
14
|
+
} from "./chunk-JE57W5UY.mjs";
|
|
15
15
|
import {
|
|
16
16
|
choose
|
|
17
17
|
} from "./chunk-IYHS52XV.mjs";
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
view,
|
|
89
89
|
views
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-3F26HWNG.mjs.map
|
|
@@ -114,11 +114,11 @@ var DateTime = class _DateTime extends Value {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
var isDateTime = (dt2) => isDefined(dt2) && dt2 instanceof DateTime;
|
|
117
|
-
var dt = (dt2) =>
|
|
117
|
+
var dt = (dt2) => new DateTime(dt2);
|
|
118
118
|
|
|
119
119
|
export {
|
|
120
120
|
DateTime,
|
|
121
121
|
isDateTime,
|
|
122
122
|
dt
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-3IJ3RO5H.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 constructor(value?: DatetimeInput, format?: string) {\n super(\n 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 => LuxonDateTime.fromISO(v.toString()))\n .else(undefined as unknown as LuxonDateTime)\n ?.toISO() as unknown as string\n );\n }\n\n static get now(): DateTime {\n return new DateTime(LuxonDateTime.utc().toISO());\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 protected get luxon(): LuxonDateTime {\n return LuxonDateTime.fromISO(this.value as string, { setZone: true });\n }\n\n from(date?: DateTime): string;\n\n from(locale?: string): string;\n\n from(date?: DateTime, locale?: string): string;\n\n from(param?: string | DateTime, other?: string): string {\n const date: Optional<DateTime> = isA<DateTime>(param) ? param : undefined;\n const locale: string = (isString(param) ? param : undefined) ?? other ?? 'en';\n return ifDefined(\n date,\n d => this.utc.setLocale(locale).toRelative({ base: d.utc }),\n () => this.utc.setLocale(locale).toRelative()\n ) as string;\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): DateTime;\n add(n: number, unit: DurationUnit): DateTime;\n add(duration: Duration): DateTime;\n add(n: number | Duration, unit?: DurationUnit): DateTime {\n return new DateTime(this.luxon.plus(isNumber(n) ? { [unit ?? ('day' as string)]: n } : n).toISO());\n }\n\n subtract(n: number): DateTime;\n subtract(n: number, unit: DurationUnit): DateTime;\n subtract(duration: Duration): DateTime;\n subtract(n: number | Duration, unit?: DurationUnit): DateTime {\n return new DateTime(this.luxon.minus(isNumber(n) ? { [unit ?? ('day' as string)]: n } : n).toISO());\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).toISO());\n }\n\n endOf(unit: DateTimeUnit = 'day'): DateTime {\n return new DateTime(this.luxon.endOf(unit).toISO());\n }\n\n isWeekend(): boolean {\n return this.luxon.isWeekend;\n }\n\n withZone(zone: string): DateTime {\n return new DateTime(this.utc.setZone(zone).toISO());\n }\n\n toString(): string {\n return this.value ?? '';\n }\n\n toJSON(): JsonValue {\n return this.utc.toISO() as unknown as JsonValue;\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY,eAAqF,gBAAgB;AAW1H,SAAS,cAAc;AAYhB,IAAM,WAAN,MAAM,kBAAiB,MAAwB;AAAA,EACpD,YAAY,OAAuB,QAAiB;AAClD;AAAA,MACE,OAAO,KAAK,EACT,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,cAAc,QAAQ,EAAE,SAAS,CAAC,CAAC,EACzD,KAAK,MAAqC,GACzC,MAAM;AAAA,IACZ;AAAA,EACF;AAAA,EAEA,WAAW,MAAgB;AACzB,WAAO,IAAI,UAAS,cAAc,IAAI,EAAE,MAAM,CAAC;AAAA,EACjD;AAAA,EAEA,IAAI,UAAmB;AACrB,WAAO,UAAU,KAAK,KAAK,KAAK,KAAK,IAAI;AAAA,EAC3C;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,UAAkB;AACpB,WAAO,KAAK,KAA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3
|
+
} from "./chunk-RS3S3CZK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toHttpStatus
|
|
6
6
|
} from "./chunk-6A5LEGMH.mjs";
|
|
@@ -17,4 +17,4 @@ function toResponse(status, body, headers) {
|
|
|
17
17
|
export {
|
|
18
18
|
toResponse
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-ECBSY7Z7.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ECBSY7Z7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isRestResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RS3S3CZK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-6A5LEGMH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
RequestOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2JBEMSUS.mjs";
|
|
13
13
|
import {
|
|
14
14
|
cacheAge
|
|
15
15
|
} from "./chunk-ZLRFWY6Z.mjs";
|
|
@@ -53,4 +53,4 @@ var AxiosProvider = class {
|
|
|
53
53
|
export {
|
|
54
54
|
AxiosProvider
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-KTYF3X3T.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-36UMET5S.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Gateway
|
|
6
6
|
} from "./chunk-YLKOAJV7.mjs";
|
|
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
|
|
|
43
43
|
export {
|
|
44
44
|
ApiGateway
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-M6KW6MUX.mjs.map
|
|
@@ -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-6A5LEGMH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
isResponse
|
|
7
|
-
} from "./chunk-UYDZZAEK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
choose
|
|
10
10
|
} from "./chunk-IYHS52XV.mjs";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
rest,
|
|
53
53
|
isRestResult
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-RS3S3CZK.mjs.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
required,
|
|
3
3
|
valid
|
|
4
4
|
} from "./chunk-OSDJOAYB.mjs";
|
|
5
|
-
import {
|
|
6
|
-
DateTime
|
|
7
|
-
} from "./chunk-TQCYECSO.mjs";
|
|
8
5
|
import {
|
|
9
6
|
Struct
|
|
10
7
|
} from "./chunk-C7QDLU2C.mjs";
|
|
8
|
+
import {
|
|
9
|
+
DateTime
|
|
10
|
+
} from "./chunk-3IJ3RO5H.mjs";
|
|
11
11
|
import {
|
|
12
12
|
choose
|
|
13
13
|
} from "./chunk-IYHS52XV.mjs";
|
|
@@ -47,4 +47,4 @@ __decorateClass([
|
|
|
47
47
|
export {
|
|
48
48
|
Audit
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-T5HT32ZD.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiGateway
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M6KW6MUX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Api
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-36UMET5S.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-6A5LEGMH.mjs";
|
|
@@ -54,4 +54,4 @@ var RouteGateway = class extends ApiGateway {
|
|
|
54
54
|
export {
|
|
55
55
|
RouteGateway
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-V4VRNLTA.mjs.map
|
package/dist/domain/Audit.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Audit
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-T5HT32ZD.mjs";
|
|
4
4
|
import "../chunk-OSDJOAYB.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-C7QDLU2C.mjs";
|
|
6
|
+
import "../chunk-3IJ3RO5H.mjs";
|
|
6
7
|
import "../chunk-SLYXVZXN.mjs";
|
|
7
8
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
-
import "../chunk-C7QDLU2C.mjs";
|
|
9
9
|
import "../chunk-NEUJSHV6.mjs";
|
|
10
10
|
import "../chunk-IYHS52XV.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-OSDJOAYB.mjs";
|
|
8
|
-
import "../chunk-ADJAEGCT.mjs";
|
|
9
7
|
import {
|
|
10
8
|
Struct
|
|
11
9
|
} from "../chunk-C7QDLU2C.mjs";
|
|
10
|
+
import "../chunk-ADJAEGCT.mjs";
|
|
11
|
+
import "../chunk-LXQQ5N6S.mjs";
|
|
12
12
|
import {
|
|
13
13
|
json
|
|
14
14
|
} from "../chunk-NEUJSHV6.mjs";
|
|
@@ -8,8 +8,9 @@ export type Duration = Partial<Record<DurationUnit, number>>;
|
|
|
8
8
|
export type DiffOptions = {
|
|
9
9
|
rounding: 'floor' | 'ceil' | 'round';
|
|
10
10
|
};
|
|
11
|
+
type DatetimeInput = string | number | Date | DateTime | null;
|
|
11
12
|
export declare class DateTime extends Value<Optional<string>> {
|
|
12
|
-
constructor(value?:
|
|
13
|
+
constructor(value?: DatetimeInput, format?: string);
|
|
13
14
|
static get now(): DateTime;
|
|
14
15
|
get isValid(): boolean;
|
|
15
16
|
get fromNow(): string;
|
|
@@ -42,4 +43,5 @@ export declare class DateTime extends Value<Optional<string>> {
|
|
|
42
43
|
ago(end?: DateTime): string;
|
|
43
44
|
}
|
|
44
45
|
export declare const isDateTime: (dt?: unknown) => dt is DateTime;
|
|
45
|
-
export declare const dt: (dt?:
|
|
46
|
+
export declare const dt: (dt?: DatetimeInput) => DateTime;
|
|
47
|
+
export {};
|
package/dist/domain/DateTime.mjs
CHANGED
package/dist/domain/Entity.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Audit
|
|
3
|
+
} from "../chunk-T5HT32ZD.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-3GIKFZUG.mjs";
|
|
8
7
|
import {
|
|
9
8
|
required
|
|
10
9
|
} from "../chunk-OSDJOAYB.mjs";
|
|
11
|
-
import "../chunk-TQCYECSO.mjs";
|
|
12
|
-
import "../chunk-SLYXVZXN.mjs";
|
|
13
|
-
import "../chunk-ADJAEGCT.mjs";
|
|
14
10
|
import {
|
|
15
11
|
Struct
|
|
16
12
|
} from "../chunk-C7QDLU2C.mjs";
|
|
13
|
+
import "../chunk-3IJ3RO5H.mjs";
|
|
14
|
+
import "../chunk-SLYXVZXN.mjs";
|
|
15
|
+
import "../chunk-ADJAEGCT.mjs";
|
|
16
|
+
import "../chunk-LXQQ5N6S.mjs";
|
|
17
17
|
import {
|
|
18
18
|
json
|
|
19
19
|
} from "../chunk-NEUJSHV6.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-2JBEMSUS.mjs";
|
|
7
6
|
import "../chunk-LXQQ5N6S.mjs";
|
|
8
7
|
import "../chunk-4XKSYVIX.mjs";
|
|
8
|
+
import "../chunk-SW2OCUH3.mjs";
|
|
9
9
|
import "../chunk-Z65753EU.mjs";
|
|
10
10
|
import "../chunk-MSHV3FE7.mjs";
|
|
11
11
|
import "../chunk-OVWLHTY3.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-6A5LEGMH.mjs";
|
|
4
|
+
} from "../chunk-RS3S3CZK.mjs";
|
|
6
5
|
import "../chunk-UYDZZAEK.mjs";
|
|
6
|
+
import "../chunk-6A5LEGMH.mjs";
|
|
7
7
|
import "../chunk-IYHS52XV.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
9
|
import "../chunk-AMNJZT7K.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-6A5LEGMH.mjs";
|
|
3
|
+
} from "../chunk-ECBSY7Z7.mjs";
|
|
4
|
+
import "../chunk-RS3S3CZK.mjs";
|
|
6
5
|
import "../chunk-UYDZZAEK.mjs";
|
|
6
|
+
import "../chunk-6A5LEGMH.mjs";
|
|
7
7
|
import "../chunk-IYHS52XV.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
9
|
import "../chunk-AMNJZT7K.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1716,7 +1716,7 @@ var DateTime = class _DateTime extends Value {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
};
|
|
1718
1718
|
var isDateTime = (dt2) => isDefined(dt2) && dt2 instanceof DateTime;
|
|
1719
|
-
var dt = (dt2) =>
|
|
1719
|
+
var dt = (dt2) => new DateTime(dt2);
|
|
1720
1720
|
|
|
1721
1721
|
// src/validation/Contraints.ts
|
|
1722
1722
|
var constraint = (c, message) => (subject, property) => {
|