@bgord/tools 1.2.0 → 1.2.2

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 (117) hide show
  1. package/dist/age-years.vo.d.ts +2 -2
  2. package/dist/age.vo.d.ts +1 -1
  3. package/dist/api-key.vo.d.ts +3 -3
  4. package/dist/api-key.vo.js +1 -5
  5. package/dist/basename.vo.d.ts +7 -7
  6. package/dist/date-range.vo.d.ts +1 -1
  7. package/dist/day-iso-id.vo.d.ts +3 -3
  8. package/dist/directory-path-absolute.vo.d.ts +6 -6
  9. package/dist/directory-path-relative.vo.d.ts +6 -6
  10. package/dist/distance.vo.d.ts +1 -1
  11. package/dist/distance.vo.js +1 -3
  12. package/dist/division-factor.vo.d.ts +2 -2
  13. package/dist/division-factor.vo.js +1 -4
  14. package/dist/duration-ms.vo.d.ts +1 -1
  15. package/dist/email.vo.d.ts +1 -1
  16. package/dist/etags.vo.d.ts +1 -1
  17. package/dist/extension.vo.d.ts +4 -4
  18. package/dist/feature-flag-value.vo.d.ts +1 -1
  19. package/dist/file-path-absolute-schema.vo.d.ts +5 -5
  20. package/dist/file-path-relative-schema.vo.d.ts +5 -5
  21. package/dist/filename-affix.vo.d.ts +4 -4
  22. package/dist/filename-from-string.vo.d.ts +2 -2
  23. package/dist/height-milimiters.vo.d.ts +2 -2
  24. package/dist/iban-schema.vo.d.ts +2 -2
  25. package/dist/image.vo.d.ts +4 -4
  26. package/dist/language.vo.d.ts +2 -2
  27. package/dist/linear-regression.service.d.ts +6 -6
  28. package/dist/mean.service.d.ts +1 -1
  29. package/dist/mime.vo.d.ts +1 -1
  30. package/dist/min-max-scaler.service.d.ts +5 -5
  31. package/dist/money.vo.d.ts +1 -1
  32. package/dist/month-iso-id.vo.d.ts +3 -3
  33. package/dist/multiplication-factor.vo.d.ts +2 -2
  34. package/dist/object-key.vo.d.ts +6 -6
  35. package/dist/outlier-detector.service.d.ts +1 -1
  36. package/dist/package-version-schema.vo.d.ts +2 -2
  37. package/dist/pagination-page.vo.d.ts +1 -1
  38. package/dist/pagination-skip.vo.d.ts +2 -2
  39. package/dist/pagination-skip.vo.js +1 -4
  40. package/dist/pagination-take.vo.d.ts +2 -2
  41. package/dist/pagination-take.vo.js +1 -4
  42. package/dist/percentage.service.d.ts +1 -1
  43. package/dist/population-standard-deviation.service.d.ts +1 -1
  44. package/dist/quarter-iso-id.vo.d.ts +2 -2
  45. package/dist/random.service.d.ts +1 -1
  46. package/dist/reordering-item-position-value.vo.d.ts +1 -1
  47. package/dist/revision-value.vo.d.ts +2 -2
  48. package/dist/revision.vo.d.ts +2 -2
  49. package/dist/rounding.adapter.d.ts +2 -2
  50. package/dist/rounding.adapter.js +1 -4
  51. package/dist/size-bytes.vo.d.ts +1 -1
  52. package/dist/stopwatch.service.d.ts +1 -1
  53. package/dist/timestamp-value.vo.d.ts +1 -1
  54. package/dist/timezone.vo.d.ts +4 -4
  55. package/dist/url-with-slash.vo.d.ts +1 -1
  56. package/dist/url-without-slash.vo.d.ts +1 -1
  57. package/dist/week-iso-id.vo.d.ts +3 -3
  58. package/dist/weight-grams.vo.d.ts +2 -2
  59. package/dist/year-iso-id.vo.d.ts +2 -2
  60. package/dist/z-score.service.d.ts +1 -1
  61. package/package.json +7 -6
  62. package/src/age-years.vo.ts +1 -1
  63. package/src/age.vo.ts +1 -1
  64. package/src/api-key.vo.ts +1 -5
  65. package/src/basename.vo.ts +1 -1
  66. package/src/clock-format.service.ts +1 -1
  67. package/src/date-range.vo.ts +1 -1
  68. package/src/day-iso-id.vo.ts +1 -1
  69. package/src/directory-path-absolute.vo.ts +1 -1
  70. package/src/directory-path-relative.vo.ts +1 -1
  71. package/src/distance.vo.ts +1 -3
  72. package/src/division-factor.vo.ts +1 -4
  73. package/src/duration-ms.vo.ts +1 -1
  74. package/src/email.vo.ts +1 -1
  75. package/src/etags.vo.ts +1 -1
  76. package/src/extension.vo.ts +1 -1
  77. package/src/feature-flag-value.vo.ts +1 -1
  78. package/src/file-path-absolute-schema.vo.ts +1 -1
  79. package/src/file-path-relative-schema.vo.ts +1 -1
  80. package/src/filename-affix.vo.ts +1 -1
  81. package/src/filename-from-string.vo.ts +1 -1
  82. package/src/height-milimiters.vo.ts +1 -1
  83. package/src/iban-schema.vo.ts +1 -1
  84. package/src/image.vo.ts +2 -2
  85. package/src/language.vo.ts +1 -1
  86. package/src/linear-regression.service.ts +1 -1
  87. package/src/mean.service.ts +1 -1
  88. package/src/mime.vo.ts +1 -1
  89. package/src/min-max-scaler.service.ts +1 -1
  90. package/src/money.vo.ts +1 -1
  91. package/src/month-iso-id.vo.ts +1 -1
  92. package/src/multiplication-factor.vo.ts +1 -1
  93. package/src/object-key.vo.ts +1 -1
  94. package/src/outlier-detector.service.ts +1 -1
  95. package/src/package-version-schema.vo.ts +1 -1
  96. package/src/pagination-page.vo.ts +1 -1
  97. package/src/pagination-skip.vo.ts +1 -4
  98. package/src/pagination-take.vo.ts +1 -4
  99. package/src/percentage.service.ts +1 -1
  100. package/src/population-standard-deviation.service.ts +1 -1
  101. package/src/quarter-iso-id.vo.ts +1 -1
  102. package/src/random.service.ts +1 -1
  103. package/src/reordering-item-position-value.vo.ts +1 -1
  104. package/src/reordering.service.ts +1 -1
  105. package/src/revision-value.vo.ts +1 -1
  106. package/src/revision.vo.ts +1 -1
  107. package/src/rounding.adapter.ts +1 -4
  108. package/src/size-bytes.vo.ts +1 -1
  109. package/src/stopwatch.service.ts +1 -1
  110. package/src/timestamp-value.vo.ts +1 -1
  111. package/src/timezone.vo.ts +1 -1
  112. package/src/url-with-slash.vo.ts +1 -1
  113. package/src/url-without-slash.vo.ts +1 -1
  114. package/src/week-iso-id.vo.ts +1 -1
  115. package/src/weight-grams.vo.ts +1 -1
  116. package/src/year-iso-id.vo.ts +1 -1
  117. package/src/z-score.service.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const AgeYearsError: {
3
- readonly Type: "age.years.type";
4
- readonly Invalid: "age.years.invalid";
3
+ Type: string;
4
+ Invalid: string;
5
5
  };
6
6
  export declare const AgeYearsConstraints: {
7
7
  min: number;
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
- readonly FutureBirthdate: "age.future.birthdate";
4
+ FutureBirthdate: string;
5
5
  };
6
6
  export declare class Age {
7
7
  private readonly value;
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const ApiKeyError: {
3
- readonly Type: "api.key.type";
4
- readonly Length: "api.key.length";
5
- readonly BadChars: "api.key.bad.chars";
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>;
@@ -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
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const BasenameError: {
3
- readonly Type: "basename.type";
4
- readonly Empty: "basename.empty";
5
- readonly TooLong: "basename.too.long";
6
- readonly DotSegments: "basename.dot.segments";
7
- readonly Dotfiles: "basename.dotfiles";
8
- readonly TrailingDot: "basename.trailing.dot";
9
- readonly BadChars: "basename.bad.chars";
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>;
@@ -1,6 +1,6 @@
1
1
  import type { Timestamp } from "./timestamp.vo";
2
2
  export declare const DateRangeError: {
3
- readonly Invalid: "date.range.invalid";
3
+ Invalid: string;
4
4
  };
5
5
  export declare class DateRange {
6
6
  private readonly start;
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const DayIsoIdError: {
3
- readonly Type: "day.iso.id.type";
4
- readonly BadChars: "day.iso.id.bad.chars";
5
- readonly InvalidDate: "day.iso.id.invalid.date";
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
- readonly BadSegments: "directory.path.absolue.bad.segments";
4
- readonly Empty: "directory.path.absolue.empty";
5
- readonly LeadingSlash: "directory.path.absolue.leading.slash";
6
- readonly TooLong: "directory.path.absolue.too.long";
7
- readonly TrailingSlash: "directory.path.absolue.trailing.slash";
8
- readonly Type: "directory.path.absolue.type";
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
- readonly BadSegments: "directory.path.relative.bad.segments";
4
- readonly Empty: "directory.path.relative.empty";
5
- readonly LeadingSlash: "directory.path.relative.leading.slash";
6
- readonly TooLong: "directory.path.absolue.too.long";
7
- readonly TrailingSlash: "directory.path.absolue.trailing.slash";
8
- readonly Type: "directory.path.relative.not.type";
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">;
@@ -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
- readonly SubtractResultLessThanZero: "distance.subtract.result.less.than.zero";
4
+ SubtractResultLessThanZero: string;
5
5
  };
6
6
  export declare class Distance {
7
7
  private readonly value;
@@ -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
- readonly Type: "division.factor.type";
4
- readonly Invalid: "division.factor.invalid";
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)
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const DurationMsError: {
3
- readonly Invalid: "duration.invalid";
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>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const EmailError: {
3
- readonly Invalid: "email.invalid";
3
+ Invalid: string;
4
4
  };
5
5
  export declare const Email: z.core.$ZodBranded<z.ZodEmail, "Email">;
6
6
  export type EmailType = z.infer<typeof Email>;
@@ -10,7 +10,7 @@ export declare class ETag {
10
10
  }
11
11
  export type WeakETagValueType = string;
12
12
  export declare const WeakETagError: {
13
- readonly Invalid: "weak.etag.invalid";
13
+ Invalid: string;
14
14
  };
15
15
  export declare class WeakETag {
16
16
  readonly revision: RevisionValueType;
@@ -1,9 +1,9 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const ExtensionError: {
3
- readonly Type: "extension.type";
4
- readonly Empty: "extension.empty";
5
- readonly TooLong: "extension.too.long";
6
- readonly BadChars: "extension.bad.chars";
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,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const FeatureFlagValueError: {
3
- readonly Invalid: "feature.flag.value.invalid";
3
+ Invalid: string;
4
4
  };
5
5
  export declare enum FeatureFlagEnum {
6
6
  yes = "yes",
@@ -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
- readonly Type: "file.path.absolute.type";
5
- readonly LeadingSlash: "file.path.absolute.leading.slash";
6
- readonly TrailingSlash: "file.path.absolute.trailing.slash";
7
- readonly BackslashForbidden: "file.path.absolute.backslash.forbidden";
8
- readonly Empty: "file.path.absolute.empty";
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
- readonly Type: "file.path.relative.type";
5
- readonly LeadingSlash: "file.path.relative.leading.slash";
6
- readonly BackslashForbidden: "file.path.relative.backslash.forbidden";
7
- readonly RequiresDirectory: "file.path.relative.requires.directory";
8
- readonly Empty: "file.path.relative.empty";
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
- readonly Type: "affix.type";
8
- readonly Empty: "affix.empty";
9
- readonly TooLong: "affix.too.long";
10
- readonly BadChars: "affix.bad.chars";
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
- readonly Type: "filename.from.string.type";
4
- readonly Invalid: "filename.from.string.Invalid";
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">;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const HeightMillimetersError: {
3
- readonly Type: "height.millimeters.type";
4
- readonly Invalid: "height.millimeters.invalid";
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>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const IbanSchemaError: {
3
- readonly Type: "iban.schema.type";
4
- readonly Invalid: "iban.schema.invalid";
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>;
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const ImageWidthError: {
3
- readonly Type: "image.width.type";
4
- readonly Length: "image.width.length";
3
+ Type: string;
4
+ Length: string;
5
5
  };
6
6
  export declare const ImageHeightError: {
7
- readonly Type: "image.height.type";
8
- readonly Length: "image.height.length";
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>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const LanguageError: {
3
- readonly Type: "language.type";
4
- readonly BadChars: "language.bad.chars";
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
- readonly MinPairs: "linear.regression.min.pairs";
13
- readonly SumXTooBig: "linear.regression.sum.x.too.big";
14
- readonly SumYTooBig: "linear.regression.sum.y.too.big";
15
- readonly SumXSquaredTooBig: "linear.regression.sum.x.squared.too.big";
16
- readonly SumXTimesYTooBig: "linear.regression.sum.x.times.y.too.big";
17
- readonly ModelCreation: "linear.regression.model.creation";
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;
@@ -1,6 +1,6 @@
1
1
  import type { RoundingPort } from "./rounding.port";
2
2
  export declare const MeanError: {
3
- readonly NotEnoughValues: "mean.not.enough.values";
3
+ NotEnoughValues: string;
4
4
  };
5
5
  export declare class Mean {
6
6
  private static readonly DEFAULT_ROUNDING;
package/dist/mime.vo.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type ExtensionType } from "./extension.vo";
2
2
  export declare const MimeError: {
3
- readonly NotAccepted: "mime.not.accepted";
3
+ NotAccepted: string;
4
4
  };
5
5
  export declare class Mime {
6
6
  readonly type: string;
@@ -22,11 +22,11 @@ type DescaleResult = {
22
22
  isUpperBound: boolean;
23
23
  };
24
24
  export declare const MinMaxScalerError: {
25
- readonly InvalidMinMax: "min.max.scaler.invalid.min.max";
26
- readonly InvalidBound: "min.max.scaler.invalid.bound";
27
- readonly ValueOutOfRange: "min.max.scaler.value.out.of.range";
28
- readonly ScaledOutOfBounds: "min.max.scaler.scaled.out.of.bounds";
29
- readonly EmptyArray: "min.max.scaler.empty.array";
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;
@@ -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
- readonly SubtractResultLessThanZero: "money.subtract.result.less.than.zero";
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
- readonly Type: "month.iso.id.type";
4
- readonly BadChars: "month.iso.id.bad.chars";
5
- readonly Invalid: "month.iso.id.invalid";
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
- readonly Type: "multiplication.factor.type";
4
- readonly Invalid: "multiplication.factor.invalid";
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>;
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const ObjectKeyError: {
3
- readonly Type: "object.key.type";
4
- readonly LeadingSlash: "object.key.leading.slash";
5
- readonly Empty: "object.key.empty";
6
- readonly TooLong: "object.key.too.long";
7
- readonly BadChars: "object.key.bad.chars";
8
- readonly DotSegments: "object.key.dot.segments";
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,5 +1,5 @@
1
1
  export declare const OutlierDetectorError: {
2
- readonly NotEnoughValues: "outlier.detector.not.enough.values";
2
+ NotEnoughValues: string;
3
3
  };
4
4
  export declare class OutlierDetector {
5
5
  private readonly zScore;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const PackageVersionSchemaError: {
3
- readonly Type: "package.version.schema.error";
4
- readonly BadChars: "package.version.schema.bad.chars";
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
- readonly Type: "pagination.page.Type";
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
- readonly Type: "pagination.skip.type";
4
- readonly Invalid: "pagination.skip.invalid";
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
- readonly Type: "pagination.take.type";
4
- readonly Invalid: "pagination.take.invalid";
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
- readonly InvalidDenominator: "percentage.invalid.denominator";
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
- readonly NotEnoughValues: "population.standard.deviation.not.enough.values";
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
- readonly Type: "quarter.iso.id.type";
4
- readonly BadChars: "quarter.iso.id.bad.chars";
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>;
@@ -3,7 +3,7 @@ type RandomGenerateConfigType = {
3
3
  max: number;
4
4
  };
5
5
  export declare const RandomError: {
6
- readonly MinMax: "random.min.max";
6
+ MinMax: string;
7
7
  };
8
8
  export declare class Random {
9
9
  private static readonly DEFAULT_MIN;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const ReorderingItemPositionValueError: {
3
- readonly Invalid: "reordering.position.type";
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
- readonly Type: "revision.value.type";
4
- readonly Invalid: "revision.value.invalid";
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>;
@@ -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
- readonly Missing: "revision.missing";
5
- readonly Mismatch: "revision.mismatch";
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
- readonly Type: "rounding.decimal.type";
14
- readonly Invalid: "rounding.decimal.invalid";
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 {
@@ -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)
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  export declare const SizeBytesError: {
3
- readonly Invalid: "size.bytes.invalid";
3
+ Invalid: string;
4
4
  };
5
5
  export declare const SizeBytes: z.core.$ZodBranded<z.ZodNumber, "SizeBytes">;
6
6
  export type SizeBytesType = z.infer<typeof SizeBytes>;