simetra 0.3.0-next.10 → 0.3.0-next.11
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/compiler/index.d.ts +2 -2
- package/dist/data/index.js +29 -6
- package/dist/model/index.d.ts +35 -35
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/ui/index.js +4 -1
- package/package.json +2 -2
package/dist/compiler/index.d.ts
CHANGED
|
@@ -2630,8 +2630,8 @@ export declare const promoteInput: z.ZodObject<{
|
|
|
2630
2630
|
to: z.ZodLiteral<"attribute">;
|
|
2631
2631
|
collection: z.ZodDefault<z.ZodEnum<{
|
|
2632
2632
|
attributes: "attributes";
|
|
2633
|
-
resources: "resources";
|
|
2634
2633
|
dimensions: "dimensions";
|
|
2634
|
+
resources: "resources";
|
|
2635
2635
|
}>>;
|
|
2636
2636
|
element: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2637
2637
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2650,8 +2650,8 @@ export declare const promoteInput: z.ZodObject<{
|
|
|
2650
2650
|
to: z.ZodLiteral<"attribute">;
|
|
2651
2651
|
collection: z.ZodDefault<z.ZodEnum<{
|
|
2652
2652
|
attributes: "attributes";
|
|
2653
|
-
resources: "resources";
|
|
2654
2653
|
dimensions: "dimensions";
|
|
2654
|
+
resources: "resources";
|
|
2655
2655
|
}>>;
|
|
2656
2656
|
element: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2657
2657
|
}, z.core.$strict>, z.ZodObject<{
|
package/dist/data/index.js
CHANGED
|
@@ -4139,7 +4139,7 @@ const FLIGHT_KIND_RULES = {
|
|
|
4139
4139
|
],
|
|
4140
4140
|
confirms: "view-with-composition",
|
|
4141
4141
|
successMovesDeadline: true,
|
|
4142
|
-
failureCounts: "
|
|
4142
|
+
failureCounts: "always",
|
|
4143
4143
|
liftsBanners: true,
|
|
4144
4144
|
setsBanners: false,
|
|
4145
4145
|
discarded: "pause-then-retry"
|
|
@@ -4555,7 +4555,7 @@ function settleFlight(state, input) {
|
|
|
4555
4555
|
failures: 0,
|
|
4556
4556
|
failedAt: void 0
|
|
4557
4557
|
};
|
|
4558
|
-
if (input.outcome === "failed" && input.applyFailed !== true &&
|
|
4558
|
+
if (input.outcome === "failed" && input.applyFailed !== true && rules.failureCounts === "always") next = {
|
|
4559
4559
|
...next,
|
|
4560
4560
|
failures: next.failures + 1,
|
|
4561
4561
|
failedAt: input.startedAt
|
|
@@ -5438,8 +5438,7 @@ function settleTarget(s, flight, outcome, failure, context) {
|
|
|
5438
5438
|
return false;
|
|
5439
5439
|
}
|
|
5440
5440
|
const rules = rulesOf(flight);
|
|
5441
|
-
const
|
|
5442
|
-
const counts = (applied) => applied ? rules.successMovesDeadline : context.readFailed && (rules.failureCounts === "always" || rules.failureCounts === "if-loaded" && loadedBefore);
|
|
5441
|
+
const counts = (applied) => applied ? rules.successMovesDeadline : context.readFailed && rules.failureCounts === "always";
|
|
5443
5442
|
const sentAt = "part" in s && s.part === "rights" ? s.targetState.refreshedAt : void 0;
|
|
5444
5443
|
const settle = (applied) => ({
|
|
5445
5444
|
outcome: applied ? "applied" : "failed",
|
|
@@ -5452,7 +5451,6 @@ function settleTarget(s, flight, outcome, failure, context) {
|
|
|
5452
5451
|
epoch: required(flight.epoch, "its start epoch"),
|
|
5453
5452
|
...flight.kind === "load" && s.targetState.flightRevision !== void 0 ? { headerRevision: s.targetState.flightRevision } : {},
|
|
5454
5453
|
startedAt: sentAt ?? (counts(applied) ? required(flight.startedAt, "its start time") : flight.startedAt ?? 0),
|
|
5455
|
-
loaded: loadedBefore,
|
|
5456
5454
|
applyFailed: !context.readFailed,
|
|
5457
5455
|
...context.report?.sectionRead === void 0 ? {} : { sectionRead: context.report.sectionRead },
|
|
5458
5456
|
...context.report?.carriedHeader === true ? { carriedHeader: true } : {}
|
|
@@ -7035,6 +7033,23 @@ function eligible(ctx, s, options) {
|
|
|
7035
7033
|
return s.alive && !s.purged && s.loaded && (!options.visibleOnly || isVisible(s) || options.alsoViews?.has(s) === true) && (minAgeMs === void 0 || ctx.defects.has("min-age-ignored") || ctx.defects.has("min-age-ignored-sections") && s.form.spec.kind === "section" || (s.targetState.refreshedAt !== void 0 && ctx.defects.has("min-age-all-young") ? false : ctx.now() >= dueOf(ctx, s, minAgeMs))) && (s.form.spec.kind !== "section" || s.listeners.size > 0 || options.alsoViews?.has(s) === true);
|
|
7036
7034
|
}
|
|
7037
7035
|
/**
|
|
7036
|
+
* A view whose first load failed and stands idle (row 18): no row, so it is
|
|
7037
|
+
* not {@link eligible} for `revalidate` — its read is a load, not a re-read.
|
|
7038
|
+
* The failure pause (`viewDue`) is its only due time.
|
|
7039
|
+
*/
|
|
7040
|
+
const failedFirstLoad = (s) => s.alive && !s.purged && !s.loaded && s.status === "error" && s.targetState.failures > 0 && s.targetState.flight === void 0;
|
|
7041
|
+
/**
|
|
7042
|
+
* The failed first loads whose pause ended: the tick loads them again
|
|
7043
|
+
* without a user action (row 18). The gate judges the read itself (M7).
|
|
7044
|
+
*/
|
|
7045
|
+
function dueFirstLoads(ctx, object) {
|
|
7046
|
+
return [...ctx.registry.subsets()].filter((s) => {
|
|
7047
|
+
if (s.form.object.name !== object || !failedFirstLoad(s)) return false;
|
|
7048
|
+
const at = viewDue(ctx, s);
|
|
7049
|
+
return at !== void 0 && ctx.now() >= at;
|
|
7050
|
+
});
|
|
7051
|
+
}
|
|
7052
|
+
/**
|
|
7038
7053
|
* The earliest due time of the object's views the interval tick would read
|
|
7039
7054
|
* (P4-B spec §6.7): visible, loaded, not in flight, not out of the discard
|
|
7040
7055
|
* limit — the same filter `revalidate` applies with `minAgeMs`, so the timer
|
|
@@ -7053,6 +7068,7 @@ function nextViewDue(ctx, object) {
|
|
|
7053
7068
|
* reads it then); `undefined` — the tick does not read it.
|
|
7054
7069
|
*/
|
|
7055
7070
|
function viewDue(ctx, s) {
|
|
7071
|
+
if (failedFirstLoad(s)) return isVisible(s) && !unavailable(s) ? dueOf(ctx, s) : void 0;
|
|
7056
7072
|
if (!eligible(ctx, s, { visibleOnly: true })) return void 0;
|
|
7057
7073
|
if (inFlight(s) || unavailable(s) && !ctx.defects.has("scheduler-reads-unavailable")) return void 0;
|
|
7058
7074
|
const at = dueOf(ctx, s);
|
|
@@ -9196,7 +9212,14 @@ function createCore(options) {
|
|
|
9196
9212
|
}
|
|
9197
9213
|
const minAgeMs = .9 * limits.revalidateIntervalMs;
|
|
9198
9214
|
let read = false;
|
|
9199
|
-
for (const o of objects.values())
|
|
9215
|
+
for (const o of objects.values()) {
|
|
9216
|
+
if (gate.staleObject(o.name)) continue;
|
|
9217
|
+
if (hasDueViews(writerContext, o.name, minAgeMs)) read = true;
|
|
9218
|
+
for (const s of dueFirstLoads(writerContext, o.name)) registry.load(s, {
|
|
9219
|
+
reason: "retry",
|
|
9220
|
+
site: "M7"
|
|
9221
|
+
});
|
|
9222
|
+
}
|
|
9200
9223
|
if (runDue()) read = true;
|
|
9201
9224
|
if (wave !== void 0 && wave.at <= now()) fireWave();
|
|
9202
9225
|
receiver?.tick();
|
package/dist/model/index.d.ts
CHANGED
|
@@ -87,12 +87,12 @@ export declare const attributeSchema: z.ZodObject<{
|
|
|
87
87
|
pattern: z.ZodOptional<z.ZodString>;
|
|
88
88
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
89
89
|
type: z.ZodEnum<{
|
|
90
|
-
BigInt: "BigInt";
|
|
91
90
|
UUID: "UUID";
|
|
92
91
|
String: "String";
|
|
93
92
|
Text: "Text";
|
|
94
93
|
Integer: "Integer";
|
|
95
94
|
SmallInt: "SmallInt";
|
|
95
|
+
BigInt: "BigInt";
|
|
96
96
|
Numeric: "Numeric";
|
|
97
97
|
Boolean: "Boolean";
|
|
98
98
|
Date: "Date";
|
|
@@ -189,12 +189,12 @@ export declare const catalogAttributeSchema: z.ZodObject<{
|
|
|
189
189
|
pattern: z.ZodOptional<z.ZodString>;
|
|
190
190
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
191
191
|
type: z.ZodEnum<{
|
|
192
|
-
BigInt: "BigInt";
|
|
193
192
|
UUID: "UUID";
|
|
194
193
|
String: "String";
|
|
195
194
|
Text: "Text";
|
|
196
195
|
Integer: "Integer";
|
|
197
196
|
SmallInt: "SmallInt";
|
|
197
|
+
BigInt: "BigInt";
|
|
198
198
|
Numeric: "Numeric";
|
|
199
199
|
Boolean: "Boolean";
|
|
200
200
|
Date: "Date";
|
|
@@ -322,12 +322,12 @@ export declare const tabularSectionSchema: z.ZodObject<{
|
|
|
322
322
|
pattern: z.ZodOptional<z.ZodString>;
|
|
323
323
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
324
324
|
type: z.ZodEnum<{
|
|
325
|
-
BigInt: "BigInt";
|
|
326
325
|
UUID: "UUID";
|
|
327
326
|
String: "String";
|
|
328
327
|
Text: "Text";
|
|
329
328
|
Integer: "Integer";
|
|
330
329
|
SmallInt: "SmallInt";
|
|
330
|
+
BigInt: "BigInt";
|
|
331
331
|
Numeric: "Numeric";
|
|
332
332
|
Boolean: "Boolean";
|
|
333
333
|
Date: "Date";
|
|
@@ -528,12 +528,12 @@ type LogicalType = (typeof LOGICAL_TYPES)[number];
|
|
|
528
528
|
/** Поля типу, спільні для реквізиту, константи й колонки. */
|
|
529
529
|
export declare const valueTypeShape: {
|
|
530
530
|
type: z.ZodEnum<{
|
|
531
|
-
BigInt: "BigInt";
|
|
532
531
|
UUID: "UUID";
|
|
533
532
|
String: "String";
|
|
534
533
|
Text: "Text";
|
|
535
534
|
Integer: "Integer";
|
|
536
535
|
SmallInt: "SmallInt";
|
|
536
|
+
BigInt: "BigInt";
|
|
537
537
|
Numeric: "Numeric";
|
|
538
538
|
Boolean: "Boolean";
|
|
539
539
|
Date: "Date";
|
|
@@ -800,12 +800,12 @@ export declare const catalogSchema: z.ZodObject<{
|
|
|
800
800
|
pattern: z.ZodOptional<z.ZodString>;
|
|
801
801
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
802
802
|
type: z.ZodEnum<{
|
|
803
|
-
BigInt: "BigInt";
|
|
804
803
|
UUID: "UUID";
|
|
805
804
|
String: "String";
|
|
806
805
|
Text: "Text";
|
|
807
806
|
Integer: "Integer";
|
|
808
807
|
SmallInt: "SmallInt";
|
|
808
|
+
BigInt: "BigInt";
|
|
809
809
|
Numeric: "Numeric";
|
|
810
810
|
Boolean: "Boolean";
|
|
811
811
|
Date: "Date";
|
|
@@ -911,12 +911,12 @@ export declare const catalogSchema: z.ZodObject<{
|
|
|
911
911
|
pattern: z.ZodOptional<z.ZodString>;
|
|
912
912
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
913
913
|
type: z.ZodEnum<{
|
|
914
|
-
BigInt: "BigInt";
|
|
915
914
|
UUID: "UUID";
|
|
916
915
|
String: "String";
|
|
917
916
|
Text: "Text";
|
|
918
917
|
Integer: "Integer";
|
|
919
918
|
SmallInt: "SmallInt";
|
|
919
|
+
BigInt: "BigInt";
|
|
920
920
|
Numeric: "Numeric";
|
|
921
921
|
Boolean: "Boolean";
|
|
922
922
|
Date: "Date";
|
|
@@ -1170,12 +1170,12 @@ export declare const documentSchema: z.ZodObject<{
|
|
|
1170
1170
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1171
1171
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1172
1172
|
type: z.ZodEnum<{
|
|
1173
|
-
BigInt: "BigInt";
|
|
1174
1173
|
UUID: "UUID";
|
|
1175
1174
|
String: "String";
|
|
1176
1175
|
Text: "Text";
|
|
1177
1176
|
Integer: "Integer";
|
|
1178
1177
|
SmallInt: "SmallInt";
|
|
1178
|
+
BigInt: "BigInt";
|
|
1179
1179
|
Numeric: "Numeric";
|
|
1180
1180
|
Boolean: "Boolean";
|
|
1181
1181
|
Date: "Date";
|
|
@@ -1281,12 +1281,12 @@ export declare const documentSchema: z.ZodObject<{
|
|
|
1281
1281
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1282
1282
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1283
1283
|
type: z.ZodEnum<{
|
|
1284
|
-
BigInt: "BigInt";
|
|
1285
1284
|
UUID: "UUID";
|
|
1286
1285
|
String: "String";
|
|
1287
1286
|
Text: "Text";
|
|
1288
1287
|
Integer: "Integer";
|
|
1289
1288
|
SmallInt: "SmallInt";
|
|
1289
|
+
BigInt: "BigInt";
|
|
1290
1290
|
Numeric: "Numeric";
|
|
1291
1291
|
Boolean: "Boolean";
|
|
1292
1292
|
Date: "Date";
|
|
@@ -1509,12 +1509,12 @@ export declare const informationRegisterSchema: z.ZodObject<{
|
|
|
1509
1509
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1510
1510
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1511
1511
|
type: z.ZodEnum<{
|
|
1512
|
-
BigInt: "BigInt";
|
|
1513
1512
|
UUID: "UUID";
|
|
1514
1513
|
String: "String";
|
|
1515
1514
|
Text: "Text";
|
|
1516
1515
|
Integer: "Integer";
|
|
1517
1516
|
SmallInt: "SmallInt";
|
|
1517
|
+
BigInt: "BigInt";
|
|
1518
1518
|
Numeric: "Numeric";
|
|
1519
1519
|
Boolean: "Boolean";
|
|
1520
1520
|
Date: "Date";
|
|
@@ -1596,12 +1596,12 @@ export declare const informationRegisterSchema: z.ZodObject<{
|
|
|
1596
1596
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1597
1597
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1598
1598
|
type: z.ZodEnum<{
|
|
1599
|
-
BigInt: "BigInt";
|
|
1600
1599
|
UUID: "UUID";
|
|
1601
1600
|
String: "String";
|
|
1602
1601
|
Text: "Text";
|
|
1603
1602
|
Integer: "Integer";
|
|
1604
1603
|
SmallInt: "SmallInt";
|
|
1604
|
+
BigInt: "BigInt";
|
|
1605
1605
|
Numeric: "Numeric";
|
|
1606
1606
|
Boolean: "Boolean";
|
|
1607
1607
|
Date: "Date";
|
|
@@ -1689,12 +1689,12 @@ export declare const informationRegisterSchema: z.ZodObject<{
|
|
|
1689
1689
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1690
1690
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1691
1691
|
type: z.ZodEnum<{
|
|
1692
|
-
BigInt: "BigInt";
|
|
1693
1692
|
UUID: "UUID";
|
|
1694
1693
|
String: "String";
|
|
1695
1694
|
Text: "Text";
|
|
1696
1695
|
Integer: "Integer";
|
|
1697
1696
|
SmallInt: "SmallInt";
|
|
1697
|
+
BigInt: "BigInt";
|
|
1698
1698
|
Numeric: "Numeric";
|
|
1699
1699
|
Boolean: "Boolean";
|
|
1700
1700
|
Date: "Date";
|
|
@@ -1882,12 +1882,12 @@ export declare const accumulationRegisterSchema: z.ZodObject<{
|
|
|
1882
1882
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1883
1883
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1884
1884
|
type: z.ZodEnum<{
|
|
1885
|
-
BigInt: "BigInt";
|
|
1886
1885
|
UUID: "UUID";
|
|
1887
1886
|
String: "String";
|
|
1888
1887
|
Text: "Text";
|
|
1889
1888
|
Integer: "Integer";
|
|
1890
1889
|
SmallInt: "SmallInt";
|
|
1890
|
+
BigInt: "BigInt";
|
|
1891
1891
|
Numeric: "Numeric";
|
|
1892
1892
|
Boolean: "Boolean";
|
|
1893
1893
|
Date: "Date";
|
|
@@ -1994,12 +1994,12 @@ export declare const accumulationRegisterSchema: z.ZodObject<{
|
|
|
1994
1994
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1995
1995
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1996
1996
|
type: z.ZodEnum<{
|
|
1997
|
-
BigInt: "BigInt";
|
|
1998
1997
|
UUID: "UUID";
|
|
1999
1998
|
String: "String";
|
|
2000
1999
|
Text: "Text";
|
|
2001
2000
|
Integer: "Integer";
|
|
2002
2001
|
SmallInt: "SmallInt";
|
|
2002
|
+
BigInt: "BigInt";
|
|
2003
2003
|
Numeric: "Numeric";
|
|
2004
2004
|
Boolean: "Boolean";
|
|
2005
2005
|
Date: "Date";
|
|
@@ -2089,12 +2089,12 @@ export declare const constantSchema: z.ZodObject<{
|
|
|
2089
2089
|
}>]>;
|
|
2090
2090
|
}, z.core.$strict>]>>;
|
|
2091
2091
|
type: z.ZodEnum<{
|
|
2092
|
-
BigInt: "BigInt";
|
|
2093
2092
|
UUID: "UUID";
|
|
2094
2093
|
String: "String";
|
|
2095
2094
|
Text: "Text";
|
|
2096
2095
|
Integer: "Integer";
|
|
2097
2096
|
SmallInt: "SmallInt";
|
|
2097
|
+
BigInt: "BigInt";
|
|
2098
2098
|
Numeric: "Numeric";
|
|
2099
2099
|
Boolean: "Boolean";
|
|
2100
2100
|
Date: "Date";
|
|
@@ -2939,7 +2939,6 @@ export declare const customTableColumnSchema: z.ZodObject<{
|
|
|
2939
2939
|
name: z.ZodString;
|
|
2940
2940
|
}, z.core.$strict>>;
|
|
2941
2941
|
pgType: z.ZodOptional<z.ZodString>;
|
|
2942
|
-
length: z.ZodOptional<z.ZodNumber>;
|
|
2943
2942
|
array: z.ZodOptional<z.ZodBoolean>;
|
|
2944
2943
|
precision: z.ZodOptional<z.ZodNumber>;
|
|
2945
2944
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2959,6 +2958,7 @@ export declare const customTableColumnSchema: z.ZodObject<{
|
|
|
2959
2958
|
}>;
|
|
2960
2959
|
name: z.ZodString;
|
|
2961
2960
|
}, z.core.$strict>>;
|
|
2961
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
2962
2962
|
allowedTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2963
2963
|
kind: z.ZodEnum<{
|
|
2964
2964
|
Catalog: "Catalog";
|
|
@@ -2997,13 +2997,13 @@ export declare const customTableColumnSchema: z.ZodObject<{
|
|
|
2997
2997
|
}, z.core.$strict>>;
|
|
2998
2998
|
comment: z.ZodOptional<z.ZodString>;
|
|
2999
2999
|
type: z.ZodEnum<{
|
|
3000
|
-
BigInt: "BigInt";
|
|
3001
3000
|
PgEnum: "PgEnum";
|
|
3002
3001
|
UUID: "UUID";
|
|
3003
3002
|
String: "String";
|
|
3004
3003
|
Text: "Text";
|
|
3005
3004
|
Integer: "Integer";
|
|
3006
3005
|
SmallInt: "SmallInt";
|
|
3006
|
+
BigInt: "BigInt";
|
|
3007
3007
|
Numeric: "Numeric";
|
|
3008
3008
|
Boolean: "Boolean";
|
|
3009
3009
|
Date: "Date";
|
|
@@ -3053,7 +3053,6 @@ export declare const customTableSchema: z.ZodObject<{
|
|
|
3053
3053
|
name: z.ZodString;
|
|
3054
3054
|
}, z.core.$strict>>;
|
|
3055
3055
|
pgType: z.ZodOptional<z.ZodString>;
|
|
3056
|
-
length: z.ZodOptional<z.ZodNumber>;
|
|
3057
3056
|
array: z.ZodOptional<z.ZodBoolean>;
|
|
3058
3057
|
precision: z.ZodOptional<z.ZodNumber>;
|
|
3059
3058
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3073,6 +3072,7 @@ export declare const customTableSchema: z.ZodObject<{
|
|
|
3073
3072
|
}>;
|
|
3074
3073
|
name: z.ZodString;
|
|
3075
3074
|
}, z.core.$strict>>;
|
|
3075
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
3076
3076
|
allowedTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3077
3077
|
kind: z.ZodEnum<{
|
|
3078
3078
|
Catalog: "Catalog";
|
|
@@ -3111,13 +3111,13 @@ export declare const customTableSchema: z.ZodObject<{
|
|
|
3111
3111
|
}, z.core.$strict>>;
|
|
3112
3112
|
comment: z.ZodOptional<z.ZodString>;
|
|
3113
3113
|
type: z.ZodEnum<{
|
|
3114
|
-
BigInt: "BigInt";
|
|
3115
3114
|
PgEnum: "PgEnum";
|
|
3116
3115
|
UUID: "UUID";
|
|
3117
3116
|
String: "String";
|
|
3118
3117
|
Text: "Text";
|
|
3119
3118
|
Integer: "Integer";
|
|
3120
3119
|
SmallInt: "SmallInt";
|
|
3120
|
+
BigInt: "BigInt";
|
|
3121
3121
|
Numeric: "Numeric";
|
|
3122
3122
|
Boolean: "Boolean";
|
|
3123
3123
|
Date: "Date";
|
|
@@ -3975,11 +3975,11 @@ export declare const pgEnumSchema: z.ZodObject<{
|
|
|
3975
3975
|
en: z.ZodOptional<z.ZodString>;
|
|
3976
3976
|
}, z.core.$strict>>;
|
|
3977
3977
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3978
|
+
name: z.ZodString;
|
|
3978
3979
|
description: z.ZodOptional<z.ZodObject<{
|
|
3979
3980
|
uk: z.ZodOptional<z.ZodString>;
|
|
3980
3981
|
en: z.ZodOptional<z.ZodString>;
|
|
3981
3982
|
}, z.core.$strict>>;
|
|
3982
|
-
name: z.ZodString;
|
|
3983
3983
|
schema: z.ZodOptional<z.ZodString>;
|
|
3984
3984
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3985
3985
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
@@ -4035,11 +4035,11 @@ export declare const eventSubscriptionSchema: z.ZodObject<{
|
|
|
4035
4035
|
en: z.ZodOptional<z.ZodString>;
|
|
4036
4036
|
}, z.core.$strict>>;
|
|
4037
4037
|
id: z.ZodOptional<z.ZodUUID>;
|
|
4038
|
+
name: z.ZodString;
|
|
4038
4039
|
description: z.ZodOptional<z.ZodObject<{
|
|
4039
4040
|
uk: z.ZodOptional<z.ZodString>;
|
|
4040
4041
|
en: z.ZodOptional<z.ZodString>;
|
|
4041
4042
|
}, z.core.$strict>>;
|
|
4042
|
-
name: z.ZodString;
|
|
4043
4043
|
$schema: z.ZodOptional<z.ZodString>;
|
|
4044
4044
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
4045
4045
|
}, z.core.$strict>;
|
|
@@ -5386,12 +5386,12 @@ export declare const catalogEntryAttributeSchema: z.ZodObject<{
|
|
|
5386
5386
|
name: z.ZodString;
|
|
5387
5387
|
column: z.ZodString;
|
|
5388
5388
|
type: z.ZodEnum<{
|
|
5389
|
-
BigInt: "BigInt";
|
|
5390
5389
|
UUID: "UUID";
|
|
5391
5390
|
String: "String";
|
|
5392
5391
|
Text: "Text";
|
|
5393
5392
|
Integer: "Integer";
|
|
5394
5393
|
SmallInt: "SmallInt";
|
|
5394
|
+
BigInt: "BigInt";
|
|
5395
5395
|
Numeric: "Numeric";
|
|
5396
5396
|
Boolean: "Boolean";
|
|
5397
5397
|
Date: "Date";
|
|
@@ -5450,12 +5450,12 @@ export declare const runtimeAttributeSchema: z.ZodObject<{
|
|
|
5450
5450
|
name: z.ZodString;
|
|
5451
5451
|
column: z.ZodString;
|
|
5452
5452
|
type: z.ZodEnum<{
|
|
5453
|
-
BigInt: "BigInt";
|
|
5454
5453
|
UUID: "UUID";
|
|
5455
5454
|
String: "String";
|
|
5456
5455
|
Text: "Text";
|
|
5457
5456
|
Integer: "Integer";
|
|
5458
5457
|
SmallInt: "SmallInt";
|
|
5458
|
+
BigInt: "BigInt";
|
|
5459
5459
|
Numeric: "Numeric";
|
|
5460
5460
|
Boolean: "Boolean";
|
|
5461
5461
|
Date: "Date";
|
|
@@ -5550,12 +5550,12 @@ export declare const catalogEntrySectionSchema: z.ZodObject<{
|
|
|
5550
5550
|
name: z.ZodString;
|
|
5551
5551
|
column: z.ZodString;
|
|
5552
5552
|
type: z.ZodEnum<{
|
|
5553
|
-
BigInt: "BigInt";
|
|
5554
5553
|
UUID: "UUID";
|
|
5555
5554
|
String: "String";
|
|
5556
5555
|
Text: "Text";
|
|
5557
5556
|
Integer: "Integer";
|
|
5558
5557
|
SmallInt: "SmallInt";
|
|
5558
|
+
BigInt: "BigInt";
|
|
5559
5559
|
Numeric: "Numeric";
|
|
5560
5560
|
Boolean: "Boolean";
|
|
5561
5561
|
Date: "Date";
|
|
@@ -5633,12 +5633,12 @@ export declare const runtimeSectionSchema: z.ZodObject<{
|
|
|
5633
5633
|
name: z.ZodString;
|
|
5634
5634
|
column: z.ZodString;
|
|
5635
5635
|
type: z.ZodEnum<{
|
|
5636
|
-
BigInt: "BigInt";
|
|
5637
5636
|
UUID: "UUID";
|
|
5638
5637
|
String: "String";
|
|
5639
5638
|
Text: "Text";
|
|
5640
5639
|
Integer: "Integer";
|
|
5641
5640
|
SmallInt: "SmallInt";
|
|
5641
|
+
BigInt: "BigInt";
|
|
5642
5642
|
Numeric: "Numeric";
|
|
5643
5643
|
Boolean: "Boolean";
|
|
5644
5644
|
Date: "Date";
|
|
@@ -5936,12 +5936,12 @@ export declare const catalogEntrySchema: z.ZodObject<{
|
|
|
5936
5936
|
name: z.ZodString;
|
|
5937
5937
|
column: z.ZodString;
|
|
5938
5938
|
type: z.ZodEnum<{
|
|
5939
|
-
BigInt: "BigInt";
|
|
5940
5939
|
UUID: "UUID";
|
|
5941
5940
|
String: "String";
|
|
5942
5941
|
Text: "Text";
|
|
5943
5942
|
Integer: "Integer";
|
|
5944
5943
|
SmallInt: "SmallInt";
|
|
5944
|
+
BigInt: "BigInt";
|
|
5945
5945
|
Numeric: "Numeric";
|
|
5946
5946
|
Boolean: "Boolean";
|
|
5947
5947
|
Date: "Date";
|
|
@@ -6013,12 +6013,12 @@ export declare const catalogEntrySchema: z.ZodObject<{
|
|
|
6013
6013
|
name: z.ZodString;
|
|
6014
6014
|
column: z.ZodString;
|
|
6015
6015
|
type: z.ZodEnum<{
|
|
6016
|
-
BigInt: "BigInt";
|
|
6017
6016
|
UUID: "UUID";
|
|
6018
6017
|
String: "String";
|
|
6019
6018
|
Text: "Text";
|
|
6020
6019
|
Integer: "Integer";
|
|
6021
6020
|
SmallInt: "SmallInt";
|
|
6021
|
+
BigInt: "BigInt";
|
|
6022
6022
|
Numeric: "Numeric";
|
|
6023
6023
|
Boolean: "Boolean";
|
|
6024
6024
|
Date: "Date";
|
|
@@ -6200,12 +6200,12 @@ export declare const runtimeObjectSchema: z.ZodObject<{
|
|
|
6200
6200
|
name: z.ZodString;
|
|
6201
6201
|
column: z.ZodString;
|
|
6202
6202
|
type: z.ZodEnum<{
|
|
6203
|
-
BigInt: "BigInt";
|
|
6204
6203
|
UUID: "UUID";
|
|
6205
6204
|
String: "String";
|
|
6206
6205
|
Text: "Text";
|
|
6207
6206
|
Integer: "Integer";
|
|
6208
6207
|
SmallInt: "SmallInt";
|
|
6208
|
+
BigInt: "BigInt";
|
|
6209
6209
|
Numeric: "Numeric";
|
|
6210
6210
|
Boolean: "Boolean";
|
|
6211
6211
|
Date: "Date";
|
|
@@ -6292,12 +6292,12 @@ export declare const runtimeObjectSchema: z.ZodObject<{
|
|
|
6292
6292
|
name: z.ZodString;
|
|
6293
6293
|
column: z.ZodString;
|
|
6294
6294
|
type: z.ZodEnum<{
|
|
6295
|
-
BigInt: "BigInt";
|
|
6296
6295
|
UUID: "UUID";
|
|
6297
6296
|
String: "String";
|
|
6298
6297
|
Text: "Text";
|
|
6299
6298
|
Integer: "Integer";
|
|
6300
6299
|
SmallInt: "SmallInt";
|
|
6300
|
+
BigInt: "BigInt";
|
|
6301
6301
|
Numeric: "Numeric";
|
|
6302
6302
|
Boolean: "Boolean";
|
|
6303
6303
|
Date: "Date";
|
|
@@ -6648,12 +6648,12 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6648
6648
|
name: z.ZodString;
|
|
6649
6649
|
column: z.ZodString;
|
|
6650
6650
|
type: z.ZodEnum<{
|
|
6651
|
-
BigInt: "BigInt";
|
|
6652
6651
|
UUID: "UUID";
|
|
6653
6652
|
String: "String";
|
|
6654
6653
|
Text: "Text";
|
|
6655
6654
|
Integer: "Integer";
|
|
6656
6655
|
SmallInt: "SmallInt";
|
|
6656
|
+
BigInt: "BigInt";
|
|
6657
6657
|
Numeric: "Numeric";
|
|
6658
6658
|
Boolean: "Boolean";
|
|
6659
6659
|
Date: "Date";
|
|
@@ -6740,12 +6740,12 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6740
6740
|
name: z.ZodString;
|
|
6741
6741
|
column: z.ZodString;
|
|
6742
6742
|
type: z.ZodEnum<{
|
|
6743
|
-
BigInt: "BigInt";
|
|
6744
6743
|
UUID: "UUID";
|
|
6745
6744
|
String: "String";
|
|
6746
6745
|
Text: "Text";
|
|
6747
6746
|
Integer: "Integer";
|
|
6748
6747
|
SmallInt: "SmallInt";
|
|
6748
|
+
BigInt: "BigInt";
|
|
6749
6749
|
Numeric: "Numeric";
|
|
6750
6750
|
Boolean: "Boolean";
|
|
6751
6751
|
Date: "Date";
|
|
@@ -7061,12 +7061,12 @@ export declare const clientCatalogSchema: z.ZodObject<{
|
|
|
7061
7061
|
name: z.ZodString;
|
|
7062
7062
|
column: z.ZodString;
|
|
7063
7063
|
type: z.ZodEnum<{
|
|
7064
|
-
BigInt: "BigInt";
|
|
7065
7064
|
UUID: "UUID";
|
|
7066
7065
|
String: "String";
|
|
7067
7066
|
Text: "Text";
|
|
7068
7067
|
Integer: "Integer";
|
|
7069
7068
|
SmallInt: "SmallInt";
|
|
7069
|
+
BigInt: "BigInt";
|
|
7070
7070
|
Numeric: "Numeric";
|
|
7071
7071
|
Boolean: "Boolean";
|
|
7072
7072
|
Date: "Date";
|
|
@@ -7138,12 +7138,12 @@ export declare const clientCatalogSchema: z.ZodObject<{
|
|
|
7138
7138
|
name: z.ZodString;
|
|
7139
7139
|
column: z.ZodString;
|
|
7140
7140
|
type: z.ZodEnum<{
|
|
7141
|
-
BigInt: "BigInt";
|
|
7142
7141
|
UUID: "UUID";
|
|
7143
7142
|
String: "String";
|
|
7144
7143
|
Text: "Text";
|
|
7145
7144
|
Integer: "Integer";
|
|
7146
7145
|
SmallInt: "SmallInt";
|
|
7146
|
+
BigInt: "BigInt";
|
|
7147
7147
|
Numeric: "Numeric";
|
|
7148
7148
|
Boolean: "Boolean";
|
|
7149
7149
|
Date: "Date";
|
|
@@ -7393,9 +7393,9 @@ export declare const wireOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7393
7393
|
object: z.ZodGUID;
|
|
7394
7394
|
tabularSections: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodGUID, z.ZodString]>, z.ZodPreprocess<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>>>;
|
|
7395
7395
|
}, z.core.$strict>, z.ZodObject<{
|
|
7396
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7397
7396
|
id: z.ZodGUID;
|
|
7398
7397
|
action: z.ZodLiteral<"update">;
|
|
7398
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7399
7399
|
expectedVersion: z.ZodInt;
|
|
7400
7400
|
expectedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7401
7401
|
object: z.ZodGUID;
|
|
@@ -7854,9 +7854,9 @@ export declare const dataRequestSchema: z.ZodObject<{
|
|
|
7854
7854
|
object: z.ZodGUID;
|
|
7855
7855
|
tabularSections: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodGUID, z.ZodString]>, z.ZodPreprocess<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>>>;
|
|
7856
7856
|
}, z.core.$strict>, z.ZodObject<{
|
|
7857
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7858
7857
|
id: z.ZodGUID;
|
|
7859
7858
|
action: z.ZodLiteral<"update">;
|
|
7859
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7860
7860
|
expectedVersion: z.ZodInt;
|
|
7861
7861
|
expectedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7862
7862
|
object: z.ZodGUID;
|
|
@@ -7900,9 +7900,9 @@ export declare const dataRequestSchema: z.ZodObject<{
|
|
|
7900
7900
|
object: z.ZodGUID;
|
|
7901
7901
|
tabularSections: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodGUID, z.ZodString]>, z.ZodPreprocess<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>>>;
|
|
7902
7902
|
}, z.core.$strict>, z.ZodObject<{
|
|
7903
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7904
7903
|
id: z.ZodGUID;
|
|
7905
7904
|
action: z.ZodLiteral<"update">;
|
|
7905
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7906
7906
|
expectedVersion: z.ZodInt;
|
|
7907
7907
|
expectedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7908
7908
|
object: z.ZodGUID;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1021,7 +1021,7 @@ export declare function checkOwnerAttributes(tx: ApplyTransaction, provider: Dat
|
|
|
1021
1021
|
* тримає тест, а не читання маніфесту під час виконання: ярус не звертається
|
|
1022
1022
|
* до файлової системи.
|
|
1023
1023
|
*/
|
|
1024
|
-
export declare const PLATFORM_VERSION = "0.3.0-next.
|
|
1024
|
+
export declare const PLATFORM_VERSION = "0.3.0-next.11";
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Структурний ключ таблиці для множин і мап: ім'я з крапкою не злипається зі
|
|
1027
1027
|
* схемою, як злиплося б у `schema.name`. Складені ключі підоб'єктів — так
|
package/dist/schema/index.js
CHANGED
|
@@ -3893,7 +3893,7 @@ async function readSessionSearchPath(tx) {
|
|
|
3893
3893
|
* тримає тест, а не читання маніфесту під час виконання: ярус не звертається
|
|
3894
3894
|
* до файлової системи.
|
|
3895
3895
|
*/
|
|
3896
|
-
const PLATFORM_VERSION = "0.3.0-next.
|
|
3896
|
+
const PLATFORM_VERSION = "0.3.0-next.11";
|
|
3897
3897
|
// src/schema/apply/state.ts
|
|
3898
3898
|
/**
|
|
3899
3899
|
* Форма стану застосування (платформна спека §6.1). Читач приймає лише її:
|
package/dist/ui/index.js
CHANGED
|
@@ -1076,7 +1076,10 @@ function CardBody(props) {
|
|
|
1076
1076
|
}, createElement("div", { "data-region": "card-status" }, createElement("span", {
|
|
1077
1077
|
"aria-live": "polite",
|
|
1078
1078
|
"data-card": "status"
|
|
1079
|
-
}, key === void 0 || key === "state.purged" ? null : createElement(Text, { messageKey: key }), staleHint ? createElement("span", { "data-hint": "stale" }, createElement(Text, { messageKey: "state.stale" })) : null, card.status === "error" && card.error !== void 0 && !("reason" in card.error && card.error.reason === "tabular-too-large") ? createElement("span", { "data-error": card.error.code }, card.error.code) : null),
|
|
1079
|
+
}, key === void 0 || key === "state.purged" ? null : createElement(Text, { messageKey: key }), staleHint ? createElement("span", { "data-hint": "stale" }, createElement(Text, { messageKey: "state.stale" })) : null, card.status === "error" && card.error !== void 0 && !("reason" in card.error && card.error.reason === "tabular-too-large") ? createElement("span", { "data-error": card.error.code }, card.error.code) : null), card.status === "error" && card.error !== void 0 && !card.isStale && !("reason" in card.error && card.error.reason === "tabular-too-large") ? createElement(Button, {
|
|
1080
|
+
messageKey: "action.retry",
|
|
1081
|
+
onClick: card.refresh
|
|
1082
|
+
}) : null, createElement("span", {
|
|
1080
1083
|
"aria-live": "assertive",
|
|
1081
1084
|
"data-card": "security",
|
|
1082
1085
|
"data-reason": card.status === "purged" ? card.reason : void 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simetra",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.11",
|
|
4
4
|
"description": "Metadata-driven platform for business applications on Postgres: metamodel, compiler and schema engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metadata",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"publishConfig": {
|
|
136
136
|
"access": "public"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "63780dad2e1b47788b81c194072f1e30bec3f364",
|
|
139
139
|
"scripts": {
|
|
140
140
|
"build": "tsc --noEmit",
|
|
141
141
|
"build:package": "tsdown",
|