@brownandroot/api 1.0.0 → 1.2.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/README.md +346 -152
- package/dist/businessUnits.remote.d.ts +3 -4
- package/dist/businessUnits.remote.js +0 -1
- package/dist/cache.d.ts +152 -0
- package/dist/cache.js +324 -0
- package/dist/costcodes.remote.d.ts +3 -6
- package/dist/costcodes.remote.js +0 -7
- package/dist/employees.remote.d.ts +15 -10
- package/dist/employees.remote.js +1 -4
- package/dist/idb.d.ts +13 -0
- package/dist/idb.js +79 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +4 -0
- package/dist/jobtypejobsteps.remote.d.ts +3 -3
- package/dist/llm.remote.d.ts +12 -2
- package/dist/paytypes.remote.d.ts +3 -4
- package/dist/paytypes.remote.js +0 -1
- package/dist/rag.remote.d.ts +11 -4
- package/dist/workorders.remote.d.ts +3 -5
- package/dist/workorders.remote.js +0 -2
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -61,6 +61,10 @@ export class ApiHubClient {
|
|
|
61
61
|
async getEmployee(employeeId) {
|
|
62
62
|
return this.request(`/employees/${encodeURIComponent(employeeId)}`);
|
|
63
63
|
}
|
|
64
|
+
/** Get a single employee with compensation fields by employeeId */
|
|
65
|
+
async getEmployeePrivileged(employeeId) {
|
|
66
|
+
return this.request(`/employees/privileged/${encodeURIComponent(employeeId)}`);
|
|
67
|
+
}
|
|
64
68
|
/** Search employees by name (case-insensitive partial match) */
|
|
65
69
|
async searchByName(name) {
|
|
66
70
|
return this.request(`/employees/search?name=${encodeURIComponent(name)}`);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const getJobtypejobsteps:
|
|
2
|
-
export declare const getJobtypejobstepsDropdown:
|
|
3
|
-
export declare const getJobtypejobstep:
|
|
1
|
+
export declare const getJobtypejobsteps: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").Jobtypejobstep[]>;
|
|
2
|
+
export declare const getJobtypejobstepsDropdown: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").DropdownOption[]>;
|
|
3
|
+
export declare const getJobtypejobstep: import("@sveltejs/kit").RemoteQueryFunction<string, import("./index.js").Jobtypejobstep>;
|
package/dist/llm.remote.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
export declare const getLlmLogs:
|
|
2
|
-
export declare const chat:
|
|
1
|
+
export declare const getLlmLogs: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").LlmLog[]>;
|
|
2
|
+
export declare const chat: import("@sveltejs/kit").RemoteCommand<{
|
|
3
|
+
user: string;
|
|
4
|
+
messages: {
|
|
5
|
+
role: "system" | "user" | "assistant";
|
|
6
|
+
content: string;
|
|
7
|
+
}[];
|
|
8
|
+
source: string;
|
|
9
|
+
function?: string | undefined;
|
|
10
|
+
temperature?: number | undefined;
|
|
11
|
+
maxTokens?: number | undefined;
|
|
12
|
+
}, Promise<import("./index.js").ChatResponse>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const getPaytypes:
|
|
2
|
-
export declare const getPaytypesDropdown:
|
|
3
|
-
export declare const getPaytype:
|
|
4
|
-
export declare const searchPaytypes: any;
|
|
1
|
+
export declare const getPaytypes: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").Paytype[]>;
|
|
2
|
+
export declare const getPaytypesDropdown: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").PaytypeDropdownOption[]>;
|
|
3
|
+
export declare const getPaytype: import("@sveltejs/kit").RemoteQueryFunction<string, import("./index.js").Paytype>;
|
package/dist/paytypes.remote.js
CHANGED
|
@@ -4,4 +4,3 @@ import { getClient } from './client.js';
|
|
|
4
4
|
export const getPaytypes = query(async () => getClient().getPaytypes());
|
|
5
5
|
export const getPaytypesDropdown = query(async () => getClient().getPaytypesDropdown());
|
|
6
6
|
export const getPaytype = query(z.string(), async (id) => getClient().getPaytype(id));
|
|
7
|
-
export const searchPaytypes = query(z.string(), async (q) => getClient().searchPaytypes(q));
|
package/dist/rag.remote.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
export declare const listDocuments:
|
|
2
|
-
export declare const uploadDocument:
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const listDocuments: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").DocumentRecord[]>;
|
|
2
|
+
export declare const uploadDocument: import("@sveltejs/kit").RemoteCommand<{
|
|
3
|
+
fileName: string;
|
|
4
|
+
base64Content: string;
|
|
5
|
+
uploadedBy: string;
|
|
6
|
+
}, Promise<import("./index.js").DocumentRecord>>;
|
|
7
|
+
export declare const deleteDocument: import("@sveltejs/kit").RemoteCommand<number, Promise<void>>;
|
|
8
|
+
export declare const searchDocuments: import("@sveltejs/kit").RemoteCommand<{
|
|
9
|
+
query: string;
|
|
10
|
+
topK?: number | undefined;
|
|
11
|
+
}, Promise<import("./index.js").SearchResult[]>>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const getWorkorders:
|
|
2
|
-
export declare const getWorkordersDropdown:
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const getWorkorder: any;
|
|
5
|
-
export declare const searchWorkorders: any;
|
|
1
|
+
export declare const getWorkorders: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").Workorder[]>;
|
|
2
|
+
export declare const getWorkordersDropdown: import("@sveltejs/kit").RemoteQueryFunction<void, import("./index.js").DropdownOption[]>;
|
|
3
|
+
export declare const getWorkorder: import("@sveltejs/kit").RemoteQueryFunction<string, import("./index.js").Workorder>;
|
|
@@ -3,6 +3,4 @@ import { z } from 'zod';
|
|
|
3
3
|
import { getClient } from './client.js';
|
|
4
4
|
export const getWorkorders = query(async () => getClient().getWorkorders());
|
|
5
5
|
export const getWorkordersDropdown = query(async () => getClient().getWorkordersDropdown());
|
|
6
|
-
export const getWorkordersDropdownByBu = query(z.string(), async (businessUnitId) => getClient().getWorkordersDropdownByBu(businessUnitId));
|
|
7
6
|
export const getWorkorder = query(z.string(), async (id) => getClient().getWorkorder(id));
|
|
8
|
-
export const searchWorkorders = query(z.string(), async (q) => getClient().searchWorkorders(q));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brownandroot/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
},
|
|
17
|
+
"./cache": {
|
|
18
|
+
"types": "./dist/cache.d.ts",
|
|
19
|
+
"default": "./dist/cache.js"
|
|
20
|
+
},
|
|
17
21
|
"./employees": {
|
|
18
22
|
"types": "./dist/employees.remote.d.ts",
|
|
19
23
|
"default": "./dist/employees.remote.js"
|