@ai-matrx/records 0.95.0 → 0.96.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/CHANGELOG.md +23 -0
- package/dist/{client-DQWdJeFM.d.ts → client-D7bvxEZW.d.ts} +9 -0
- package/dist/{client-CEX4WdvX.d.cts → client-DKgbZUNt.d.cts} +9 -0
- package/dist/core/index.cjs +4 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +3 -2
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +4 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +4 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-Bkh3C1Ao.d.ts → declareTable-D_CiMnXM.d.ts} +1 -1
- package/dist/{declareTable-DeQ9_TMb.d.cts → declareTable-VoNRi_j_.d.cts} +1 -1
- package/dist/questions/index.d.cts +1 -1
- package/dist/questions/index.d.ts +1 -1
- package/dist/react/index.cjs +4 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +9 -0
- package/dist/react/index.d.ts +9 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +4 -0
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +1 -1
- package/dist/setup/index.d.ts +1 -1
- package/dist/setup/index.js +4 -0
- package/dist/setup/index.js.map +1 -1
- package/dist/templates/index.cjs +124 -65
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +6 -1
- package/dist/templates/index.d.ts +6 -1
- package/dist/templates/index.js +124 -65
- package/dist/templates/index.js.map +1 -1
- package/dist/typed-table/index.cjs +4 -0
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +2 -2
- package/dist/typed-table/index.d.ts +2 -2
- package/dist/typed-table/index.js +4 -0
- package/dist/typed-table/index.js.map +1 -1
- package/dist/views/index.d.cts +1 -1
- package/dist/views/index.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.96.0 — the organization's calendar can be asked (lane NOTION-SMALL-4)
|
|
4
|
+
|
|
5
|
+
- **`client.aggCalendar()`** answers `{ time_zone, week_start }` from `custom.agg_calendar`, the same door the relative date filters and
|
|
6
|
+
chart buckets are cut with (signed-in EXECUTE granted by `notionsmall4_b`). The calendar and timeline views start their weeks on it.
|
|
7
|
+
- Consumer action: none.
|
|
8
|
+
|
|
9
|
+
## Unreleased — the describe answer has a real schema (lane M3)
|
|
10
|
+
|
|
11
|
+
- **`describeResultJsonSchema()`** / **`parseDescribeTemplate()`** / `DESCRIBE_RESULT_KIND` (`@ai-matrx/records/templates`): the
|
|
12
|
+
JSON Schema the `make.describe_template` agent is stored with, built from the SAME constants the check reads
|
|
13
|
+
(`TEMPLATE_AUDIENCES`, `INDUSTRY_GROUPS`, `TEMPLATE_JOBS`, `TEACHES_FEATURES`), `__kind` declared. The deep parts travel as JSON text
|
|
14
|
+
(a provider closes typed objects and drops keys the schema omits); `parseDescribeTemplate` is the one deserializer.
|
|
15
|
+
- `describeSpec` reads the audience "personal" as "individual" (what the agent used to write: live "personal is not one of…").
|
|
16
|
+
- `describeVocabulary().phone_rule` no longer offers a UK number.
|
|
17
|
+
- Tests: `describe-result-schema.test.ts`.
|
|
18
|
+
- **Consumer action:** `features/make` opens the answer with `parseDescribeTemplate` (done in matrx-frontend).
|
|
19
|
+
|
|
20
|
+
## 0.95.1
|
|
21
|
+
|
|
22
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
23
|
+
`git diff npm/records/v0.95.0..npm/records/v0.95.1 -- apps/shared/records`).
|
|
24
|
+
No source changes intended and no consumer action required.
|
|
25
|
+
|
|
3
26
|
## 0.95.0 — a table exports as Markdown (lane FORMULA-2)
|
|
4
27
|
|
|
5
28
|
- **`exportMarkdown(fields, rows)`** (`@ai-matrx/records/core`): the same header and cells as `exportCsv` / `exportXlsx` (one cell
|
|
@@ -1644,6 +1644,15 @@ interface RecordsClient {
|
|
|
1644
1644
|
aggOperations(): Promise<RecordsResult<string[]>>;
|
|
1645
1645
|
/** The periods the store itself buckets by. */
|
|
1646
1646
|
aggBuckets(): Promise<RecordsResult<string[]>>;
|
|
1647
|
+
/**
|
|
1648
|
+
* The organization's calendar (knobs `custom/time_zone`, `custom/week_start`), cut by the SAME door the
|
|
1649
|
+
* relative date filters and the chart buckets use. A calendar or timeline reads its first day of the week
|
|
1650
|
+
* from here, never from a constant of its own (lane NOTION-SMALL-4).
|
|
1651
|
+
*/
|
|
1652
|
+
aggCalendar(): Promise<RecordsResult<{
|
|
1653
|
+
time_zone: string;
|
|
1654
|
+
week_start: string;
|
|
1655
|
+
}>>;
|
|
1647
1656
|
/**
|
|
1648
1657
|
* A source's drill definition — its Dimensions, Measures, drill paths and first screen.
|
|
1649
1658
|
* `{kind: "table", id}` is a custom Table; `{kind: "entity", token}` a standard table by its
|
|
@@ -1644,6 +1644,15 @@ interface RecordsClient {
|
|
|
1644
1644
|
aggOperations(): Promise<RecordsResult<string[]>>;
|
|
1645
1645
|
/** The periods the store itself buckets by. */
|
|
1646
1646
|
aggBuckets(): Promise<RecordsResult<string[]>>;
|
|
1647
|
+
/**
|
|
1648
|
+
* The organization's calendar (knobs `custom/time_zone`, `custom/week_start`), cut by the SAME door the
|
|
1649
|
+
* relative date filters and the chart buckets use. A calendar or timeline reads its first day of the week
|
|
1650
|
+
* from here, never from a constant of its own (lane NOTION-SMALL-4).
|
|
1651
|
+
*/
|
|
1652
|
+
aggCalendar(): Promise<RecordsResult<{
|
|
1653
|
+
time_zone: string;
|
|
1654
|
+
week_start: string;
|
|
1655
|
+
}>>;
|
|
1647
1656
|
/**
|
|
1648
1657
|
* A source's drill definition — its Dimensions, Measures, drill paths and first screen.
|
|
1649
1658
|
* `{kind: "table", id}` is a custom Table; `{kind: "entity", token}` a standard table by its
|
package/dist/core/index.cjs
CHANGED
|
@@ -6051,6 +6051,7 @@ var DOORS = {
|
|
|
6051
6051
|
recordAggregateAsOf: "record_aggregate_as_of",
|
|
6052
6052
|
aggOperations: "agg_operations",
|
|
6053
6053
|
aggBuckets: "agg_buckets",
|
|
6054
|
+
aggCalendar: "agg_calendar",
|
|
6054
6055
|
// DOOR-18: a subscription is a Rule record carrying a `subscription` block
|
|
6055
6056
|
// over a saved view. There is no subscription TABLE and no second notifier.
|
|
6056
6057
|
aggSubscriptions: "agg_subscriptions",
|
|
@@ -8695,6 +8696,9 @@ function createRecordsClient(given) {
|
|
|
8695
8696
|
async aggBuckets() {
|
|
8696
8697
|
return callDoor(DOORS.aggBuckets, {}, "aggBuckets");
|
|
8697
8698
|
},
|
|
8699
|
+
async aggCalendar() {
|
|
8700
|
+
return callDoor(DOORS.aggCalendar, { p_organization_id: org }, "aggCalendar");
|
|
8701
|
+
},
|
|
8698
8702
|
async drillDescribe({ source }) {
|
|
8699
8703
|
return drillDoor(DRILL_DOORS.describe, { p_organization_id: org, p_source: source }, "drillDescribe");
|
|
8700
8704
|
},
|