@almadar/core 10.64.0 → 10.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders.d.ts +3 -3
- package/dist/{effect-DOqkIe2M.d.ts → effect-BTXY2wl8.d.ts} +18 -15
- package/dist/{entityAccess-BOIRacH7.d.ts → entityAccess-B5nbSI6L.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/{index-BQkyHRT3.d.ts → index-BNEx05jQ.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2340 -430
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +65 -66
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -8
- package/dist/patterns/index.d.ts +7449 -4131
- package/dist/patterns/index.js +2340 -430
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +2327 -445
- package/dist/patterns/patterns-registry.json +50 -15
- package/dist/patterns/registry.json +50 -15
- package/dist/patterns/services-registry.json +1348 -96
- package/dist/{schema-B648ulAY.d.ts → schema-DwFRl8ZS.d.ts} +390 -390
- package/dist/{trait-C6Jqfflp.d.ts → trait-CzOtZitc.d.ts} +61 -61
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js.map +1 -1
- package/dist/{types-j7OsANcy.d.ts → types-C0NIDJ5X.d.ts} +2 -2
- package/package.json +1 -1
package/dist/mock/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as OrbitalSchema } from '../schema-
|
|
2
|
-
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessTable } from '../entityAccess-
|
|
3
|
-
import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-
|
|
4
|
-
import '../trait-
|
|
1
|
+
import { O as OrbitalSchema } from '../schema-DwFRl8ZS.js';
|
|
2
|
+
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessTable } from '../entityAccess-B5nbSI6L.js';
|
|
3
|
+
import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-BTXY2wl8.js';
|
|
4
|
+
import '../trait-CzOtZitc.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/mock/index.js
CHANGED
|
@@ -62,68 +62,66 @@ function randomAnytimeDate() {
|
|
|
62
62
|
return new Date(now - age);
|
|
63
63
|
}
|
|
64
64
|
var LOREM_WORDS = [
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"est",
|
|
126
|
-
"laborum"
|
|
65
|
+
"harbor",
|
|
66
|
+
"summit",
|
|
67
|
+
"meridian",
|
|
68
|
+
"atlas",
|
|
69
|
+
"beacon",
|
|
70
|
+
"cedar",
|
|
71
|
+
"delta",
|
|
72
|
+
"ember",
|
|
73
|
+
"falcon",
|
|
74
|
+
"garnet",
|
|
75
|
+
"horizon",
|
|
76
|
+
"indigo",
|
|
77
|
+
"juniper",
|
|
78
|
+
"keystone",
|
|
79
|
+
"lantern",
|
|
80
|
+
"meadow",
|
|
81
|
+
"nimbus",
|
|
82
|
+
"orchard",
|
|
83
|
+
"pioneer",
|
|
84
|
+
"quarry",
|
|
85
|
+
"redwood",
|
|
86
|
+
"sierra",
|
|
87
|
+
"timber",
|
|
88
|
+
"umber",
|
|
89
|
+
"vista",
|
|
90
|
+
"willow",
|
|
91
|
+
"zenith",
|
|
92
|
+
"anchor",
|
|
93
|
+
"basalt",
|
|
94
|
+
"canyon",
|
|
95
|
+
"drift",
|
|
96
|
+
"estuary",
|
|
97
|
+
"fjord",
|
|
98
|
+
"grove",
|
|
99
|
+
"heath",
|
|
100
|
+
"inlet",
|
|
101
|
+
"jade",
|
|
102
|
+
"knoll",
|
|
103
|
+
"lagoon",
|
|
104
|
+
"mesa",
|
|
105
|
+
"north",
|
|
106
|
+
"onyx",
|
|
107
|
+
"prairie",
|
|
108
|
+
"quartz",
|
|
109
|
+
"ridge",
|
|
110
|
+
"slate",
|
|
111
|
+
"terrace",
|
|
112
|
+
"upland",
|
|
113
|
+
"valley",
|
|
114
|
+
"wharf",
|
|
115
|
+
"yonder",
|
|
116
|
+
"aspen",
|
|
117
|
+
"brook",
|
|
118
|
+
"cove",
|
|
119
|
+
"dune",
|
|
120
|
+
"elm",
|
|
121
|
+
"fern",
|
|
122
|
+
"glen",
|
|
123
|
+
"haven",
|
|
124
|
+
"isle"
|
|
127
125
|
];
|
|
128
126
|
function randomWords(count) {
|
|
129
127
|
const words = [];
|
|
@@ -733,7 +731,7 @@ function sampleText(field, ctx) {
|
|
|
733
731
|
if (IMAGE_FIELD_NAMES.has(fieldName.toLowerCase())) {
|
|
734
732
|
return sampleImageUrl(ctx.entityName, fieldName, ctx);
|
|
735
733
|
}
|
|
736
|
-
return ctx.strategy === "seeded" ? randomWords(2) : `${titleCase(fieldName)} ${ctx.index}`;
|
|
734
|
+
return ctx.strategy === "seeded" ? titleCase(randomWords(2)) : `${titleCase(fieldName)} ${ctx.index}`;
|
|
737
735
|
}
|
|
738
736
|
function sampleDate(ctx, dateOnly) {
|
|
739
737
|
if (ctx.strategy === "index") {
|
|
@@ -804,16 +802,17 @@ function sampleFieldValue(field, ctx) {
|
|
|
804
802
|
return sampleImageUrl(ctx.entityName, field.name ?? "image", ctx);
|
|
805
803
|
case "number": {
|
|
806
804
|
if (ctx.strategy === "seeded") {
|
|
807
|
-
return randomInt({ min: field.min ??
|
|
805
|
+
return randomInt({ min: field.min ?? 1, max: field.max ?? 250 });
|
|
808
806
|
}
|
|
809
807
|
const stepped = (field.min ?? 0) + ctx.index * 10;
|
|
810
808
|
return field.max !== void 0 && stepped > field.max ? field.max : stepped;
|
|
811
809
|
}
|
|
812
810
|
// Money is numeric at rest — same sampling as `number` (index strategy
|
|
813
|
-
// mirrors the Rust seeder for the shared parity fixture).
|
|
811
|
+
// mirrors the Rust seeder for the shared parity fixture). Seeded fallback
|
|
812
|
+
// avoids $0.00 amounts for the same reason as `number`.
|
|
814
813
|
case "money": {
|
|
815
814
|
if (ctx.strategy === "seeded") {
|
|
816
|
-
return randomInt({ min: field.min ??
|
|
815
|
+
return randomInt({ min: field.min ?? 10, max: field.max ?? 900 });
|
|
817
816
|
}
|
|
818
817
|
const steppedMoney = (field.min ?? 0) + ctx.index * 10;
|
|
819
818
|
return field.max !== void 0 && steppedMoney > field.max ? field.max : steppedMoney;
|