Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/good-mugs-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openfn/language-pdfshift': patch
---

Update `HttpState` data property docs
8 changes: 4 additions & 4 deletions packages/pdfshift/src/Adaptor.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { expandReferences, encode } from '@openfn/language-common/util';
import { expandReferences } from '@openfn/language-common/util';
import * as util from './Utils';

/**
* State object
* @typedef {Object} HttpState
* @property data - the parsed response body
* @property response - the response from the HTTP server, including headers, statusCode, body, etc
* @property references - an array of all previous data objects used in the Job
* @property data - The parsed response body when `filename` is provided, otherwise a base64-encoded string.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to go just on the generatePDF docs - not the general state docs. Because it doesn't really make sense on the generic request helper

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephjclark In the docs repo?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, here. Do it on the function as an override

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @property response - The response from the HTTP server, including headers, statusCode, body, etc
* @property references - An array of all previous data objects used in the Job
**/

/**
Expand Down