@ai-matrx/records 0.95.1 → 0.96.1

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{client-DQWdJeFM.d.ts → client-D7bvxEZW.d.ts} +9 -0
  3. package/dist/{client-CEX4WdvX.d.cts → client-DKgbZUNt.d.cts} +9 -0
  4. package/dist/core/index.cjs +4 -0
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +3 -2
  7. package/dist/core/index.d.ts +3 -2
  8. package/dist/core/index.js +4 -0
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +4 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +1 -1
  13. package/dist/data/index.d.ts +1 -1
  14. package/dist/data/index.js +4 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-Bkh3C1Ao.d.ts → declareTable-D_CiMnXM.d.ts} +1 -1
  17. package/dist/{declareTable-DeQ9_TMb.d.cts → declareTable-VoNRi_j_.d.cts} +1 -1
  18. package/dist/questions/index.d.cts +1 -1
  19. package/dist/questions/index.d.ts +1 -1
  20. package/dist/react/index.cjs +4 -0
  21. package/dist/react/index.cjs.map +1 -1
  22. package/dist/react/index.d.cts +9 -0
  23. package/dist/react/index.d.ts +9 -0
  24. package/dist/react/index.js +4 -0
  25. package/dist/react/index.js.map +1 -1
  26. package/dist/setup/index.cjs +4 -0
  27. package/dist/setup/index.cjs.map +1 -1
  28. package/dist/setup/index.d.cts +1 -1
  29. package/dist/setup/index.d.ts +1 -1
  30. package/dist/setup/index.js +4 -0
  31. package/dist/setup/index.js.map +1 -1
  32. package/dist/templates/index.cjs +124 -65
  33. package/dist/templates/index.cjs.map +1 -1
  34. package/dist/templates/index.d.cts +6 -1
  35. package/dist/templates/index.d.ts +6 -1
  36. package/dist/templates/index.js +124 -65
  37. package/dist/templates/index.js.map +1 -1
  38. package/dist/typed-table/index.cjs +4 -0
  39. package/dist/typed-table/index.cjs.map +1 -1
  40. package/dist/typed-table/index.d.cts +2 -2
  41. package/dist/typed-table/index.d.ts +2 -2
  42. package/dist/typed-table/index.js +4 -0
  43. package/dist/typed-table/index.js.map +1 -1
  44. package/dist/views/index.d.cts +1 -1
  45. package/dist/views/index.d.ts +1 -1
  46. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
+ ## 0.96.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records/v0.96.0..npm/records/v0.96.1 -- apps/shared/records`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.96.0 — the organization's calendar can be asked (lane NOTION-SMALL-4)
10
+
11
+ - **`client.aggCalendar()`** answers `{ time_zone, week_start }` from `custom.agg_calendar`, the same door the relative date filters and
12
+ chart buckets are cut with (signed-in EXECUTE granted by `notionsmall4_b`). The calendar and timeline views start their weeks on it.
13
+ - Consumer action: none.
14
+
15
+ ## Unreleased — the describe answer has a real schema (lane M3)
16
+
17
+ - **`describeResultJsonSchema()`** / **`parseDescribeTemplate()`** / `DESCRIBE_RESULT_KIND` (`@ai-matrx/records/templates`): the
18
+ JSON Schema the `make.describe_template` agent is stored with, built from the SAME constants the check reads
19
+ (`TEMPLATE_AUDIENCES`, `INDUSTRY_GROUPS`, `TEMPLATE_JOBS`, `TEACHES_FEATURES`), `__kind` declared. The deep parts travel as JSON text
20
+ (a provider closes typed objects and drops keys the schema omits); `parseDescribeTemplate` is the one deserializer.
21
+ - `describeSpec` reads the audience "personal" as "individual" (what the agent used to write: live "personal is not one of…").
22
+ - `describeVocabulary().phone_rule` no longer offers a UK number.
23
+ - Tests: `describe-result-schema.test.ts`.
24
+ - **Consumer action:** `features/make` opens the answer with `parseDescribeTemplate` (done in matrx-frontend).
25
+
3
26
  ## 0.95.1
4
27
 
5
28
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -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
@@ -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
  },