@startsimpli/integrations 0.2.148 → 0.2.150

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.
@@ -25,6 +25,7 @@
25
25
  * attribute names shift, `./entities.ts` is the one file that changes.
26
26
  */
27
27
  import type { ItemSync } from '../task-tracker/item-sync';
28
+ import type { FocusRevision } from './focus-history';
28
29
 
29
30
  /**
30
31
  * Which connector filled a record. FREE-FORM on purpose — `granola`, `dropbox`,
@@ -792,6 +793,12 @@ export interface CommitmentDraft {
792
793
  ownerName?: string;
793
794
  subject?: string;
794
795
  dueAt?: string | null;
796
+ /**
797
+ * True when `dueAt` was READ FROM THE SOURCE TEXT by `stated-date.ts` (bd startsim-768w.38.30).
798
+ * Such a date goes onto a row the run CREATES and is never filled onto a row that already
799
+ * exists: backfilling live rows is a separate, deliberate act.
800
+ */
801
+ dueOnCreateOnly?: boolean;
795
802
  /** 0 critical .. 4 lowest; only when the source signalled it. */
796
803
  priority?: number;
797
804
  /** Minutes, in total, when a length of time was spoken. */
@@ -1080,6 +1087,7 @@ export interface ExtractionDraft {
1080
1087
  status?: string;
1081
1088
  owner?: string;
1082
1089
  subject?: string;
1090
+ /** IGNORED: the model never supplies a date. It is read from the quote by `stated-date.ts`. Kept so older adapters still type-check. */
1083
1091
  dueAt?: string | null;
1084
1092
  quote?: string;
1085
1093
  }>;
@@ -1397,6 +1405,10 @@ export interface Focus {
1397
1405
  detail: string;
1398
1406
  status: FocusStatus;
1399
1407
  category?: FocusCategory;
1408
+ /** What KIND of focus: free text, absent for an ordinary one (bd startsim-a01ps.8). */
1409
+ subtype?: string;
1410
+ /** The subtype's own inputs, one JSON object. Read by a pure function, never filtered on. */
1411
+ params?: Record<string, unknown>;
1400
1412
  timeFrame?: FocusTimeFrame;
1401
1413
  year?: number | null;
1402
1414
  startDate?: string | null;
@@ -1434,6 +1446,8 @@ export interface FocusDraft {
1434
1446
  detail?: string;
1435
1447
  status?: FocusStatus;
1436
1448
  category?: FocusCategory;
1449
+ subtype?: string;
1450
+ params?: Record<string, unknown>;
1437
1451
  timeFrame?: FocusTimeFrame;
1438
1452
  year?: number | null;
1439
1453
  startDate?: string | null;
@@ -1450,12 +1464,15 @@ export interface FocusDraft {
1450
1464
  export interface FocusQuery {
1451
1465
  status?: FocusStatus | FocusStatus[];
1452
1466
  category?: FocusCategory;
1467
+ /** Only sent when set: a tenant that never declared `subtype` answers an
1468
+ * undeclared attribute filter with a 400. */
1469
+ subtype?: string;
1453
1470
  timeFrame?: FocusTimeFrame;
1454
1471
  year?: number;
1455
1472
  owner?: string;
1456
1473
  search?: string;
1457
1474
  /** `progress` ascending is worst-off first, which is the useful default. */
1458
- orderBy?: 'progress' | '-progress' | 'sortOrder' | 'title';
1475
+ orderBy?: 'progress' | '-progress' | 'sortOrder' | 'title' | 'endDate';
1459
1476
  page?: number;
1460
1477
  pageSize?: number;
1461
1478
  }
@@ -1489,6 +1506,12 @@ export interface PlanningApi extends CommitmentApi {
1489
1506
  /** Move a document to another project, or `null` to unfile. */
1490
1507
  fileDocument?(documentId: string, focusId: string | null): Promise<void>;
1491
1508
  listFocuses(query?: FocusQuery): Promise<CorpusPage<Focus>>;
1509
+ /**
1510
+ * The saves that moved a focus's `current_value`, newest first, server-paginated
1511
+ * (the tenant's revision trail). Absent where the tenant has no trail; the
1512
+ * progress chart then says history is unavailable rather than drawing one.
1513
+ */
1514
+ listFocusRevisions?(focusId: string, query?: { page?: number; pageSize?: number }): Promise<CorpusPage<FocusRevision>>;
1492
1515
  createFocus?(draft: FocusDraft): Promise<Focus>;
1493
1516
  /** Takes the row for the same reason `updateCommitment` does. */
1494
1517
  updateFocus?(focus: Focus, patch: Partial<FocusDraft>): Promise<Focus>;