@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
@@ -13853,6 +13853,15 @@ interface RecordsClient {
13853
13853
  aggOperations(): Promise<RecordsResult<string[]>>;
13854
13854
  /** The periods the store itself buckets by. */
13855
13855
  aggBuckets(): Promise<RecordsResult<string[]>>;
13856
+ /**
13857
+ * The organization's calendar (knobs `custom/time_zone`, `custom/week_start`), cut by the SAME door the
13858
+ * relative date filters and the chart buckets use. A calendar or timeline reads its first day of the week
13859
+ * from here, never from a constant of its own (lane NOTION-SMALL-4).
13860
+ */
13861
+ aggCalendar(): Promise<RecordsResult<{
13862
+ time_zone: string;
13863
+ week_start: string;
13864
+ }>>;
13856
13865
  /**
13857
13866
  * A source's drill definition — its Dimensions, Measures, drill paths and first screen.
13858
13867
  * `{kind: "table", id}` is a custom Table; `{kind: "entity", token}` a standard table by its
@@ -13853,6 +13853,15 @@ interface RecordsClient {
13853
13853
  aggOperations(): Promise<RecordsResult<string[]>>;
13854
13854
  /** The periods the store itself buckets by. */
13855
13855
  aggBuckets(): Promise<RecordsResult<string[]>>;
13856
+ /**
13857
+ * The organization's calendar (knobs `custom/time_zone`, `custom/week_start`), cut by the SAME door the
13858
+ * relative date filters and the chart buckets use. A calendar or timeline reads its first day of the week
13859
+ * from here, never from a constant of its own (lane NOTION-SMALL-4).
13860
+ */
13861
+ aggCalendar(): Promise<RecordsResult<{
13862
+ time_zone: string;
13863
+ week_start: string;
13864
+ }>>;
13856
13865
  /**
13857
13866
  * A source's drill definition — its Dimensions, Measures, drill paths and first screen.
13858
13867
  * `{kind: "table", id}` is a custom Table; `{kind: "entity", token}` a standard table by its
@@ -3872,6 +3872,7 @@ var DOORS = {
3872
3872
  recordAggregateAsOf: "record_aggregate_as_of",
3873
3873
  aggOperations: "agg_operations",
3874
3874
  aggBuckets: "agg_buckets",
3875
+ aggCalendar: "agg_calendar",
3875
3876
  // DOOR-18: a subscription is a Rule record carrying a `subscription` block
3876
3877
  // over a saved view. There is no subscription TABLE and no second notifier.
3877
3878
  aggSubscriptions: "agg_subscriptions",
@@ -6530,6 +6531,9 @@ function createRecordsClient(given) {
6530
6531
  async aggBuckets() {
6531
6532
  return callDoor(DOORS.aggBuckets, {}, "aggBuckets");
6532
6533
  },
6534
+ async aggCalendar() {
6535
+ return callDoor(DOORS.aggCalendar, { p_organization_id: org }, "aggCalendar");
6536
+ },
6533
6537
  async drillDescribe({ source }) {
6534
6538
  return drillDoor(DRILL_DOORS.describe, { p_organization_id: org, p_source: source }, "drillDescribe");
6535
6539
  },