@ai-matrx/records 0.81.1 → 0.81.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +3 -3
- package/dist/app-table/index.d.ts +3 -3
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-DLIKeBWF.d.cts → client-CesQciPd.d.cts} +1 -1
- package/dist/{client-D1LTezMZ.d.ts → client-TU-nvgcF.d.ts} +1 -1
- package/dist/core/index.cjs +26 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +26 -1
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-02uao-5n.d.cts → declareTable-B9sr2E0h.d.cts} +2 -2
- package/dist/{declareTable-C5FlIS0z.d.ts → declareTable-COXYIOiT.d.ts} +2 -2
- package/dist/index.cjs +26 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -1
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +13 -0
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.d.cts +3 -1
- package/dist/memory/index.d.ts +3 -1
- package/dist/memory/index.js +13 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/react/index.cjs +28 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -19
- package/dist/react/index.d.ts +3 -19
- package/dist/react/index.js +28 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-LodkBhCZ.d.cts → table-kind-B4vIKJVM.d.cts} +3 -19
- package/dist/{table-kind-COmkYYkc.d.ts → table-kind-C5T-DOdc.d.ts} +3 -19
- package/dist/templates/index.cjs +8 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +3 -3
- package/dist/templates/index.d.ts +3 -3
- package/dist/templates/index.js +8 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-yBZLtxrZ.d.cts → types-B4nQMkQT.d.cts} +5 -0
- package/dist/{types-CU_Tn2Np.d.ts → types-BtXYdZGh.d.ts} +5 -0
- package/package.json +3 -3
|
@@ -4033,8 +4033,8 @@ interface DrillFinding {
|
|
|
4033
4033
|
* The records behind a DEFINER definition's numbers: a registry relation carrying the fact's column
|
|
4034
4034
|
* names (e.g. `bucket`), read by the door definer with the SAME filter compiler and the SAME lane
|
|
4035
4035
|
* rule as the number, for a window (required), and never past the number's `as_of` (rows created
|
|
4036
|
-
* after it are not listed). The number and its records are
|
|
4037
|
-
*
|
|
4036
|
+
* after it are not listed). The number and its records are the SAME counted rows, equal as of the
|
|
4037
|
+
* count (`as_of`); a value that changes afterwards reaches both at the next count.
|
|
4038
4038
|
*
|
|
4039
4039
|
* An INVOKER definition may declare records too (lane DRILL-GAPS): they are its own rows (`fact` is
|
|
4040
4040
|
* the definition's own fact), read as the person through the table's row security, among the columns
|
|
@@ -4131,25 +4131,9 @@ interface DrillRowsPage {
|
|
|
4131
4131
|
as_of: string | null;
|
|
4132
4132
|
/**
|
|
4133
4133
|
* A definer definition's records, first page only: every Measure that adds up (sum, count, ratio)
|
|
4134
|
-
* summed over the SAME filter — what these records add up to
|
|
4134
|
+
* summed over the SAME filter — what these records add up to, which is the number they open.
|
|
4135
4135
|
*/
|
|
4136
4136
|
measures?: Record<string, number | string | null>;
|
|
4137
|
-
/**
|
|
4138
|
-
* First page only: the NUMBER's own sums for the same filter, as counted at `as_of` (the summary).
|
|
4139
|
-
* The number and its records are equal as of the count; a cost that lands on a counted row after
|
|
4140
|
-
* it makes `measures` differ from `counted`, and the page then carries `settling` and says so.
|
|
4141
|
-
*/
|
|
4142
|
-
counted?: Record<string, number | string | null>;
|
|
4143
|
-
/**
|
|
4144
|
-
* Present only when the records and the number differ: per Measure, what was counted, what the
|
|
4145
|
-
* ledger holds now, and the difference — with `says` in words ("$1.23 more has landed since the
|
|
4146
|
-
* count at 06:40 UTC. …"). The next recount (every 10 minutes) brings them back equal.
|
|
4147
|
-
*/
|
|
4148
|
-
settling?: Record<string, {
|
|
4149
|
-
counted: number | string | null;
|
|
4150
|
-
now: number | string | null;
|
|
4151
|
-
difference: number;
|
|
4152
|
-
}>;
|
|
4153
4137
|
}
|
|
4154
4138
|
/**
|
|
4155
4139
|
* A DECLARED drill definition (a `*.drill.ts` file): an override of one standard table (its key
|
|
@@ -4033,8 +4033,8 @@ interface DrillFinding {
|
|
|
4033
4033
|
* The records behind a DEFINER definition's numbers: a registry relation carrying the fact's column
|
|
4034
4034
|
* names (e.g. `bucket`), read by the door definer with the SAME filter compiler and the SAME lane
|
|
4035
4035
|
* rule as the number, for a window (required), and never past the number's `as_of` (rows created
|
|
4036
|
-
* after it are not listed). The number and its records are
|
|
4037
|
-
*
|
|
4036
|
+
* after it are not listed). The number and its records are the SAME counted rows, equal as of the
|
|
4037
|
+
* count (`as_of`); a value that changes afterwards reaches both at the next count.
|
|
4038
4038
|
*
|
|
4039
4039
|
* An INVOKER definition may declare records too (lane DRILL-GAPS): they are its own rows (`fact` is
|
|
4040
4040
|
* the definition's own fact), read as the person through the table's row security, among the columns
|
|
@@ -4131,25 +4131,9 @@ interface DrillRowsPage {
|
|
|
4131
4131
|
as_of: string | null;
|
|
4132
4132
|
/**
|
|
4133
4133
|
* A definer definition's records, first page only: every Measure that adds up (sum, count, ratio)
|
|
4134
|
-
* summed over the SAME filter — what these records add up to
|
|
4134
|
+
* summed over the SAME filter — what these records add up to, which is the number they open.
|
|
4135
4135
|
*/
|
|
4136
4136
|
measures?: Record<string, number | string | null>;
|
|
4137
|
-
/**
|
|
4138
|
-
* First page only: the NUMBER's own sums for the same filter, as counted at `as_of` (the summary).
|
|
4139
|
-
* The number and its records are equal as of the count; a cost that lands on a counted row after
|
|
4140
|
-
* it makes `measures` differ from `counted`, and the page then carries `settling` and says so.
|
|
4141
|
-
*/
|
|
4142
|
-
counted?: Record<string, number | string | null>;
|
|
4143
|
-
/**
|
|
4144
|
-
* Present only when the records and the number differ: per Measure, what was counted, what the
|
|
4145
|
-
* ledger holds now, and the difference — with `says` in words ("$1.23 more has landed since the
|
|
4146
|
-
* count at 06:40 UTC. …"). The next recount (every 10 minutes) brings them back equal.
|
|
4147
|
-
*/
|
|
4148
|
-
settling?: Record<string, {
|
|
4149
|
-
counted: number | string | null;
|
|
4150
|
-
now: number | string | null;
|
|
4151
|
-
difference: number;
|
|
4152
|
-
}>;
|
|
4153
4137
|
}
|
|
4154
4138
|
/**
|
|
4155
4139
|
* A DECLARED drill definition (a `*.drill.ts` file): an override of one standard table (its key
|
package/dist/templates/index.cjs
CHANGED
|
@@ -6120,6 +6120,7 @@ var TEMPLATE_PLAN_DOORS = [
|
|
|
6120
6120
|
"table_dimensions_set",
|
|
6121
6121
|
"view_declare",
|
|
6122
6122
|
"form_declare",
|
|
6123
|
+
"anon_publish",
|
|
6123
6124
|
"booking_declare",
|
|
6124
6125
|
"dashboard_declare",
|
|
6125
6126
|
"pipeline_declare",
|
|
@@ -6352,6 +6353,13 @@ function compileInstallPlan(written) {
|
|
|
6352
6353
|
save: { [`forms.${f.token}`]: [] },
|
|
6353
6354
|
made: [{ kind: "form", ref: `forms.${f.token}`, title: f.name, table: `tables.${f.table}` }]
|
|
6354
6355
|
});
|
|
6356
|
+
if (spec.publishForms !== false) {
|
|
6357
|
+
steps.push({
|
|
6358
|
+
label: `forms.${f.token}.publish`,
|
|
6359
|
+
door: "anon_publish",
|
|
6360
|
+
args: { p_organization_id: "${org}", p_form_id: ref(`forms.${f.token}`), p_published: true }
|
|
6361
|
+
});
|
|
6362
|
+
}
|
|
6355
6363
|
}
|
|
6356
6364
|
const actionsByTable = /* @__PURE__ */ new Map();
|
|
6357
6365
|
const formRefs = Object.fromEntries(spec.forms.map((f) => [f.token, ref(`forms.${f.token}`)]));
|