@awesomate/sdk 0.20.0 → 0.22.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/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@
24
24
  * Docs: https://hub.awesomate.ai/docs/sdk/
25
25
  */
26
26
  /** This package's version, sent to the hub with every server call. */
27
- export declare const VERSION = "0.20.0";
27
+ export declare const VERSION = "0.22.0";
28
28
  /** Augmented by the generated awesomate.d.ts, so each kind's rows are typed. */
29
29
  export interface Kinds {
30
30
  }
@@ -601,7 +601,10 @@ export interface BusinessMapJob {
601
601
  /** active: someone holds it. open: nobody does. hire_next: the owner's next hire. */
602
602
  state: 'active' | 'open' | 'hire_next';
603
603
  isOwnerJob: boolean;
604
+ /** Runs its division: the division manager, above its departments, so departmentNo is null (the owner's job excepted). */
604
605
  headsDivision: boolean;
606
+ /** Runs its department: the person responsible for it, and for its department-level KPIs. */
607
+ headsDepartment: boolean;
605
608
  departmentNo: number | null;
606
609
  reportsTo: {
607
610
  id: number;
@@ -627,6 +630,20 @@ export interface BusinessMapJob {
627
630
  }>;
628
631
  /** The tag this job's procedures carry in 1Brain, such as 'job:quotes'. The map keeps no procedure text. */
629
632
  proceduresTag: string;
633
+ /** Quarterly priorities on this hat, every quarter. */
634
+ priorities: BusinessMapPriority[];
635
+ }
636
+ /** A quarterly priority on a hat: one of the few things it must move this quarter. */
637
+ export interface BusinessMapPriority {
638
+ id: number;
639
+ /** '2026-Q4'. */
640
+ quarter: string;
641
+ title: string;
642
+ owner: string | null;
643
+ ownerMembershipId: number | null;
644
+ status: 'open' | 'on_track' | 'off_track' | 'done' | 'not_done';
645
+ /** 'YYYY-MM-DD'. */
646
+ dueOn: string | null;
630
647
  }
631
648
  /** One step of the customer's path. */
632
649
  export interface BusinessMapPathStep {
@@ -666,10 +683,20 @@ export interface BusinessMapDivision {
666
683
  helpers: Array<BusinessMapHelper & {
667
684
  placedBy: string;
668
685
  }>;
686
+ /** Each department and who runs it: the holder of the job that heads it, else whoever runs the division (byDefault). */
669
687
  departments: Array<{
670
688
  no: number;
671
689
  name: string;
672
690
  gloss: string;
691
+ runBy: {
692
+ name: string;
693
+ byDefault: boolean;
694
+ };
695
+ headJob: {
696
+ id: number;
697
+ slug: string;
698
+ title: string;
699
+ } | null;
673
700
  }>;
674
701
  ideas: Array<{
675
702
  label: string;
@@ -715,6 +742,8 @@ export interface BusinessMap {
715
742
  } | null;
716
743
  steps: BusinessMapPathStep[];
717
744
  };
745
+ /** This quarter, '2026-Q4' (UTC): the one the map shows priorities for. */
746
+ quarter: string;
718
747
  /** What is missing, most important first. */
719
748
  gaps: Array<{
720
749
  kind: 'procedure_first' | 'no_helper' | 'job_open' | 'path_missing' | 'path_unowned' | 'owner_everywhere' | 'unplaced';
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@
24
24
  * Docs: https://hub.awesomate.ai/docs/sdk/
25
25
  */
26
26
  /** This package's version, sent to the hub with every server call. */
27
- export const VERSION = '0.20.0';
27
+ export const VERSION = '0.22.0';
28
28
  const DEFAULT_BASE = 'https://hub.awesomate.ai';
29
29
  const ERROR_CODES = ['unauthenticated', 'forbidden', 'not_found', 'validation', 'consent_blocked', 'rate_limited', 'conflict', 'unavailable'];
30
30
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/sdk",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Your own Awesomate data from Node and the browser: query contacts and app data with generated types, and sign your app's own users in",
5
5
  "license": "MIT",
6
6
  "type": "module",