@duplojs/lang 0.0.1-beta.4 → 0.0.1-beta.6
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/array/index.cjs +0 -3
- package/dist/array/index.d.ts +0 -1
- package/dist/array/index.mjs +1 -3
- package/dist/common/constraint/cast/number.d.ts +15 -0
- package/dist/common/constraint/cast/string.d.ts +13 -0
- package/dist/common/constraint/index.d.ts +1 -0
- package/dist/common/constraint/infer/array.d.ts +7 -0
- package/dist/{array/infer.cjs → common/constraint/infer/index.cjs} +1 -1
- package/dist/common/constraint/infer/index.d.ts +26 -0
- package/dist/{string/infer.mjs → common/constraint/infer/index.mjs} +1 -1
- package/dist/common/constraint/infer/number.d.ts +11 -0
- package/dist/common/constraint/infer/string.d.ts +11 -0
- package/dist/common/index.cjs +3 -0
- package/dist/common/index.mjs +3 -1
- package/dist/dataStructure/constraint/defaults/absolutePath.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/absolutePath.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/absolutePath.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/index.d.ts +3 -0
- package/dist/dataStructure/constraint/defaults/path.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/path.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/path.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/segmentPath.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/segmentPath.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/segmentPath.mjs +12 -0
- package/dist/dataStructure/constraint/types/constraints.d.ts +3 -0
- package/dist/dataStructure/helpers/absolutePath.cjs +7 -0
- package/dist/dataStructure/helpers/absolutePath.d.ts +2 -0
- package/dist/dataStructure/helpers/absolutePath.mjs +7 -0
- package/dist/dataStructure/helpers/index.d.ts +3 -0
- package/dist/dataStructure/helpers/path.cjs +7 -0
- package/dist/dataStructure/helpers/path.d.ts +2 -0
- package/dist/dataStructure/helpers/path.mjs +7 -0
- package/dist/dataStructure/helpers/segmentPath.cjs +7 -0
- package/dist/dataStructure/helpers/segmentPath.d.ts +2 -0
- package/dist/dataStructure/helpers/segmentPath.mjs +7 -0
- package/dist/dataStructure/index.cjs +24 -0
- package/dist/dataStructure/index.mjs +16 -1
- package/dist/index.cjs +41 -39
- package/dist/index.mjs +3 -2
- package/dist/modeling/entity/namespace.cjs +1 -1
- package/dist/modeling/entity/namespace.mjs +2 -2
- package/dist/modeling/index.cjs +2 -2
- package/dist/modeling/index.mjs +3 -3
- package/dist/modeling/newType/helper.cjs +2 -2
- package/dist/modeling/newType/helper.d.ts +1 -1
- package/dist/modeling/newType/helper.mjs +2 -2
- package/dist/modeling/taggedObject/helper.cjs +7 -2
- package/dist/modeling/taggedObject/helper.d.ts +1 -0
- package/dist/modeling/taggedObject/helper.mjs +7 -2
- package/dist/number/index.cjs +0 -3
- package/dist/number/index.d.ts +0 -1
- package/dist/number/index.mjs +1 -3
- package/dist/path/computeRelative.cjs +5 -6
- package/dist/path/computeRelative.d.ts +1 -1
- package/dist/path/computeRelative.mjs +5 -6
- package/dist/path/constraints/absolute.d.ts +1 -1
- package/dist/path/constraints/index.d.ts +2 -1
- package/dist/path/constraints/segment.d.ts +3 -0
- package/dist/path/getBaseName.cjs +7 -7
- package/dist/path/getBaseName.d.ts +2 -2
- package/dist/path/getBaseName.mjs +7 -7
- package/dist/path/getExtensionName.cjs +9 -4
- package/dist/path/getExtensionName.d.ts +2 -2
- package/dist/path/getExtensionName.mjs +9 -4
- package/dist/path/getParentFolderPath.cjs +5 -4
- package/dist/path/getParentFolderPath.d.ts +1 -2
- package/dist/path/getParentFolderPath.mjs +5 -4
- package/dist/path/index.cjs +6 -3
- package/dist/path/index.d.ts +3 -2
- package/dist/path/index.mjs +5 -3
- package/dist/path/is.cjs +9 -4
- package/dist/path/is.d.ts +4 -2
- package/dist/path/is.mjs +9 -4
- package/dist/path/isAbsolute.cjs +3 -5
- package/dist/path/isAbsolute.d.ts +4 -2
- package/dist/path/isAbsolute.mjs +3 -5
- package/dist/path/isSegment.cjs +6 -0
- package/dist/path/isSegment.d.ts +4 -0
- package/dist/path/isSegment.mjs +6 -0
- package/dist/path/normalize.cjs +18 -0
- package/dist/path/normalize.d.ts +2 -0
- package/dist/path/normalize.mjs +18 -0
- package/dist/path/resolveFrom.cjs +4 -5
- package/dist/path/resolveFrom.d.ts +10 -2
- package/dist/path/resolveFrom.mjs +4 -5
- package/dist/path/resolveRelative.cjs +17 -20
- package/dist/path/resolveRelative.d.ts +9 -2
- package/dist/path/resolveRelative.mjs +17 -20
- package/dist/path/types/index.d.ts +6 -0
- package/dist/path/types/isLiteralAbsolutePath.d.ts +2 -0
- package/dist/path/types/isLiteralPath.d.ts +20 -0
- package/dist/path/types/isLiteralSegmentPath.d.ts +9 -0
- package/dist/path/types/requireLiteralAbsolutePath.d.ts +3 -0
- package/dist/path/types/requireLiteralPath.d.ts +3 -0
- package/dist/path/types/requireLiteralSegmentPath.d.ts +3 -0
- package/dist/string/index.cjs +0 -3
- package/dist/string/index.d.ts +0 -1
- package/dist/string/index.mjs +1 -3
- package/dist/string/types/split.d.ts +1 -1
- package/dist/tuple/from.cjs +6 -0
- package/dist/tuple/from.d.ts +8 -0
- package/dist/tuple/from.mjs +6 -0
- package/dist/tuple/index.cjs +6 -1
- package/dist/tuple/index.d.ts +1 -0
- package/dist/tuple/index.mjs +6 -2
- package/package.json +1 -1
- package/dist/array/infer.d.ts +0 -14
- package/dist/array/infer.mjs +0 -6
- package/dist/number/infer.cjs +0 -6
- package/dist/number/infer.d.ts +0 -12
- package/dist/number/infer.mjs +0 -6
- package/dist/path/fix.cjs +0 -8
- package/dist/path/fix.d.ts +0 -1
- package/dist/path/fix.mjs +0 -8
- package/dist/string/infer.cjs +0 -6
- package/dist/string/infer.d.ts +0 -12
|
@@ -5,6 +5,7 @@ const require_codec = require("./common/codec.cjs");
|
|
|
5
5
|
const require_error = require("./common/error.cjs");
|
|
6
6
|
const require_errorInterpreter = require("./common/errorInterpreter.cjs");
|
|
7
7
|
const require_base = require("./constraint/base.cjs");
|
|
8
|
+
const require_absolutePath = require("./constraint/defaults/absolutePath.cjs");
|
|
8
9
|
const require_allowedCharacters = require("./constraint/defaults/allowedCharacters.cjs");
|
|
9
10
|
const require_arrayLengthEqual = require("./constraint/defaults/arrayLengthEqual.cjs");
|
|
10
11
|
const require_betweenThan = require("./constraint/defaults/betweenThan.cjs");
|
|
@@ -25,9 +26,11 @@ const require_negative = require("./constraint/defaults/negative.cjs");
|
|
|
25
26
|
const require_notEmpty = require("./constraint/defaults/notEmpty.cjs");
|
|
26
27
|
const require_notZero = require("./constraint/defaults/notZero.cjs");
|
|
27
28
|
const require_odd = require("./constraint/defaults/odd.cjs");
|
|
29
|
+
const require_path = require("./constraint/defaults/path.cjs");
|
|
28
30
|
const require_positive = require("./constraint/defaults/positive.cjs");
|
|
29
31
|
const require_refine = require("./constraint/defaults/refine.cjs");
|
|
30
32
|
const require_safe = require("./constraint/defaults/safe.cjs");
|
|
33
|
+
const require_segmentPath = require("./constraint/defaults/segmentPath.cjs");
|
|
31
34
|
const require_strictNegative = require("./constraint/defaults/strictNegative.cjs");
|
|
32
35
|
const require_strictPositive = require("./constraint/defaults/strictPositive.cjs");
|
|
33
36
|
const require_stringLengthEqual = require("./constraint/defaults/stringLengthEqual.cjs");
|
|
@@ -46,6 +49,7 @@ const require_string = require("./fundamentalType/defaults/string.cjs");
|
|
|
46
49
|
const require_time = require("./fundamentalType/defaults/time.cjs");
|
|
47
50
|
const require_undefined = require("./fundamentalType/defaults/undefined.cjs");
|
|
48
51
|
const require_identifier$1 = require("./fundamentalType/identifier.cjs");
|
|
52
|
+
const require_absolutePath$1 = require("./helpers/absolutePath.cjs");
|
|
49
53
|
const require_allowedCharacters$1 = require("./helpers/allowedCharacters.cjs");
|
|
50
54
|
const require_base$2 = require("./structure/base.cjs");
|
|
51
55
|
const require_array = require("./structure/defaults/array.cjs");
|
|
@@ -106,11 +110,13 @@ const require_odd$1 = require("./helpers/odd.cjs");
|
|
|
106
110
|
const require_undefined$2 = require("./helpers/undefined.cjs");
|
|
107
111
|
const require_optional = require("./helpers/optional.cjs");
|
|
108
112
|
const require_partial = require("./helpers/partial.cjs");
|
|
113
|
+
const require_path$1 = require("./helpers/path.cjs");
|
|
109
114
|
const require_positive$1 = require("./helpers/positive.cjs");
|
|
110
115
|
const require_record$1 = require("./helpers/record.cjs");
|
|
111
116
|
const require_refine$1 = require("./helpers/refine.cjs");
|
|
112
117
|
const require_required = require("./helpers/required.cjs");
|
|
113
118
|
const require_safe$1 = require("./helpers/safe.cjs");
|
|
119
|
+
const require_segmentPath$1 = require("./helpers/segmentPath.cjs");
|
|
114
120
|
const require_string$2 = require("./helpers/string.cjs");
|
|
115
121
|
const require_strictNegative$1 = require("./helpers/strictNegative.cjs");
|
|
116
122
|
const require_strictPositive$1 = require("./helpers/strictPositive.cjs");
|
|
@@ -122,6 +128,7 @@ const require_uuid$1 = require("./helpers/uuid.cjs");
|
|
|
122
128
|
const require_regex$1 = require("./helpers/regex.cjs");
|
|
123
129
|
//#region scripts/dataStructure/index.ts
|
|
124
130
|
var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
131
|
+
AbsolutePathConstraint: () => require_absolutePath.AbsolutePathConstraint,
|
|
125
132
|
AllowedCharactersConstraint: () => require_allowedCharacters.AllowedCharactersConstraint,
|
|
126
133
|
ArrayLengthEqualConstraint: () => require_arrayLengthEqual.ArrayLengthEqualConstraint,
|
|
127
134
|
ArrayStructure: () => require_array.ArrayStructure,
|
|
@@ -155,11 +162,13 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
155
162
|
NumberType: () => require_number$1.NumberType,
|
|
156
163
|
ObjectStructure: () => require_object.ObjectStructure,
|
|
157
164
|
OddConstraint: () => require_odd.OddConstraint,
|
|
165
|
+
PathConstraint: () => require_path.PathConstraint,
|
|
158
166
|
PositiveConstraint: () => require_positive.PositiveConstraint,
|
|
159
167
|
RecordStructure: () => require_record.RecordStructure,
|
|
160
168
|
RefineConstraint: () => require_refine.RefineConstraint,
|
|
161
169
|
RegexConstraint: () => require_regex.RegexConstraint,
|
|
162
170
|
SafeConstraint: () => require_safe.SafeConstraint,
|
|
171
|
+
SegmentPathConstraint: () => require_segmentPath.SegmentPathConstraint,
|
|
163
172
|
StrictNegativeConstraint: () => require_strictNegative.StrictNegativeConstraint,
|
|
164
173
|
StrictPositiveConstraint: () => require_strictPositive.StrictPositiveConstraint,
|
|
165
174
|
StringLengthEqualConstraint: () => require_stringLengthEqual.StringLengthEqualConstraint,
|
|
@@ -182,6 +191,8 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
182
191
|
UnionStructure: () => require_union.UnionStructure,
|
|
183
192
|
UrlConstraint: () => require_url.UrlConstraint,
|
|
184
193
|
UuidConstraint: () => require_uuid.UuidConstraint,
|
|
194
|
+
absolutePath: () => require_absolutePath$1.absolutePath,
|
|
195
|
+
absolutePathConstraintKind: () => require_absolutePath.absolutePathConstraintKind,
|
|
185
196
|
allowedCharacters: () => require_allowedCharacters$1.allowedCharacters,
|
|
186
197
|
allowedCharactersConstraintKind: () => require_allowedCharacters.allowedCharactersConstraintKind,
|
|
187
198
|
array: () => require_array$1.array,
|
|
@@ -273,6 +284,8 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
273
284
|
oddConstraintKind: () => require_odd.oddConstraintKind,
|
|
274
285
|
optional: () => require_optional.optional,
|
|
275
286
|
partial: () => require_partial.partial,
|
|
287
|
+
path: () => require_path$1.path,
|
|
288
|
+
pathConstraintKind: () => require_path.pathConstraintKind,
|
|
276
289
|
positive: () => require_positive$1.positive,
|
|
277
290
|
positiveConstraintKind: () => require_positive.positiveConstraintKind,
|
|
278
291
|
record: () => require_record$1.record,
|
|
@@ -284,6 +297,8 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
284
297
|
required: () => require_required.required,
|
|
285
298
|
safe: () => require_safe$1.safe,
|
|
286
299
|
safeConstraintKind: () => require_safe.safeConstraintKind,
|
|
300
|
+
segmentPath: () => require_segmentPath$1.segmentPath,
|
|
301
|
+
segmentPathConstraintKind: () => require_segmentPath.segmentPathConstraintKind,
|
|
287
302
|
strictNegative: () => require_strictNegative$1.strictNegative,
|
|
288
303
|
strictNegativeConstraintKind: () => require_strictNegative.strictNegativeConstraintKind,
|
|
289
304
|
strictPositive: () => require_strictPositive$1.strictPositive,
|
|
@@ -315,6 +330,7 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
315
330
|
uuidConstraintKind: () => require_uuid.uuidConstraintKind
|
|
316
331
|
});
|
|
317
332
|
//#endregion
|
|
333
|
+
exports.AbsolutePathConstraint = require_absolutePath.AbsolutePathConstraint;
|
|
318
334
|
exports.AllowedCharactersConstraint = require_allowedCharacters.AllowedCharactersConstraint;
|
|
319
335
|
exports.ArrayLengthEqualConstraint = require_arrayLengthEqual.ArrayLengthEqualConstraint;
|
|
320
336
|
exports.ArrayStructure = require_array.ArrayStructure;
|
|
@@ -348,11 +364,13 @@ exports.NumberLiteralType = require_numberLiteral.NumberLiteralType;
|
|
|
348
364
|
exports.NumberType = require_number$1.NumberType;
|
|
349
365
|
exports.ObjectStructure = require_object.ObjectStructure;
|
|
350
366
|
exports.OddConstraint = require_odd.OddConstraint;
|
|
367
|
+
exports.PathConstraint = require_path.PathConstraint;
|
|
351
368
|
exports.PositiveConstraint = require_positive.PositiveConstraint;
|
|
352
369
|
exports.RecordStructure = require_record.RecordStructure;
|
|
353
370
|
exports.RefineConstraint = require_refine.RefineConstraint;
|
|
354
371
|
exports.RegexConstraint = require_regex.RegexConstraint;
|
|
355
372
|
exports.SafeConstraint = require_safe.SafeConstraint;
|
|
373
|
+
exports.SegmentPathConstraint = require_segmentPath.SegmentPathConstraint;
|
|
356
374
|
exports.StrictNegativeConstraint = require_strictNegative.StrictNegativeConstraint;
|
|
357
375
|
exports.StrictPositiveConstraint = require_strictPositive.StrictPositiveConstraint;
|
|
358
376
|
exports.StringLengthEqualConstraint = require_stringLengthEqual.StringLengthEqualConstraint;
|
|
@@ -375,6 +393,8 @@ exports.UndefinedType = require_undefined$1.UndefinedType;
|
|
|
375
393
|
exports.UnionStructure = require_union.UnionStructure;
|
|
376
394
|
exports.UrlConstraint = require_url.UrlConstraint;
|
|
377
395
|
exports.UuidConstraint = require_uuid.UuidConstraint;
|
|
396
|
+
exports.absolutePath = require_absolutePath$1.absolutePath;
|
|
397
|
+
exports.absolutePathConstraintKind = require_absolutePath.absolutePathConstraintKind;
|
|
378
398
|
exports.allowedCharacters = require_allowedCharacters$1.allowedCharacters;
|
|
379
399
|
exports.allowedCharactersConstraintKind = require_allowedCharacters.allowedCharactersConstraintKind;
|
|
380
400
|
exports.array = require_array$1.array;
|
|
@@ -472,6 +492,8 @@ exports.odd = require_odd$1.odd;
|
|
|
472
492
|
exports.oddConstraintKind = require_odd.oddConstraintKind;
|
|
473
493
|
exports.optional = require_optional.optional;
|
|
474
494
|
exports.partial = require_partial.partial;
|
|
495
|
+
exports.path = require_path$1.path;
|
|
496
|
+
exports.pathConstraintKind = require_path.pathConstraintKind;
|
|
475
497
|
exports.positive = require_positive$1.positive;
|
|
476
498
|
exports.positiveConstraintKind = require_positive.positiveConstraintKind;
|
|
477
499
|
exports.record = require_record$1.record;
|
|
@@ -483,6 +505,8 @@ exports.regexConstraintKind = require_regex.regexConstraintKind;
|
|
|
483
505
|
exports.required = require_required.required;
|
|
484
506
|
exports.safe = require_safe$1.safe;
|
|
485
507
|
exports.safeConstraintKind = require_safe.safeConstraintKind;
|
|
508
|
+
exports.segmentPath = require_segmentPath$1.segmentPath;
|
|
509
|
+
exports.segmentPathConstraintKind = require_segmentPath.segmentPathConstraintKind;
|
|
486
510
|
exports.strictNegative = require_strictNegative$1.strictNegative;
|
|
487
511
|
exports.strictNegativeConstraintKind = require_strictNegative.strictNegativeConstraintKind;
|
|
488
512
|
exports.strictPositive = require_strictPositive$1.strictPositive;
|
|
@@ -5,6 +5,7 @@ import { codecKind, codecsKind, createCodec, createCodecs } from "./common/codec
|
|
|
5
5
|
import { createErrorHandler, createGetErrorHandler, decodeIssueKind, encodeIssueKind, issueKind } from "./common/error.mjs";
|
|
6
6
|
import { createErrorInterpreter } from "./common/errorInterpreter.mjs";
|
|
7
7
|
import { constraintKind, createConstraint } from "./constraint/base.mjs";
|
|
8
|
+
import { AbsolutePathConstraint, absolutePathConstraintKind } from "./constraint/defaults/absolutePath.mjs";
|
|
8
9
|
import { AllowedCharactersConstraint, allowedCharactersConstraintKind } from "./constraint/defaults/allowedCharacters.mjs";
|
|
9
10
|
import { ArrayLengthEqualConstraint, arrayLengthEqualConstraintKind } from "./constraint/defaults/arrayLengthEqual.mjs";
|
|
10
11
|
import { BetweenThanConstraint, betweenThanConstraintKind } from "./constraint/defaults/betweenThan.mjs";
|
|
@@ -25,9 +26,11 @@ import { NegativeConstraint, negativeConstraintKind } from "./constraint/default
|
|
|
25
26
|
import { NotEmptyConstraint, notEmptyConstraintKind } from "./constraint/defaults/notEmpty.mjs";
|
|
26
27
|
import { NotZeroConstraint, notZeroConstraintKind } from "./constraint/defaults/notZero.mjs";
|
|
27
28
|
import { OddConstraint, oddConstraintKind } from "./constraint/defaults/odd.mjs";
|
|
29
|
+
import { PathConstraint, pathConstraintKind } from "./constraint/defaults/path.mjs";
|
|
28
30
|
import { PositiveConstraint, positiveConstraintKind } from "./constraint/defaults/positive.mjs";
|
|
29
31
|
import { RefineConstraint, refineConstraintKind } from "./constraint/defaults/refine.mjs";
|
|
30
32
|
import { SafeConstraint, safeConstraintKind } from "./constraint/defaults/safe.mjs";
|
|
33
|
+
import { SegmentPathConstraint, segmentPathConstraintKind } from "./constraint/defaults/segmentPath.mjs";
|
|
31
34
|
import { StrictNegativeConstraint, strictNegativeConstraintKind } from "./constraint/defaults/strictNegative.mjs";
|
|
32
35
|
import { StrictPositiveConstraint, strictPositiveConstraintKind } from "./constraint/defaults/strictPositive.mjs";
|
|
33
36
|
import { StringLengthEqualConstraint, stringLengthEqualConstraintKind } from "./constraint/defaults/stringLengthEqual.mjs";
|
|
@@ -46,6 +49,7 @@ import { TheString, stringFundamentalTypeKind } from "./fundamentalType/defaults
|
|
|
46
49
|
import { TheTime, timeFundamentalTypeKind } from "./fundamentalType/defaults/time.mjs";
|
|
47
50
|
import { TheUndefined, undefinedFundamentalTypeKind } from "./fundamentalType/defaults/undefined.mjs";
|
|
48
51
|
import { fundamentalTypeIdentifier } from "./fundamentalType/identifier.mjs";
|
|
52
|
+
import { absolutePath } from "./helpers/absolutePath.mjs";
|
|
49
53
|
import { allowedCharacters } from "./helpers/allowedCharacters.mjs";
|
|
50
54
|
import { StructureClass, createStructure, structureKind } from "./structure/base.mjs";
|
|
51
55
|
import { ArrayStructure, arrayStructureKind } from "./structure/defaults/array.mjs";
|
|
@@ -106,11 +110,13 @@ import { odd } from "./helpers/odd.mjs";
|
|
|
106
110
|
import { undefined as undefinedHelper } from "./helpers/undefined.mjs";
|
|
107
111
|
import { optional } from "./helpers/optional.mjs";
|
|
108
112
|
import { partial } from "./helpers/partial.mjs";
|
|
113
|
+
import { path } from "./helpers/path.mjs";
|
|
109
114
|
import { positive } from "./helpers/positive.mjs";
|
|
110
115
|
import { record } from "./helpers/record.mjs";
|
|
111
116
|
import { refine } from "./helpers/refine.mjs";
|
|
112
117
|
import { required } from "./helpers/required.mjs";
|
|
113
118
|
import { safe } from "./helpers/safe.mjs";
|
|
119
|
+
import { segmentPath } from "./helpers/segmentPath.mjs";
|
|
114
120
|
import { string } from "./helpers/string.mjs";
|
|
115
121
|
import { strictNegative } from "./helpers/strictNegative.mjs";
|
|
116
122
|
import { strictPositive } from "./helpers/strictPositive.mjs";
|
|
@@ -122,6 +128,7 @@ import { uuid } from "./helpers/uuid.mjs";
|
|
|
122
128
|
import { regex } from "./helpers/regex.mjs";
|
|
123
129
|
//#region scripts/dataStructure/index.ts
|
|
124
130
|
var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
131
|
+
AbsolutePathConstraint: () => AbsolutePathConstraint,
|
|
125
132
|
AllowedCharactersConstraint: () => AllowedCharactersConstraint,
|
|
126
133
|
ArrayLengthEqualConstraint: () => ArrayLengthEqualConstraint,
|
|
127
134
|
ArrayStructure: () => ArrayStructure,
|
|
@@ -155,11 +162,13 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
155
162
|
NumberType: () => NumberType,
|
|
156
163
|
ObjectStructure: () => ObjectStructure,
|
|
157
164
|
OddConstraint: () => OddConstraint,
|
|
165
|
+
PathConstraint: () => PathConstraint,
|
|
158
166
|
PositiveConstraint: () => PositiveConstraint,
|
|
159
167
|
RecordStructure: () => RecordStructure,
|
|
160
168
|
RefineConstraint: () => RefineConstraint,
|
|
161
169
|
RegexConstraint: () => RegexConstraint,
|
|
162
170
|
SafeConstraint: () => SafeConstraint,
|
|
171
|
+
SegmentPathConstraint: () => SegmentPathConstraint,
|
|
163
172
|
StrictNegativeConstraint: () => StrictNegativeConstraint,
|
|
164
173
|
StrictPositiveConstraint: () => StrictPositiveConstraint,
|
|
165
174
|
StringLengthEqualConstraint: () => StringLengthEqualConstraint,
|
|
@@ -182,6 +191,8 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
182
191
|
UnionStructure: () => UnionStructure,
|
|
183
192
|
UrlConstraint: () => UrlConstraint,
|
|
184
193
|
UuidConstraint: () => UuidConstraint,
|
|
194
|
+
absolutePath: () => absolutePath,
|
|
195
|
+
absolutePathConstraintKind: () => absolutePathConstraintKind,
|
|
185
196
|
allowedCharacters: () => allowedCharacters,
|
|
186
197
|
allowedCharactersConstraintKind: () => allowedCharactersConstraintKind,
|
|
187
198
|
array: () => array,
|
|
@@ -273,6 +284,8 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
273
284
|
oddConstraintKind: () => oddConstraintKind,
|
|
274
285
|
optional: () => optional,
|
|
275
286
|
partial: () => partial,
|
|
287
|
+
path: () => path,
|
|
288
|
+
pathConstraintKind: () => pathConstraintKind,
|
|
276
289
|
positive: () => positive,
|
|
277
290
|
positiveConstraintKind: () => positiveConstraintKind,
|
|
278
291
|
record: () => record,
|
|
@@ -284,6 +297,8 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
284
297
|
required: () => required,
|
|
285
298
|
safe: () => safe,
|
|
286
299
|
safeConstraintKind: () => safeConstraintKind,
|
|
300
|
+
segmentPath: () => segmentPath,
|
|
301
|
+
segmentPathConstraintKind: () => segmentPathConstraintKind,
|
|
287
302
|
strictNegative: () => strictNegative,
|
|
288
303
|
strictNegativeConstraintKind: () => strictNegativeConstraintKind,
|
|
289
304
|
strictPositive: () => strictPositive,
|
|
@@ -315,4 +330,4 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
315
330
|
uuidConstraintKind: () => uuidConstraintKind
|
|
316
331
|
});
|
|
317
332
|
//#endregion
|
|
318
|
-
export { AllowedCharactersConstraint, ArrayLengthEqualConstraint, ArrayStructure, BetweenThanConstraint, BetweenThanOrEqualConstraint, BigintLiteralType, BigintType, BooleanLiteralType, BooleanType, DateType, EmailConstraint, ErrorSymbol, EvenConstraint, GreaterThanConstraint, GreaterThanOrEqualConstraint, IntegerConstraint, LazyStructure, LessThanConstraint, LessThanOrEqualConstraint, MaxCharactersConstraint, MaxElementsConstraint, MinCharactersConstraint, MinElementsConstraint, MultipleOfConstraint, NegativeConstraint, NonEncodableStringStructure, NotEmptyConstraint, NotZeroConstraint, NullType, NumberLiteralType, NumberType, ObjectStructure, OddConstraint, PositiveConstraint, RecordStructure, RefineConstraint, RegexConstraint, SafeConstraint, StrictNegativeConstraint, StrictPositiveConstraint, StringLengthEqualConstraint, StringLiteralType, StringType, StructureClass, SuccessSymbol, TheBigint, TheBoolean, TheDate, TheNull, TheNumber, TheString, TheTime, TheUndefined, TimeType, TrimmedConstraint, TypeStructure, UndefinedType, UnionStructure, UrlConstraint, UuidConstraint, allowedCharacters, allowedCharactersConstraintKind, array, arrayLengthEqual, arrayLengthEqualConstraintKind, arrayStructureKind, betweenThan, betweenThanConstraintKind, betweenThanOrEqual, betweenThanOrEqualConstraintKind, bigint, bigintFundamentalTypeKind, bigintLiteralTypeKind, bigintTypeKind, boolean, booleanFundamentalTypeKind, booleanLiteralTypeKind, booleanTypeKind, codecKind, codecsKind, constraintIdentifier, constraintKind, createCodec, createCodecs, createConstraint, createErrorHandler, createErrorInterpreter, createFundamentalType, createGetErrorHandler, createKind, createStructure, createType, dataStructure_exports, date, dateFundamentalTypeKind, dateTypeKind, decodeIssueKind, email, emailConstraintKind, encodeIssueKind, even, evenConstraintKind, extend, fundamentalTypeIdentifier, fundamentalTypeKind, greaterThan, greaterThanConstraintKind, greaterThanOrEqual, greaterThanOrEqualConstraintKind, integer, integerConstraintKind, isNullStructure, isUndefinedStructure, issueKind, lazy, lazyStructureKind, lessThan, lessThanConstraintKind, lessThanOrEqual, lessThanOrEqualConstraintKind, literal, maxCharacters, maxCharactersConstraintKind, maxElements, maxElementsConstraintKind, minCharacters, minCharactersConstraintKind, minElements, minElementsConstraintKind, multipleOf, multipleOfConstraintKind, negative, negativeConstraintKind, nonEncodableStringStructureKind, notEmpty, notEmptyConstraintKind, notZero, notZeroConstraintKind, nullHelper as null, nullFundamentalTypeKind, nullTypeKind, nullable, number, numberFundamentalTypeKind, numberLiteralTypeKind, numberTypeKind, object, objectStructureKind, odd, oddConstraintKind, optional, partial, positive, positiveConstraintKind, record, recordStructureKind, refine, refineConstraintKind, regex, regexConstraintKind, required, safe, safeConstraintKind, strictNegative, strictNegativeConstraintKind, strictPositive, strictPositiveConstraintKind, string, stringFundamentalTypeKind, stringLengthEqual, stringLengthEqualConstraintKind, stringLiteralTypeKind, stringTypeKind, structureIdentifier, structureKind, time, timeFundamentalTypeKind, timeTypeKind, trimmed, trimmedConstraintKind, typeIdentifier, typeKind, typeStructureKind, undefinedHelper as undefined, undefinedFundamentalTypeKind, undefinedTypeKind, union, unionStructureKind, url, urlConstraintKind, uuid, uuidConstraintKind };
|
|
333
|
+
export { AbsolutePathConstraint, AllowedCharactersConstraint, ArrayLengthEqualConstraint, ArrayStructure, BetweenThanConstraint, BetweenThanOrEqualConstraint, BigintLiteralType, BigintType, BooleanLiteralType, BooleanType, DateType, EmailConstraint, ErrorSymbol, EvenConstraint, GreaterThanConstraint, GreaterThanOrEqualConstraint, IntegerConstraint, LazyStructure, LessThanConstraint, LessThanOrEqualConstraint, MaxCharactersConstraint, MaxElementsConstraint, MinCharactersConstraint, MinElementsConstraint, MultipleOfConstraint, NegativeConstraint, NonEncodableStringStructure, NotEmptyConstraint, NotZeroConstraint, NullType, NumberLiteralType, NumberType, ObjectStructure, OddConstraint, PathConstraint, PositiveConstraint, RecordStructure, RefineConstraint, RegexConstraint, SafeConstraint, SegmentPathConstraint, StrictNegativeConstraint, StrictPositiveConstraint, StringLengthEqualConstraint, StringLiteralType, StringType, StructureClass, SuccessSymbol, TheBigint, TheBoolean, TheDate, TheNull, TheNumber, TheString, TheTime, TheUndefined, TimeType, TrimmedConstraint, TypeStructure, UndefinedType, UnionStructure, UrlConstraint, UuidConstraint, absolutePath, absolutePathConstraintKind, allowedCharacters, allowedCharactersConstraintKind, array, arrayLengthEqual, arrayLengthEqualConstraintKind, arrayStructureKind, betweenThan, betweenThanConstraintKind, betweenThanOrEqual, betweenThanOrEqualConstraintKind, bigint, bigintFundamentalTypeKind, bigintLiteralTypeKind, bigintTypeKind, boolean, booleanFundamentalTypeKind, booleanLiteralTypeKind, booleanTypeKind, codecKind, codecsKind, constraintIdentifier, constraintKind, createCodec, createCodecs, createConstraint, createErrorHandler, createErrorInterpreter, createFundamentalType, createGetErrorHandler, createKind, createStructure, createType, dataStructure_exports, date, dateFundamentalTypeKind, dateTypeKind, decodeIssueKind, email, emailConstraintKind, encodeIssueKind, even, evenConstraintKind, extend, fundamentalTypeIdentifier, fundamentalTypeKind, greaterThan, greaterThanConstraintKind, greaterThanOrEqual, greaterThanOrEqualConstraintKind, integer, integerConstraintKind, isNullStructure, isUndefinedStructure, issueKind, lazy, lazyStructureKind, lessThan, lessThanConstraintKind, lessThanOrEqual, lessThanOrEqualConstraintKind, literal, maxCharacters, maxCharactersConstraintKind, maxElements, maxElementsConstraintKind, minCharacters, minCharactersConstraintKind, minElements, minElementsConstraintKind, multipleOf, multipleOfConstraintKind, negative, negativeConstraintKind, nonEncodableStringStructureKind, notEmpty, notEmptyConstraintKind, notZero, notZeroConstraintKind, nullHelper as null, nullFundamentalTypeKind, nullTypeKind, nullable, number, numberFundamentalTypeKind, numberLiteralTypeKind, numberTypeKind, object, objectStructureKind, odd, oddConstraintKind, optional, partial, path, pathConstraintKind, positive, positiveConstraintKind, record, recordStructureKind, refine, refineConstraintKind, regex, regexConstraintKind, required, safe, safeConstraintKind, segmentPath, segmentPathConstraintKind, strictNegative, strictNegativeConstraintKind, strictPositive, strictPositiveConstraintKind, string, stringFundamentalTypeKind, stringLengthEqual, stringLengthEqualConstraintKind, stringLiteralTypeKind, stringTypeKind, structureIdentifier, structureKind, time, timeFundamentalTypeKind, timeTypeKind, trimmed, trimmedConstraintKind, typeIdentifier, typeKind, typeStructureKind, undefinedHelper as undefined, undefinedFundamentalTypeKind, undefinedTypeKind, union, unionStructureKind, url, urlConstraintKind, uuid, uuidConstraintKind };
|
package/dist/index.cjs
CHANGED
|
@@ -15,6 +15,7 @@ const require_callThen = require("./common/callThen.cjs");
|
|
|
15
15
|
const require_index$1 = require("./object/index.cjs");
|
|
16
16
|
const require_clone = require("./common/clone.cjs");
|
|
17
17
|
const require_index$2 = require("./common/constraint/cast/index.cjs");
|
|
18
|
+
const require_index$3 = require("./common/constraint/infer/index.cjs");
|
|
18
19
|
const require_remove = require("./common/constraint/remove.cjs");
|
|
19
20
|
const require_detachObjectMethod = require("./common/detachObjectMethod.cjs");
|
|
20
21
|
const require_enum = require("./common/enum.cjs");
|
|
@@ -22,10 +23,10 @@ const require_equal = require("./common/equal.cjs");
|
|
|
22
23
|
const require_escapeRegExp = require("./common/escapeRegExp.cjs");
|
|
23
24
|
const require_externalPromise = require("./common/externalPromise.cjs");
|
|
24
25
|
const require_falsy = require("./common/falsy.cjs");
|
|
25
|
-
const require_index$
|
|
26
|
-
const require_index$
|
|
27
|
-
const require_index$
|
|
28
|
-
const require_index$
|
|
26
|
+
const require_index$4 = require("./array/index.cjs");
|
|
27
|
+
const require_index$5 = require("./generator/index.cjs");
|
|
28
|
+
const require_index$6 = require("./either/index.cjs");
|
|
29
|
+
const require_index$7 = require("./chrono/index.cjs");
|
|
29
30
|
const require_formData = require("./common/formData.cjs");
|
|
30
31
|
const require_forward = require("./common/forward.cjs");
|
|
31
32
|
const require_forwardAsserts = require("./common/forwardAsserts.cjs");
|
|
@@ -50,7 +51,7 @@ const require_promiseAll = require("./common/promiseAll.cjs");
|
|
|
50
51
|
const require_promiseObject = require("./common/promiseObject.cjs");
|
|
51
52
|
const require_queue = require("./common/queue.cjs");
|
|
52
53
|
const require_simpleClone = require("./common/simpleClone.cjs");
|
|
53
|
-
const require_index$
|
|
54
|
+
const require_index$8 = require("./string/index.cjs");
|
|
54
55
|
const require_stringToBytes = require("./common/stringToBytes.cjs");
|
|
55
56
|
const require_stringToMillisecond = require("./common/stringToMillisecond.cjs");
|
|
56
57
|
const require_toCurriedPredicate = require("./common/toCurriedPredicate.cjs");
|
|
@@ -60,68 +61,68 @@ const require_truthy = require("./common/truthy.cjs");
|
|
|
60
61
|
const require_when = require("./common/when.cjs");
|
|
61
62
|
const require_whenElse = require("./common/whenElse.cjs");
|
|
62
63
|
const require_whenNot = require("./common/whenNot.cjs");
|
|
63
|
-
const require_index$
|
|
64
|
-
const require_index$
|
|
65
|
-
const require_index$
|
|
66
|
-
const require_index$
|
|
67
|
-
const require_index$
|
|
68
|
-
const require_index$
|
|
69
|
-
const require_index$
|
|
70
|
-
const require_index$
|
|
71
|
-
const require_index$
|
|
64
|
+
const require_index$9 = require("./common/index.cjs");
|
|
65
|
+
const require_index$10 = require("./path/index.cjs");
|
|
66
|
+
const require_index$11 = require("./number/index.cjs");
|
|
67
|
+
const require_index$12 = require("./dataStructure/index.cjs");
|
|
68
|
+
const require_index$13 = require("./tuple/index.cjs");
|
|
69
|
+
const require_index$14 = require("./modeling/index.cjs");
|
|
70
|
+
const require_index$15 = require("./pattern/index.cjs");
|
|
71
|
+
const require_index$16 = require("./invocation/index.cjs");
|
|
72
|
+
const require_index$17 = require("./printer/index.cjs");
|
|
72
73
|
Object.defineProperty(exports, "A", {
|
|
73
74
|
enumerable: true,
|
|
74
75
|
get: function() {
|
|
75
|
-
return require_index$
|
|
76
|
+
return require_index$4.array_exports;
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
79
|
exports.AssertsError = require_asserts.AssertsError;
|
|
79
80
|
Object.defineProperty(exports, "C", {
|
|
80
81
|
enumerable: true,
|
|
81
82
|
get: function() {
|
|
82
|
-
return require_index$
|
|
83
|
+
return require_index$7.chrono_exports;
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
86
|
Object.defineProperty(exports, "DArray", {
|
|
86
87
|
enumerable: true,
|
|
87
88
|
get: function() {
|
|
88
|
-
return require_index$
|
|
89
|
+
return require_index$4.array_exports;
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
92
|
Object.defineProperty(exports, "DChrono", {
|
|
92
93
|
enumerable: true,
|
|
93
94
|
get: function() {
|
|
94
|
-
return require_index$
|
|
95
|
+
return require_index$7.chrono_exports;
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
Object.defineProperty(exports, "DCommon", {
|
|
98
99
|
enumerable: true,
|
|
99
100
|
get: function() {
|
|
100
|
-
return require_index$
|
|
101
|
+
return require_index$9.common_exports;
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
104
|
Object.defineProperty(exports, "DDataStructure", {
|
|
104
105
|
enumerable: true,
|
|
105
106
|
get: function() {
|
|
106
|
-
return require_index$
|
|
107
|
+
return require_index$12.dataStructure_exports;
|
|
107
108
|
}
|
|
108
109
|
});
|
|
109
110
|
Object.defineProperty(exports, "DEither", {
|
|
110
111
|
enumerable: true,
|
|
111
112
|
get: function() {
|
|
112
|
-
return require_index$
|
|
113
|
+
return require_index$6.either_exports;
|
|
113
114
|
}
|
|
114
115
|
});
|
|
115
116
|
Object.defineProperty(exports, "DGenerator", {
|
|
116
117
|
enumerable: true,
|
|
117
118
|
get: function() {
|
|
118
|
-
return require_index$
|
|
119
|
+
return require_index$5.generator_exports;
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
Object.defineProperty(exports, "DInvocation", {
|
|
122
123
|
enumerable: true,
|
|
123
124
|
get: function() {
|
|
124
|
-
return require_index$
|
|
125
|
+
return require_index$16.invocation_exports;
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
128
|
Object.defineProperty(exports, "DKind", {
|
|
@@ -133,13 +134,13 @@ Object.defineProperty(exports, "DKind", {
|
|
|
133
134
|
Object.defineProperty(exports, "DModeling", {
|
|
134
135
|
enumerable: true,
|
|
135
136
|
get: function() {
|
|
136
|
-
return require_index$
|
|
137
|
+
return require_index$14.modeling_exports;
|
|
137
138
|
}
|
|
138
139
|
});
|
|
139
140
|
Object.defineProperty(exports, "DNumber", {
|
|
140
141
|
enumerable: true,
|
|
141
142
|
get: function() {
|
|
142
|
-
return require_index$
|
|
143
|
+
return require_index$11.number_exports;
|
|
143
144
|
}
|
|
144
145
|
});
|
|
145
146
|
Object.defineProperty(exports, "DObject", {
|
|
@@ -151,55 +152,55 @@ Object.defineProperty(exports, "DObject", {
|
|
|
151
152
|
Object.defineProperty(exports, "DPath", {
|
|
152
153
|
enumerable: true,
|
|
153
154
|
get: function() {
|
|
154
|
-
return require_index$
|
|
155
|
+
return require_index$10.path_exports;
|
|
155
156
|
}
|
|
156
157
|
});
|
|
157
158
|
Object.defineProperty(exports, "DPattern", {
|
|
158
159
|
enumerable: true,
|
|
159
160
|
get: function() {
|
|
160
|
-
return require_index$
|
|
161
|
+
return require_index$15.pattern_exports;
|
|
161
162
|
}
|
|
162
163
|
});
|
|
163
164
|
Object.defineProperty(exports, "DPrinter", {
|
|
164
165
|
enumerable: true,
|
|
165
166
|
get: function() {
|
|
166
|
-
return require_index$
|
|
167
|
+
return require_index$17.printer_exports;
|
|
167
168
|
}
|
|
168
169
|
});
|
|
169
170
|
Object.defineProperty(exports, "DS", {
|
|
170
171
|
enumerable: true,
|
|
171
172
|
get: function() {
|
|
172
|
-
return require_index$
|
|
173
|
+
return require_index$12.dataStructure_exports;
|
|
173
174
|
}
|
|
174
175
|
});
|
|
175
176
|
Object.defineProperty(exports, "DString", {
|
|
176
177
|
enumerable: true,
|
|
177
178
|
get: function() {
|
|
178
|
-
return require_index$
|
|
179
|
+
return require_index$8.string_exports;
|
|
179
180
|
}
|
|
180
181
|
});
|
|
181
182
|
Object.defineProperty(exports, "DTuple", {
|
|
182
183
|
enumerable: true,
|
|
183
184
|
get: function() {
|
|
184
|
-
return require_index$
|
|
185
|
+
return require_index$13.tuple_exports;
|
|
185
186
|
}
|
|
186
187
|
});
|
|
187
188
|
Object.defineProperty(exports, "E", {
|
|
188
189
|
enumerable: true,
|
|
189
190
|
get: function() {
|
|
190
|
-
return require_index$
|
|
191
|
+
return require_index$6.either_exports;
|
|
191
192
|
}
|
|
192
193
|
});
|
|
193
194
|
Object.defineProperty(exports, "G", {
|
|
194
195
|
enumerable: true,
|
|
195
196
|
get: function() {
|
|
196
|
-
return require_index$
|
|
197
|
+
return require_index$5.generator_exports;
|
|
197
198
|
}
|
|
198
199
|
});
|
|
199
200
|
Object.defineProperty(exports, "I", {
|
|
200
201
|
enumerable: true,
|
|
201
202
|
get: function() {
|
|
202
|
-
return require_index$
|
|
203
|
+
return require_index$16.invocation_exports;
|
|
203
204
|
}
|
|
204
205
|
});
|
|
205
206
|
exports.InvalidBytesInStringError = require_stringToBytes.InvalidBytesInStringError;
|
|
@@ -207,14 +208,14 @@ exports.InvalidMillisecondInStringError = require_stringToMillisecond.InvalidMil
|
|
|
207
208
|
Object.defineProperty(exports, "M", {
|
|
208
209
|
enumerable: true,
|
|
209
210
|
get: function() {
|
|
210
|
-
return require_index$
|
|
211
|
+
return require_index$14.modeling_exports;
|
|
211
212
|
}
|
|
212
213
|
});
|
|
213
214
|
exports.MissingBuilderMethodsError = require_builder.MissingBuilderMethodsError;
|
|
214
215
|
Object.defineProperty(exports, "N", {
|
|
215
216
|
enumerable: true,
|
|
216
217
|
get: function() {
|
|
217
|
-
return require_index$
|
|
218
|
+
return require_index$11.number_exports;
|
|
218
219
|
}
|
|
219
220
|
});
|
|
220
221
|
Object.defineProperty(exports, "O", {
|
|
@@ -226,19 +227,19 @@ Object.defineProperty(exports, "O", {
|
|
|
226
227
|
Object.defineProperty(exports, "P", {
|
|
227
228
|
enumerable: true,
|
|
228
229
|
get: function() {
|
|
229
|
-
return require_index$
|
|
230
|
+
return require_index$15.pattern_exports;
|
|
230
231
|
}
|
|
231
232
|
});
|
|
232
233
|
Object.defineProperty(exports, "S", {
|
|
233
234
|
enumerable: true,
|
|
234
235
|
get: function() {
|
|
235
|
-
return require_index$
|
|
236
|
+
return require_index$8.string_exports;
|
|
236
237
|
}
|
|
237
238
|
});
|
|
238
239
|
Object.defineProperty(exports, "T", {
|
|
239
240
|
enumerable: true,
|
|
240
241
|
get: function() {
|
|
241
|
-
return require_index$
|
|
242
|
+
return require_index$13.tuple_exports;
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
245
|
exports.TheFormData = require_formData.TheFormData;
|
|
@@ -269,6 +270,7 @@ exports.falsy = require_falsy.falsy;
|
|
|
269
270
|
exports.forward = require_forward.forward;
|
|
270
271
|
exports.forwardAsserts = require_forwardAsserts.forwardAsserts;
|
|
271
272
|
exports.forwardLog = require_forwardLog.forwardLog;
|
|
273
|
+
exports.infer = require_index$3.infer;
|
|
272
274
|
exports.innerPipe = require_innerPipe.innerPipe;
|
|
273
275
|
exports.instanceOf = require_instanceOf.instanceOf;
|
|
274
276
|
exports.isType = require_isType.isType;
|
package/dist/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { callThen } from "./common/callThen.mjs";
|
|
|
14
14
|
import { object_exports } from "./object/index.mjs";
|
|
15
15
|
import { clone } from "./common/clone.mjs";
|
|
16
16
|
import { cast, shameOnYou } from "./common/constraint/cast/index.mjs";
|
|
17
|
+
import { infer } from "./common/constraint/infer/index.mjs";
|
|
17
18
|
import { removeConstraint } from "./common/constraint/remove.mjs";
|
|
18
19
|
import { detachObjectMethod } from "./common/detachObjectMethod.mjs";
|
|
19
20
|
import { createEnum } from "./common/enum.mjs";
|
|
@@ -60,12 +61,12 @@ import { when } from "./common/when.mjs";
|
|
|
60
61
|
import { whenElse } from "./common/whenElse.mjs";
|
|
61
62
|
import { whenNot } from "./common/whenNot.mjs";
|
|
62
63
|
import { common_exports } from "./common/index.mjs";
|
|
64
|
+
import { path_exports } from "./path/index.mjs";
|
|
63
65
|
import { number_exports } from "./number/index.mjs";
|
|
64
66
|
import { dataStructure_exports } from "./dataStructure/index.mjs";
|
|
65
67
|
import { tuple_exports } from "./tuple/index.mjs";
|
|
66
68
|
import { modeling_exports } from "./modeling/index.mjs";
|
|
67
69
|
import { pattern_exports } from "./pattern/index.mjs";
|
|
68
70
|
import { invocation_exports } from "./invocation/index.mjs";
|
|
69
|
-
import { path_exports } from "./path/index.mjs";
|
|
70
71
|
import { printer_exports } from "./printer/index.mjs";
|
|
71
|
-
export { array_exports as A, AssertsError, chrono_exports as C, array_exports as DArray, chrono_exports as DChrono, common_exports as DCommon, dataStructure_exports as DDataStructure, either_exports as DEither, generator_exports as DGenerator, invocation_exports as DInvocation, kind_exports as DKind, modeling_exports as DModeling, number_exports as DNumber, object_exports as DObject, path_exports as DPath, pattern_exports as DPattern, printer_exports as DPrinter, dataStructure_exports as DS, string_exports as DString, tuple_exports as DTuple, either_exports as E, generator_exports as G, invocation_exports as I, InvalidBytesInStringError, InvalidMillisecondInStringError, modeling_exports as M, MissingBuilderMethodsError, number_exports as N, object_exports as O, pattern_exports as P, string_exports as S, tuple_exports as T, TheFormData, and, asserts, asyncInnerPipe, asyncLoop, asyncPipe, bindPrototypeMethods, builderKind, callThen, cast, clone, createAsyncRetry, createBuilder, createEnum, createExternalPromise, createFormData, createGlobalStore, createInterpolation, createKind, createQueue, createTransformer, detachObjectMethod, equal, escapeRegExp, falsy, forward, forwardAsserts, forwardLog, innerPipe, instanceOf, isType, justExec, justReturn, loop, memo, memoObject, memoPromise, mimeType, or, pipe, pipeCall, prepareAsyncPipe, preparePipe, promiseAll, promiseObject, queueKind, removeConstraint, shameOnYou, simpleClone, stringToBytes, stringToMillisecond, timeout, toCurriedPredicate, toJSON, toNative, toRegExp, transformer, truthy, useAsyncRetry, when, whenElse, whenNot };
|
|
72
|
+
export { array_exports as A, AssertsError, chrono_exports as C, array_exports as DArray, chrono_exports as DChrono, common_exports as DCommon, dataStructure_exports as DDataStructure, either_exports as DEither, generator_exports as DGenerator, invocation_exports as DInvocation, kind_exports as DKind, modeling_exports as DModeling, number_exports as DNumber, object_exports as DObject, path_exports as DPath, pattern_exports as DPattern, printer_exports as DPrinter, dataStructure_exports as DS, string_exports as DString, tuple_exports as DTuple, either_exports as E, generator_exports as G, invocation_exports as I, InvalidBytesInStringError, InvalidMillisecondInStringError, modeling_exports as M, MissingBuilderMethodsError, number_exports as N, object_exports as O, pattern_exports as P, string_exports as S, tuple_exports as T, TheFormData, and, asserts, asyncInnerPipe, asyncLoop, asyncPipe, bindPrototypeMethods, builderKind, callThen, cast, clone, createAsyncRetry, createBuilder, createEnum, createExternalPromise, createFormData, createGlobalStore, createInterpolation, createKind, createQueue, createTransformer, detachObjectMethod, equal, escapeRegExp, falsy, forward, forwardAsserts, forwardLog, infer, innerPipe, instanceOf, isType, justExec, justReturn, loop, memo, memoObject, memoPromise, mimeType, or, pipe, pipeCall, prepareAsyncPipe, preparePipe, promiseAll, promiseObject, queueKind, removeConstraint, shameOnYou, simpleClone, stringToBytes, stringToMillisecond, timeout, toCurriedPredicate, toJSON, toNative, toRegExp, transformer, truthy, useAsyncRetry, when, whenElse, whenNot };
|
|
@@ -7,7 +7,7 @@ const namespaceKind = require_kind.createKind("namespace");
|
|
|
7
7
|
function createEntityNamespace(entityName) {
|
|
8
8
|
return {
|
|
9
9
|
name: entityName,
|
|
10
|
-
createNewType: (name, structure, newTypeConstraints = []) => require_helper$1.
|
|
10
|
+
createNewType: (name, structure, newTypeConstraints = []) => require_helper$1.createNewType(`${entityName}${name}`, structure, newTypeConstraints),
|
|
11
11
|
createEntity: (shape) => require_helper.createEntity(entityName, shape),
|
|
12
12
|
createFlag: (entityStructure, name, valueStructure) => require_base.createFlag(entityStructure, `${entityName}${name}`, valueStructure),
|
|
13
13
|
[namespaceKind.runTimeKey]: null
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createKind } from "../kind.mjs";
|
|
2
2
|
import { createEntity } from "./helper.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { createNewType } from "../newType/helper.mjs";
|
|
4
4
|
import { createFlag } from "../flag/base.mjs";
|
|
5
5
|
//#region scripts/modeling/entity/namespace.ts
|
|
6
6
|
const namespaceKind = createKind("namespace");
|
|
7
7
|
function createEntityNamespace(entityName) {
|
|
8
8
|
return {
|
|
9
9
|
name: entityName,
|
|
10
|
-
createNewType: (name, structure, newTypeConstraints = []) =>
|
|
10
|
+
createNewType: (name, structure, newTypeConstraints = []) => createNewType(`${entityName}${name}`, structure, newTypeConstraints),
|
|
11
11
|
createEntity: (shape) => createEntity(entityName, shape),
|
|
12
12
|
createFlag: (entityStructure, name, valueStructure) => createFlag(entityStructure, `${entityName}${name}`, valueStructure),
|
|
13
13
|
[namespaceKind.runTimeKey]: null
|
package/dist/modeling/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ var modeling_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
17
17
|
createEntityNamespace: () => require_namespace.createEntityNamespace,
|
|
18
18
|
createFlag: () => require_base$2.createFlag,
|
|
19
19
|
createKind: () => require_kind.createKind,
|
|
20
|
-
|
|
20
|
+
createNewType: () => require_helper$1.createNewType,
|
|
21
21
|
createTaggedObject: () => require_helper$2.createTaggedObject,
|
|
22
22
|
entityKind: () => require_base.entityKind,
|
|
23
23
|
entityStructureKind: () => require_base.entityStructureKind,
|
|
@@ -38,7 +38,7 @@ exports.createEntity = require_helper.createEntity;
|
|
|
38
38
|
exports.createEntityNamespace = require_namespace.createEntityNamespace;
|
|
39
39
|
exports.createFlag = require_base$2.createFlag;
|
|
40
40
|
exports.createKind = require_kind.createKind;
|
|
41
|
-
exports.
|
|
41
|
+
exports.createNewType = require_helper$1.createNewType;
|
|
42
42
|
exports.createTaggedObject = require_helper$2.createTaggedObject;
|
|
43
43
|
exports.entityKind = require_base.entityKind;
|
|
44
44
|
exports.entityStructureKind = require_base.entityStructureKind;
|
package/dist/modeling/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { createKind } from "./kind.mjs";
|
|
|
3
3
|
import { EntityStructure, entityKind, entityStructureKind } from "./entity/base.mjs";
|
|
4
4
|
import { createEntity } from "./entity/helper.mjs";
|
|
5
5
|
import { NewTypeStructure, newTypeStructureKind } from "./newType/base.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { createNewType } from "./newType/helper.mjs";
|
|
7
7
|
import { createFlag, flagKind } from "./flag/base.mjs";
|
|
8
8
|
import { createEntityNamespace, namespaceKind } from "./entity/namespace.mjs";
|
|
9
9
|
import { TaggedObjectStructure, objectTagKind, taggedObjectStructureKind } from "./taggedObject/base.mjs";
|
|
@@ -17,7 +17,7 @@ var modeling_exports = /* @__PURE__ */ __exportAll({
|
|
|
17
17
|
createEntityNamespace: () => createEntityNamespace,
|
|
18
18
|
createFlag: () => createFlag,
|
|
19
19
|
createKind: () => createKind,
|
|
20
|
-
|
|
20
|
+
createNewType: () => createNewType,
|
|
21
21
|
createTaggedObject: () => createTaggedObject,
|
|
22
22
|
entityKind: () => entityKind,
|
|
23
23
|
entityStructureKind: () => entityStructureKind,
|
|
@@ -31,4 +31,4 @@ var modeling_exports = /* @__PURE__ */ __exportAll({
|
|
|
31
31
|
taggedObjectStructureKind: () => taggedObjectStructureKind
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
|
-
export { EntityStructure, NewTypeStructure, TaggedObjectStructure, createEntity, createEntityNamespace, createFlag, createKind,
|
|
34
|
+
export { EntityStructure, NewTypeStructure, TaggedObjectStructure, createEntity, createEntityNamespace, createFlag, createKind, createNewType, createTaggedObject, entityKind, entityStructureKind, flagKind, getTagValue, hasTagValue, modeling_exports, namespaceKind, newTypeStructureKind, objectTagKind, taggedObject, taggedObjectStructureKind };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_base = require("./base.cjs");
|
|
2
2
|
//#region scripts/modeling/newType/helper.ts
|
|
3
|
-
function
|
|
3
|
+
function createNewType(name, structure, newTypeConstraints = []) {
|
|
4
4
|
return require_base.NewTypeStructure(name, structure, newTypeConstraints);
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
-
exports.
|
|
7
|
+
exports.createNewType = createNewType;
|
|
@@ -2,4 +2,4 @@ import { NewType, NewTypeStructure } from './base';
|
|
|
2
2
|
import type * as DCommon from '../../common';
|
|
3
3
|
import type * as DDataStructure from '../../dataStructure';
|
|
4
4
|
export type ForbiddenTopLevelNewType<GenericValue extends unknown> = GenericValue extends NewType ? DCommon.ComputedTypeError<"NewType on top level of NewType declaration is forbidden."> : never;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function createNewType<GenericName extends Capitalize<string>, GenericStructure extends DDataStructure.Structure, const GenericNewTypeConstraint extends readonly DDataStructure.Constraint<DDataStructure.StructureValue<GenericStructure>>[] = readonly []>(name: (GenericName & DCommon.NeverCoalescing<ForbiddenTopLevelNewType<DDataStructure.StructureValue<GenericStructure>>, unknown>), structure: GenericStructure, newTypeConstraints?: GenericNewTypeConstraint): NewTypeStructure<GenericName & DCommon.NeverCoalescing<ForbiddenTopLevelNewType<DDataStructure.StructureValue<GenericStructure>>, unknown>, DDataStructure.StructureValue<GenericStructure>, GenericNewTypeConstraint>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NewTypeStructure } from "./base.mjs";
|
|
2
2
|
//#region scripts/modeling/newType/helper.ts
|
|
3
|
-
function
|
|
3
|
+
function createNewType(name, structure, newTypeConstraints = []) {
|
|
4
4
|
return NewTypeStructure(name, structure, newTypeConstraints);
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { createNewType };
|
|
@@ -19,8 +19,13 @@ function taggedObject(tag, props) {
|
|
|
19
19
|
[require_base.objectTagKind.runTimeKey]: tag
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function createTaggedObject(
|
|
23
|
-
|
|
22
|
+
function createTaggedObject(...args) {
|
|
23
|
+
if (args.length === 1) {
|
|
24
|
+
const [name] = args;
|
|
25
|
+
return (shape) => createTaggedObject(name, shape);
|
|
26
|
+
}
|
|
27
|
+
const [name, shape] = args;
|
|
28
|
+
return require_base.TaggedObjectStructure(name, shape);
|
|
24
29
|
}
|
|
25
30
|
//#endregion
|
|
26
31
|
exports.createTaggedObject = createTaggedObject;
|