@renterra/sdk 0.2.0 → 0.2.1
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 +31 -3
- package/dist/generated/contracts.d.ts +159 -6
- package/dist/generated/list-filters.d.ts +4519 -0
- package/dist/generated/list-filters.js +1 -0
- package/dist/generated/resources.d.ts +1310 -70
- package/dist/generated/resources.js +86 -13
- package/dist/generated/rest.d.ts +4862 -920
- package/dist/generated/schemas.js +644 -42
- package/dist/index.d.ts +2 -1
- package/dist/mcp.d.ts +12 -6
- package/dist/mcp.js +1 -0
- package/dist/rest.d.ts +7091 -327
- package/dist/rest.js +5 -1
- package/dist/runtime.d.ts +8052 -0
- package/dist/runtime.js +49 -0
- package/dist/transport.d.ts +7 -5
- package/dist/transport.js +18 -4
- package/package.json +22 -18
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export type { ListFiltersByResource } from "./generated/list-filters.js";
|
|
1
2
|
export type { ConnectRenterraOptions, RenterraSdk } from "./rest.js";
|
|
2
3
|
export { connectRenterra } from "./rest.js";
|
|
3
|
-
export type { RenterraCallOptions } from "./transport.js";
|
|
4
|
+
export type { RenterraCallOptions, RenterraErrorDetails } from "./transport.js";
|
|
4
5
|
export { RenterraError } from "./transport.js";
|
package/dist/mcp.d.ts
CHANGED
|
@@ -102,9 +102,12 @@ export declare function connectRenterra(options: ConnectRenterraOptions): Promis
|
|
|
102
102
|
branch_id: string;
|
|
103
103
|
start_time: string;
|
|
104
104
|
end_time: string | null;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
metadata: {
|
|
106
|
+
po_number: string | null;
|
|
107
|
+
job_number: string | null;
|
|
108
|
+
job_description: string | null;
|
|
109
|
+
[k: string]: unknown;
|
|
110
|
+
};
|
|
108
111
|
contract_signed_at: string | null;
|
|
109
112
|
is_historical: boolean;
|
|
110
113
|
items: {
|
|
@@ -140,9 +143,12 @@ export declare function connectRenterra(options: ConnectRenterraOptions): Promis
|
|
|
140
143
|
branch_id: string;
|
|
141
144
|
start_time: string;
|
|
142
145
|
end_time: string | null;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
metadata: {
|
|
147
|
+
po_number: string | null;
|
|
148
|
+
job_number: string | null;
|
|
149
|
+
job_description: string | null;
|
|
150
|
+
[k: string]: unknown;
|
|
151
|
+
};
|
|
146
152
|
contract_signed_at: string | null;
|
|
147
153
|
is_historical: boolean;
|
|
148
154
|
items: {
|
package/dist/mcp.js
CHANGED
|
@@ -84,6 +84,7 @@ export async function connectRenterra(options) {
|
|
|
84
84
|
try {
|
|
85
85
|
const transport = new StreamableHTTPClientTransport(new URL(options.url), {
|
|
86
86
|
authProvider,
|
|
87
|
+
requestInit: { headers: { "Renterra-Version": "1.0.0" } },
|
|
87
88
|
fetch: async (input, init) => {
|
|
88
89
|
const response = await (options.fetch ?? globalThis.fetch)(input, {
|
|
89
90
|
...init,
|