-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
201b47e
commit e7d96e6
Showing
17 changed files
with
345 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/api/resources/pdf/client/requests/PostPdfDocxRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as FileForge from "../../../../index"; | ||
|
||
/** | ||
* @example | ||
* {} | ||
*/ | ||
export interface PostPdfDocxRequest { | ||
/** | ||
* Conversion options. This field is required even if empty. | ||
* | ||
* **Options** | ||
* | ||
* * `templateLiterals`: Map of template literals to replace in the document. Template literals should be enclosed in double curly braces, e.g. `{{name}}`. Variables name can contain alphanumeric characters and hyphens. All variables are case-sensitive. The value for each variable should be a string. If a value of undefined is passed, the variable will not be removed from the document. If you need to remove a variable, pass an empty string as the value. | ||
* | ||
* **NB** variables should **not** have surrounding spaces, e.g. `{{ name }}`. | ||
* | ||
* **Example** | ||
* | ||
* In the Word document: `{{name}} {{nickname}}. was born on {{date}}.` | ||
* | ||
* ```json | ||
* { | ||
* "templateLiterals": { | ||
* "name": "John Doe", | ||
* "date": "2021-12-31", | ||
* "nickname": "" | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* There will not be an error if a variable is not found in the document, nor if variables found in the document are not in the options. | ||
*/ | ||
options: FileForge.PostPdfDocxRequestOptions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { type PostPdfDocxRequest } from "./PostPdfDocxRequest"; | ||
export { type PostPdfMergeRequest } from "./PostPdfMergeRequest"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
/** | ||
* Conversion options. This field is required even if empty. | ||
* | ||
* **Options** | ||
* | ||
* - `templateLiterals`: Map of template literals to replace in the document. Template literals should be enclosed in double curly braces, e.g. `{{name}}`. Variables name can contain alphanumeric characters and hyphens. All variables are case-sensitive. The value for each variable should be a string. If a value of undefined is passed, the variable will not be removed from the document. If you need to remove a variable, pass an empty string as the value. | ||
* | ||
* **NB** variables should **not** have surrounding spaces, e.g. `{{ name }}`. | ||
* | ||
* **Example** | ||
* | ||
* In the Word document: `{{name}} {{nickname}}. was born on {{date}}.` | ||
* | ||
* ```json | ||
* { | ||
* "templateLiterals": { | ||
* "name": "John Doe", | ||
* "date": "2021-12-31", | ||
* "nickname": "" | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* There will not be an error if a variable is not found in the document, nor if variables found in the document are not in the options. | ||
*/ | ||
export interface PostPdfDocxRequestOptions { | ||
/** Map of template literals to replace in the document. */ | ||
templateLiterals?: Record<string, string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./PostPdfDocxRequestOptions"; | ||
export * from "./PostPdfMergeRequestOptions"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.