@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/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
- job_number: string | null;
106
- job_description: string | null;
107
- po_number: string | null;
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
- job_number: string | null;
144
- job_description: string | null;
145
- po_number: string | null;
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,