@awesomate/sdk 0.14.0 → 0.15.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.14.0";
27
+ export declare const VERSION = "0.15.0";
28
28
  /** Augmented by the generated awesomate.d.ts, so each kind's rows are typed. */
29
29
  export interface Kinds {
30
30
  }
@@ -408,6 +408,28 @@ export interface BusinessMapJob {
408
408
  exceptions: string | null;
409
409
  minutesSavedPerRun: number | null;
410
410
  }>;
411
+ /** The tag this job's procedures carry in 1Brain, such as 'job:quotes'. The map keeps no procedure text. */
412
+ proceduresTag: string;
413
+ }
414
+ /** One step of the customer's path. */
415
+ export interface BusinessMapPathStep {
416
+ position: number;
417
+ label: string;
418
+ divisionNo: 1 | 2 | 3 | 4 | 5 | 6 | 7;
419
+ verb: string;
420
+ /** The job that looks after the step, when the owner named one. */
421
+ job: {
422
+ id: number;
423
+ slug: string;
424
+ title: string;
425
+ } | null;
426
+ /** Who looks after it: the job's holder, else whoever runs the division (byDefault). */
427
+ owner: {
428
+ name: string;
429
+ byDefault: boolean;
430
+ };
431
+ /** Where this step hands over to the next, in the owner's words. */
432
+ handoffRule: string | null;
411
433
  }
412
434
  /** One of the seven divisions, in board order (7 first). */
413
435
  export interface BusinessMapDivision {
@@ -443,6 +465,8 @@ export interface BusinessMapDivision {
443
465
  kind: 'lead' | 'result';
444
466
  }>;
445
467
  question: string;
468
+ /** 1Brain departments whose procedures belong in this division. */
469
+ oneBrainDepartments: string[];
446
470
  }
447
471
  /** The business map, as businessMap() returns it. No email addresses. */
448
472
  export interface BusinessMap {
@@ -465,9 +489,18 @@ export interface BusinessMap {
465
489
  unplaced: Array<BusinessMapHelper & {
466
490
  placedBy: string;
467
491
  }>;
492
+ /** How a customer moves through the business. stored false: suggested for its kind of business, not set by the owner yet. */
493
+ path: {
494
+ stored: boolean;
495
+ template: {
496
+ key: string;
497
+ label: string;
498
+ } | null;
499
+ steps: BusinessMapPathStep[];
500
+ };
468
501
  /** What is missing, most important first. */
469
502
  gaps: Array<{
470
- kind: 'no_helper' | 'job_open' | 'owner_everywhere' | 'unplaced';
503
+ kind: 'procedure_first' | 'no_helper' | 'job_open' | 'path_missing' | 'path_unowned' | 'owner_everywhere' | 'unplaced';
471
504
  division: number | null;
472
505
  title: string;
473
506
  detail: string;
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.14.0';
27
+ export const VERSION = '0.15.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.14.0",
3
+ "version": "0.15.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",