@awesomate/sdk 0.20.0 → 0.21.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 +14 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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.
|
|
27
|
+
export declare const VERSION = "0.21.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;
|
|
@@ -666,10 +669,20 @@ export interface BusinessMapDivision {
|
|
|
666
669
|
helpers: Array<BusinessMapHelper & {
|
|
667
670
|
placedBy: string;
|
|
668
671
|
}>;
|
|
672
|
+
/** Each department and who runs it: the holder of the job that heads it, else whoever runs the division (byDefault). */
|
|
669
673
|
departments: Array<{
|
|
670
674
|
no: number;
|
|
671
675
|
name: string;
|
|
672
676
|
gloss: string;
|
|
677
|
+
runBy: {
|
|
678
|
+
name: string;
|
|
679
|
+
byDefault: boolean;
|
|
680
|
+
};
|
|
681
|
+
headJob: {
|
|
682
|
+
id: number;
|
|
683
|
+
slug: string;
|
|
684
|
+
title: string;
|
|
685
|
+
} | null;
|
|
673
686
|
}>;
|
|
674
687
|
ideas: Array<{
|
|
675
688
|
label: 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.
|
|
27
|
+
export const VERSION = '0.21.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.
|
|
3
|
+
"version": "0.21.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",
|