@bgord/tools 1.2.1 → 1.2.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/age-years.vo.d.ts +2 -2
- package/dist/age.vo.d.ts +1 -1
- package/dist/api-key.vo.d.ts +3 -3
- package/dist/api-key.vo.js +1 -5
- package/dist/basename.vo.d.ts +7 -7
- package/dist/date-range.vo.d.ts +1 -1
- package/dist/day-iso-id.vo.d.ts +3 -3
- package/dist/directory-path-absolute.vo.d.ts +6 -6
- package/dist/directory-path-relative.vo.d.ts +6 -6
- package/dist/distance.vo.d.ts +1 -1
- package/dist/distance.vo.js +1 -3
- package/dist/division-factor.vo.d.ts +2 -2
- package/dist/division-factor.vo.js +1 -4
- package/dist/duration-ms.vo.d.ts +1 -1
- package/dist/email.vo.d.ts +1 -1
- package/dist/etags.vo.d.ts +1 -1
- package/dist/extension.vo.d.ts +4 -4
- package/dist/feature-flag-value.vo.d.ts +1 -1
- package/dist/file-path-absolute-schema.vo.d.ts +5 -5
- package/dist/file-path-relative-schema.vo.d.ts +5 -5
- package/dist/filename-affix.vo.d.ts +4 -4
- package/dist/filename-from-string.vo.d.ts +2 -2
- package/dist/filename-from-string.vo.js +1 -1
- package/dist/height-milimiters.vo.d.ts +2 -2
- package/dist/iban-schema.vo.d.ts +2 -2
- package/dist/image.vo.d.ts +4 -4
- package/dist/language.vo.d.ts +2 -2
- package/dist/linear-regression.service.d.ts +6 -6
- package/dist/mean.service.d.ts +1 -1
- package/dist/mime.vo.d.ts +1 -1
- package/dist/min-max-scaler.service.d.ts +5 -5
- package/dist/money.vo.d.ts +1 -1
- package/dist/month-iso-id.vo.d.ts +3 -3
- package/dist/multiplication-factor.vo.d.ts +2 -2
- package/dist/object-key.vo.d.ts +6 -6
- package/dist/outlier-detector.service.d.ts +1 -1
- package/dist/package-version-schema.vo.d.ts +2 -2
- package/dist/pagination-page.vo.d.ts +1 -1
- package/dist/pagination-skip.vo.d.ts +2 -2
- package/dist/pagination-skip.vo.js +1 -4
- package/dist/pagination-take.vo.d.ts +2 -2
- package/dist/pagination-take.vo.js +1 -4
- package/dist/percentage.service.d.ts +1 -1
- package/dist/population-standard-deviation.service.d.ts +1 -1
- package/dist/quarter-iso-id.vo.d.ts +2 -2
- package/dist/random.service.d.ts +1 -1
- package/dist/reordering-item-position-value.vo.d.ts +1 -1
- package/dist/revision-value.vo.d.ts +2 -2
- package/dist/revision.vo.d.ts +2 -2
- package/dist/rounding.adapter.d.ts +2 -2
- package/dist/rounding.adapter.js +1 -4
- package/dist/size-bytes.vo.d.ts +1 -1
- package/dist/stopwatch.service.d.ts +1 -1
- package/dist/timestamp-value.vo.d.ts +1 -1
- package/dist/timezone.vo.d.ts +4 -4
- package/dist/url-with-slash.vo.d.ts +1 -1
- package/dist/url-without-slash.vo.d.ts +1 -1
- package/dist/week-iso-id.vo.d.ts +3 -3
- package/dist/weight-grams.vo.d.ts +2 -2
- package/dist/year-iso-id.vo.d.ts +2 -2
- package/dist/z-score.service.d.ts +1 -1
- package/package.json +6 -5
- package/src/age-years.vo.ts +1 -1
- package/src/age.vo.ts +1 -1
- package/src/api-key.vo.ts +1 -5
- package/src/basename.vo.ts +1 -1
- package/src/clock-format.service.ts +1 -1
- package/src/date-range.vo.ts +1 -1
- package/src/day-iso-id.vo.ts +1 -1
- package/src/directory-path-absolute.vo.ts +1 -1
- package/src/directory-path-relative.vo.ts +1 -1
- package/src/distance.vo.ts +1 -3
- package/src/division-factor.vo.ts +1 -4
- package/src/duration-ms.vo.ts +1 -1
- package/src/email.vo.ts +1 -1
- package/src/etags.vo.ts +1 -1
- package/src/extension.vo.ts +1 -1
- package/src/feature-flag-value.vo.ts +1 -1
- package/src/file-path-absolute-schema.vo.ts +1 -1
- package/src/file-path-relative-schema.vo.ts +1 -1
- package/src/filename-affix.vo.ts +1 -1
- package/src/filename-from-string.vo.ts +2 -2
- package/src/height-milimiters.vo.ts +1 -1
- package/src/iban-schema.vo.ts +1 -1
- package/src/image.vo.ts +2 -2
- package/src/language.vo.ts +1 -1
- package/src/linear-regression.service.ts +1 -1
- package/src/mean.service.ts +1 -1
- package/src/mime.vo.ts +1 -1
- package/src/min-max-scaler.service.ts +1 -1
- package/src/money.vo.ts +1 -1
- package/src/month-iso-id.vo.ts +1 -1
- package/src/multiplication-factor.vo.ts +1 -1
- package/src/object-key.vo.ts +1 -1
- package/src/outlier-detector.service.ts +1 -1
- package/src/package-version-schema.vo.ts +1 -1
- package/src/pagination-page.vo.ts +1 -1
- package/src/pagination-skip.vo.ts +1 -4
- package/src/pagination-take.vo.ts +1 -4
- package/src/percentage.service.ts +1 -1
- package/src/population-standard-deviation.service.ts +1 -1
- package/src/quarter-iso-id.vo.ts +1 -1
- package/src/random.service.ts +1 -1
- package/src/reordering-item-position-value.vo.ts +1 -1
- package/src/reordering.service.ts +1 -1
- package/src/revision-value.vo.ts +1 -1
- package/src/revision.vo.ts +1 -1
- package/src/rounding.adapter.ts +1 -4
- package/src/size-bytes.vo.ts +1 -1
- package/src/stopwatch.service.ts +1 -1
- package/src/timestamp-value.vo.ts +1 -1
- package/src/timezone.vo.ts +1 -1
- package/src/url-with-slash.vo.ts +1 -1
- package/src/url-without-slash.vo.ts +1 -1
- package/src/week-iso-id.vo.ts +1 -1
- package/src/weight-grams.vo.ts +1 -1
- package/src/year-iso-id.vo.ts +1 -1
- package/src/z-score.service.ts +1 -1
package/dist/age-years.vo.d.ts
CHANGED
package/dist/age.vo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AgeYearsType } from "./age-years.vo";
|
|
2
2
|
import { Timestamp } from "./timestamp.vo";
|
|
3
3
|
export declare const AgeError: {
|
|
4
|
-
|
|
4
|
+
FutureBirthdate: string;
|
|
5
5
|
};
|
|
6
6
|
export declare class Age {
|
|
7
7
|
private readonly value;
|
package/dist/api-key.vo.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const ApiKeyError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Length: string;
|
|
5
|
+
BadChars: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const ApiKey: z.core.$ZodBranded<z.ZodString, "ApiKey">;
|
|
8
8
|
export type ApiKeyType = z.infer<typeof ApiKey>;
|
package/dist/api-key.vo.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export const ApiKeyError = {
|
|
3
|
-
Type: "api.key.type",
|
|
4
|
-
Length: "api.key.length",
|
|
5
|
-
BadChars: "api.key.bad.chars",
|
|
6
|
-
};
|
|
2
|
+
export const ApiKeyError = { Type: "api.key.type", Length: "api.key.length", BadChars: "api.key.bad.chars" };
|
|
7
3
|
// 64 letters and digits allowed
|
|
8
4
|
const API_KEY_CHARS = /^[a-zA-Z0-9]{64}$/;
|
|
9
5
|
export const ApiKey = z
|
package/dist/basename.vo.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const BasenameError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Empty: string;
|
|
5
|
+
TooLong: string;
|
|
6
|
+
DotSegments: string;
|
|
7
|
+
Dotfiles: string;
|
|
8
|
+
TrailingDot: string;
|
|
9
|
+
BadChars: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const Basename: z.core.$ZodBranded<z.ZodString, "Basename">;
|
|
12
12
|
export type BasenameType = z.infer<typeof Basename>;
|
package/dist/date-range.vo.d.ts
CHANGED
package/dist/day-iso-id.vo.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const DayIsoIdError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
BadChars: string;
|
|
5
|
+
InvalidDate: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const DAY_ISO_ID_CHARS: RegExp;
|
|
8
8
|
export declare const DayIsoId: z.core.$ZodBranded<z.ZodString, "DayIsoId">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const DirectoryPathAbsoluteError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
BadSegments: string;
|
|
4
|
+
Empty: string;
|
|
5
|
+
LeadingSlash: string;
|
|
6
|
+
TooLong: string;
|
|
7
|
+
TrailingSlash: string;
|
|
8
|
+
Type: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const DIRECTORY_PATH_ABSOLUTE_CHARS: RegExp;
|
|
11
11
|
export declare const DirectoryPathAbsoluteSchema: z.core.$ZodBranded<z.ZodString, "DirectoryPathAbsoluteSchema">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const DirectoryPathRelativeError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
BadSegments: string;
|
|
4
|
+
Empty: string;
|
|
5
|
+
LeadingSlash: string;
|
|
6
|
+
TooLong: string;
|
|
7
|
+
TrailingSlash: string;
|
|
8
|
+
Type: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const DIRECTORY_PATH_RELATIVE_CHARS: RegExp;
|
|
11
11
|
export declare const DirectoryPathRelativeSchema: z.core.$ZodBranded<z.ZodString, "DirectoryPathRelativeSchema">;
|
package/dist/distance.vo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type DistanceValueType } from "./distance-value.vo";
|
|
2
2
|
import type { RoundingPort } from "./rounding.port";
|
|
3
3
|
export declare const DistanceError: {
|
|
4
|
-
|
|
4
|
+
SubtractResultLessThanZero: string;
|
|
5
5
|
};
|
|
6
6
|
export declare class Distance {
|
|
7
7
|
private readonly value;
|
package/dist/distance.vo.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { DistanceValue } from "./distance-value.vo";
|
|
2
2
|
import { RoundToNearest } from "./rounding.adapter";
|
|
3
|
-
export const DistanceError = {
|
|
4
|
-
SubtractResultLessThanZero: "distance.subtract.result.less.than.zero",
|
|
5
|
-
};
|
|
3
|
+
export const DistanceError = { SubtractResultLessThanZero: "distance.subtract.result.less.than.zero" };
|
|
6
4
|
export class Distance {
|
|
7
5
|
value;
|
|
8
6
|
static ZERO = DistanceValue.parse(0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const DivisionFactorError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const DivisionFactor: z.core.$ZodBranded<z.ZodNumber, "DivisionFactor">;
|
|
7
7
|
export type DivisionFactorType = z.infer<typeof DivisionFactor>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export const DivisionFactorError = {
|
|
3
|
-
Type: "division.factor.type",
|
|
4
|
-
Invalid: "division.factor.invalid",
|
|
5
|
-
};
|
|
2
|
+
export const DivisionFactorError = { Type: "division.factor.type", Invalid: "division.factor.invalid" };
|
|
6
3
|
export const DivisionFactor = z
|
|
7
4
|
.number(DivisionFactorError.Type)
|
|
8
5
|
.gt(0, DivisionFactorError.Invalid)
|
package/dist/duration-ms.vo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const DurationMsError: {
|
|
3
|
-
|
|
3
|
+
Invalid: string;
|
|
4
4
|
};
|
|
5
5
|
export declare const DurationMs: z.core.$ZodBranded<z.ZodNumber, "DurationMs">;
|
|
6
6
|
export type DurationMsType = z.infer<typeof DurationMs>;
|
package/dist/email.vo.d.ts
CHANGED
package/dist/etags.vo.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class ETag {
|
|
|
10
10
|
}
|
|
11
11
|
export type WeakETagValueType = string;
|
|
12
12
|
export declare const WeakETagError: {
|
|
13
|
-
|
|
13
|
+
Invalid: string;
|
|
14
14
|
};
|
|
15
15
|
export declare class WeakETag {
|
|
16
16
|
readonly revision: RevisionValueType;
|
package/dist/extension.vo.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const ExtensionError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Empty: string;
|
|
5
|
+
TooLong: string;
|
|
6
|
+
BadChars: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const Extension: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "Extension">;
|
|
9
9
|
export type ExtensionType = z.infer<typeof Extension>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { Filename } from "./filename.vo";
|
|
3
3
|
export declare const FilePathAbsoluteSchemaError: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
Type: string;
|
|
5
|
+
LeadingSlash: string;
|
|
6
|
+
TrailingSlash: string;
|
|
7
|
+
BackslashForbidden: string;
|
|
8
|
+
Empty: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const FilePathAbsoluteSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
11
11
|
directory: string & z.core.$brand<"DirectoryPathAbsoluteSchema">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { Filename } from "./filename.vo";
|
|
3
3
|
export declare const FilePathRelativeSchemaError: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
Type: string;
|
|
5
|
+
LeadingSlash: string;
|
|
6
|
+
BackslashForbidden: string;
|
|
7
|
+
RequiresDirectory: string;
|
|
8
|
+
Empty: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const FilePathRelativeSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
11
11
|
directory: string & z.core.$brand<"DirectoryPathRelativeSchema">;
|
|
@@ -4,10 +4,10 @@ export declare enum FilenameAffixStrategy {
|
|
|
4
4
|
suffix = "suffix"
|
|
5
5
|
}
|
|
6
6
|
export declare const FilenameAffixError: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
Type: string;
|
|
8
|
+
Empty: string;
|
|
9
|
+
TooLong: string;
|
|
10
|
+
BadChars: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const FilenameAffix: z.core.$ZodBranded<z.ZodString, "FilenameAffix">;
|
|
13
13
|
export type FilenameAffixType = z.infer<typeof FilenameAffix>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const FilenameFromStringError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const FilenameFromString: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
7
7
|
basename: string & z.core.$brand<"Basename">;
|
|
@@ -3,7 +3,7 @@ import { Basename } from "./basename.vo";
|
|
|
3
3
|
import { Extension } from "./extension.vo";
|
|
4
4
|
export const FilenameFromStringError = {
|
|
5
5
|
Type: "filename.from.string.type",
|
|
6
|
-
Invalid: "filename.from.string.
|
|
6
|
+
Invalid: "filename.from.string.invalid",
|
|
7
7
|
};
|
|
8
8
|
// .+ at least one character, advances to the last dot
|
|
9
9
|
// .
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const HeightMillimetersError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const HeightMillimeters: z.core.$ZodBranded<z.ZodNumber, "HeightMillimeters">;
|
|
7
7
|
export type HeightMillimetersType = z.infer<typeof HeightMillimeters>;
|
package/dist/iban-schema.vo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const IbanSchemaError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const IbanSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "IbanSchema">;
|
|
7
7
|
export type IbanSchemaType = z.infer<typeof IbanSchema>;
|
package/dist/image.vo.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const ImageWidthError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Length: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const ImageHeightError: {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Type: string;
|
|
8
|
+
Length: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const ImageWidth: z.core.$ZodBranded<z.ZodNumber, "ImageWidth">;
|
|
11
11
|
export type ImageWidthType = z.infer<typeof ImageWidth>;
|
package/dist/language.vo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const LanguageError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
BadChars: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const Language: z.ZodString;
|
|
7
7
|
export type LanguageType = z.infer<typeof Language>;
|
|
@@ -9,12 +9,12 @@ export type LinearRegressionParamsType = {
|
|
|
9
9
|
};
|
|
10
10
|
export type LinearRegressionPredictionType = number;
|
|
11
11
|
export declare const LinearRegressionError: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
MinPairs: string;
|
|
13
|
+
SumXTooBig: string;
|
|
14
|
+
SumYTooBig: string;
|
|
15
|
+
SumXSquaredTooBig: string;
|
|
16
|
+
SumXTimesYTooBig: string;
|
|
17
|
+
ModelCreation: string;
|
|
18
18
|
};
|
|
19
19
|
export declare class LinearRegression {
|
|
20
20
|
private static readonly DEFAULT_ROUNDING;
|
package/dist/mean.service.d.ts
CHANGED
package/dist/mime.vo.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ type DescaleResult = {
|
|
|
22
22
|
isUpperBound: boolean;
|
|
23
23
|
};
|
|
24
24
|
export declare const MinMaxScalerError: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
InvalidMinMax: string;
|
|
26
|
+
InvalidBound: string;
|
|
27
|
+
ValueOutOfRange: string;
|
|
28
|
+
ScaledOutOfBounds: string;
|
|
29
|
+
EmptyArray: string;
|
|
30
30
|
};
|
|
31
31
|
export declare class MinMaxScaler {
|
|
32
32
|
private static readonly DEFAULT_ROUNDING;
|
package/dist/money.vo.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type MoneyAmountType } from "./money-amount.vo";
|
|
|
3
3
|
import type { MultiplicationFactorType } from "./multiplication-factor.vo";
|
|
4
4
|
import type { RoundingPort } from "./rounding.port";
|
|
5
5
|
export declare const MoneyError: {
|
|
6
|
-
|
|
6
|
+
SubtractResultLessThanZero: string;
|
|
7
7
|
};
|
|
8
8
|
export declare class Money {
|
|
9
9
|
private readonly amount;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const MonthIsoIdError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
BadChars: string;
|
|
5
|
+
Invalid: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const MonthIsoId: z.core.$ZodBranded<z.ZodString, "MonthIsoId">;
|
|
8
8
|
export type MonthIsoIdType = z.infer<typeof MonthIsoId>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const MultiplicationFactorError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const MultiplicationFactor: z.core.$ZodBranded<z.ZodNumber, "MultiplicationFactor">;
|
|
7
7
|
export type MultiplicationFactorType = z.infer<typeof MultiplicationFactor>;
|
package/dist/object-key.vo.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const ObjectKeyError: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
LeadingSlash: string;
|
|
5
|
+
Empty: string;
|
|
6
|
+
TooLong: string;
|
|
7
|
+
BadChars: string;
|
|
8
|
+
DotSegments: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const ObjectKey: z.core.$ZodBranded<z.ZodString, "ObjectKey">;
|
|
11
11
|
export type ObjectKeyType = z.infer<typeof ObjectKey>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const PackageVersionSchemaError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
BadChars: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const PackageVersionSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
7
7
|
major: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const PaginationPageError: {
|
|
3
|
-
|
|
3
|
+
Type: string;
|
|
4
4
|
};
|
|
5
5
|
export declare const Page: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodTransform<number, number>>>;
|
|
6
6
|
export type PageType = z.infer<typeof Page>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const PaginationSkipError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const Skip: z.ZodNumber;
|
|
7
7
|
export type SkipType = z.infer<typeof Skip>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export const PaginationSkipError = {
|
|
3
|
-
Type: "pagination.skip.type",
|
|
4
|
-
Invalid: "pagination.skip.invalid",
|
|
5
|
-
};
|
|
2
|
+
export const PaginationSkipError = { Type: "pagination.skip.type", Invalid: "pagination.skip.invalid" };
|
|
6
3
|
export const Skip = z
|
|
7
4
|
.number(PaginationSkipError.Type)
|
|
8
5
|
.int(PaginationSkipError.Type)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const PaginationTakeError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const Take: z.ZodNumber;
|
|
7
7
|
export type TakeType = z.infer<typeof Take>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export const PaginationTakeError = {
|
|
3
|
-
Type: "pagination.take.type",
|
|
4
|
-
Invalid: "pagination.take.invalid",
|
|
5
|
-
};
|
|
2
|
+
export const PaginationTakeError = { Type: "pagination.take.type", Invalid: "pagination.take.invalid" };
|
|
6
3
|
export const Take = z
|
|
7
4
|
.number(PaginationTakeError.Type)
|
|
8
5
|
.int(PaginationTakeError.Type)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RoundingPort } from "./rounding.port";
|
|
2
2
|
export declare const PercentageError: {
|
|
3
|
-
|
|
3
|
+
InvalidDenominator: string;
|
|
4
4
|
};
|
|
5
5
|
export declare class Percentage {
|
|
6
6
|
static of(numerator: number, denominator: number, rounding?: RoundingPort): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RoundingPort } from "./rounding.port";
|
|
2
2
|
export declare const PopulationStandardDeviationError: {
|
|
3
|
-
|
|
3
|
+
NotEnoughValues: string;
|
|
4
4
|
};
|
|
5
5
|
export declare class PopulationStandardDeviation {
|
|
6
6
|
static calculate(values: number[], rounding?: RoundingPort): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const QuarterIsoIdError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
BadChars: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const QuarterIsoId: z.core.$ZodBranded<z.ZodString, "QuarterIsoId">;
|
|
7
7
|
export type QuarterIsoIdType = z.infer<typeof QuarterIsoId>;
|
package/dist/random.service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const ReorderingItemPositionValueError: {
|
|
3
|
-
|
|
3
|
+
Invalid: string;
|
|
4
4
|
};
|
|
5
5
|
export declare const ReorderingItemPositionValue: z.ZodNumber;
|
|
6
6
|
export type ReorderingItemPositionValueType = z.infer<typeof ReorderingItemPositionValue>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const RevisionValueError: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Type: string;
|
|
4
|
+
Invalid: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const RevisionValue: z.ZodNumber;
|
|
7
7
|
export type RevisionValueType = z.infer<typeof RevisionValue>;
|
package/dist/revision.vo.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ETag, WeakETag } from "./etags.vo";
|
|
2
2
|
import { type RevisionValueType } from "./revision-value.vo";
|
|
3
3
|
export declare const RevisionError: {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Missing: string;
|
|
5
|
+
Mismatch: string;
|
|
6
6
|
};
|
|
7
7
|
export declare class Revision {
|
|
8
8
|
static readonly INITIAL: RevisionValueType;
|
|
@@ -10,8 +10,8 @@ export declare class RoundDown implements RoundingPort {
|
|
|
10
10
|
round(value: number): number;
|
|
11
11
|
}
|
|
12
12
|
export declare const RoundingDecimalError: {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Type: string;
|
|
14
|
+
Invalid: string;
|
|
15
15
|
};
|
|
16
16
|
export declare const RoundingDecimal: z.core.$ZodBranded<z.ZodNumber, "RoundingDecimal">;
|
|
17
17
|
export declare class RoundToDecimal implements RoundingPort {
|
package/dist/rounding.adapter.js
CHANGED
|
@@ -14,10 +14,7 @@ export class RoundDown {
|
|
|
14
14
|
return Math.floor(value);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export const RoundingDecimalError = {
|
|
18
|
-
Type: "rounding.decimal.type",
|
|
19
|
-
Invalid: "rounding.decimal.invalid",
|
|
20
|
-
};
|
|
17
|
+
export const RoundingDecimalError = { Type: "rounding.decimal.type", Invalid: "rounding.decimal.invalid" };
|
|
21
18
|
export const RoundingDecimal = z
|
|
22
19
|
.number(RoundingDecimalError.Type)
|
|
23
20
|
.int(RoundingDecimalError.Invalid)
|