@fern-api/fdr-sdk 1.2.174-564d1e65bb → 1.2.174-573303cdda

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/js/index.mjs CHANGED
@@ -12289,9 +12289,12 @@ var pdfExportContract = {
12289
12289
  };
12290
12290
 
12291
12291
  // src/orpc-client/pdf-export/client.ts
12292
- function createPdfExportClient(options) {
12292
+ function createExportClient(options) {
12293
+ return createClient(options, "/export");
12294
+ }
12295
+ function createClient(options, prefix) {
12293
12296
  const link = new OpenAPILink18(pdfExportContract, {
12294
- url: `${options.baseUrl}/pdf-export`,
12297
+ url: `${options.baseUrl}${prefix}`,
12295
12298
  headers: () => ({
12296
12299
  Authorization: `Bearer ${options.token}`,
12297
12300
  ...options.headers
@@ -12658,7 +12661,7 @@ function createFdrORPCClient(options) {
12658
12661
  git: createGitClient(normalizedOptions),
12659
12662
  mcpHosting: createMcpHostingClient(normalizedOptions),
12660
12663
  slugs: createSlugsClient(normalizedOptions),
12661
- pdfExport: createPdfExportClient(normalizedOptions),
12664
+ pdfExport: createExportClient(normalizedOptions),
12662
12665
  sdks: createSdksClient(normalizedOptions),
12663
12666
  snippets: createSnippetsClient(normalizedOptions),
12664
12667
  snippetsFactory: createSnippetsFactoryClient(normalizedOptions),