@fluxfiles/node 0.1.22 → 0.1.24
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.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/src/token.ts +2 -0
- package/src/types.ts +6 -0
package/dist/index.d.mts
CHANGED
|
@@ -108,6 +108,12 @@ interface BaseTokenOptions {
|
|
|
108
108
|
/** Optional self-hosted PDF-tools URL (Stirling-PDF, or any web PDF toolkit). When set, the
|
|
109
109
|
* UI shows a "PDF tools" action that embeds it (merge/split/OCR/convert/…). Free; http(s). */
|
|
110
110
|
pdfToolsUrl?: string;
|
|
111
|
+
/** Optional self-hosted office suite URL (Collabora/OnlyOffice) for .docx/.xlsx/.pptx…. May
|
|
112
|
+
* carry a `{url}` placeholder the UI substitutes with the selected file's URL. Free; http(s). */
|
|
113
|
+
officeUrl?: string;
|
|
114
|
+
/** Optional self-hosted e-signature URL (DocuSeal) for signing PDFs/docs. May carry a `{url}`
|
|
115
|
+
* placeholder the UI substitutes with the selected file's URL. Free; http(s). */
|
|
116
|
+
esignUrl?: string;
|
|
111
117
|
/** Allow the Optimization feature (POST /api/fm/optimize) — recompress images to WebP +
|
|
112
118
|
* compress PDFs. **Free/core**; default **false** because it replaces/deletes originals, so
|
|
113
119
|
* it's an opt-in capability. */
|
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,12 @@ interface BaseTokenOptions {
|
|
|
108
108
|
/** Optional self-hosted PDF-tools URL (Stirling-PDF, or any web PDF toolkit). When set, the
|
|
109
109
|
* UI shows a "PDF tools" action that embeds it (merge/split/OCR/convert/…). Free; http(s). */
|
|
110
110
|
pdfToolsUrl?: string;
|
|
111
|
+
/** Optional self-hosted office suite URL (Collabora/OnlyOffice) for .docx/.xlsx/.pptx…. May
|
|
112
|
+
* carry a `{url}` placeholder the UI substitutes with the selected file's URL. Free; http(s). */
|
|
113
|
+
officeUrl?: string;
|
|
114
|
+
/** Optional self-hosted e-signature URL (DocuSeal) for signing PDFs/docs. May carry a `{url}`
|
|
115
|
+
* placeholder the UI substitutes with the selected file's URL. Free; http(s). */
|
|
116
|
+
esignUrl?: string;
|
|
111
117
|
/** Allow the Optimization feature (POST /api/fm/optimize) — recompress images to WebP +
|
|
112
118
|
* compress PDFs. **Free/core**; default **false** because it replaces/deletes originals, so
|
|
113
119
|
* it's an opt-in capability. */
|
package/dist/index.js
CHANGED
|
@@ -174,6 +174,8 @@ function applyTenantOverrides(payload, opts) {
|
|
|
174
174
|
if (opts.allowTerminal !== void 0) payload.allow_terminal = !!opts.allowTerminal;
|
|
175
175
|
if (opts.terminalPtyUrl) payload.terminal_pty_url = String(opts.terminalPtyUrl);
|
|
176
176
|
if (opts.pdfToolsUrl) payload.pdf_tools_url = String(opts.pdfToolsUrl);
|
|
177
|
+
if (opts.officeUrl) payload.office_url = String(opts.officeUrl);
|
|
178
|
+
if (opts.esignUrl) payload.esign_url = String(opts.esignUrl);
|
|
177
179
|
if (opts.allowOptimize !== void 0) payload.allow_optimize = !!opts.allowOptimize;
|
|
178
180
|
if (opts.allowShare !== void 0) payload.allow_share = !!opts.allowShare;
|
|
179
181
|
if (opts.allowIntake !== void 0) payload.allow_intake = !!opts.allowIntake;
|
package/dist/index.mjs
CHANGED
|
@@ -152,6 +152,8 @@ function applyTenantOverrides(payload, opts) {
|
|
|
152
152
|
if (opts.allowTerminal !== void 0) payload.allow_terminal = !!opts.allowTerminal;
|
|
153
153
|
if (opts.terminalPtyUrl) payload.terminal_pty_url = String(opts.terminalPtyUrl);
|
|
154
154
|
if (opts.pdfToolsUrl) payload.pdf_tools_url = String(opts.pdfToolsUrl);
|
|
155
|
+
if (opts.officeUrl) payload.office_url = String(opts.officeUrl);
|
|
156
|
+
if (opts.esignUrl) payload.esign_url = String(opts.esignUrl);
|
|
155
157
|
if (opts.allowOptimize !== void 0) payload.allow_optimize = !!opts.allowOptimize;
|
|
156
158
|
if (opts.allowShare !== void 0) payload.allow_share = !!opts.allowShare;
|
|
157
159
|
if (opts.allowIntake !== void 0) payload.allow_intake = !!opts.allowIntake;
|
package/package.json
CHANGED
package/src/token.ts
CHANGED
|
@@ -146,6 +146,8 @@ function applyTenantOverrides(payload: Record<string, unknown>, opts: BaseTokenO
|
|
|
146
146
|
if (opts.allowTerminal !== undefined) payload.allow_terminal = !!opts.allowTerminal;
|
|
147
147
|
if (opts.terminalPtyUrl) payload.terminal_pty_url = String(opts.terminalPtyUrl);
|
|
148
148
|
if (opts.pdfToolsUrl) payload.pdf_tools_url = String(opts.pdfToolsUrl);
|
|
149
|
+
if (opts.officeUrl) payload.office_url = String(opts.officeUrl);
|
|
150
|
+
if (opts.esignUrl) payload.esign_url = String(opts.esignUrl);
|
|
149
151
|
if (opts.allowOptimize !== undefined) payload.allow_optimize = !!opts.allowOptimize;
|
|
150
152
|
// Other paid-module claims (inert unless the module is installed + licensed).
|
|
151
153
|
if (opts.allowShare !== undefined) payload.allow_share = !!opts.allowShare;
|
package/src/types.ts
CHANGED
|
@@ -112,6 +112,12 @@ export interface BaseTokenOptions {
|
|
|
112
112
|
/** Optional self-hosted PDF-tools URL (Stirling-PDF, or any web PDF toolkit). When set, the
|
|
113
113
|
* UI shows a "PDF tools" action that embeds it (merge/split/OCR/convert/…). Free; http(s). */
|
|
114
114
|
pdfToolsUrl?: string;
|
|
115
|
+
/** Optional self-hosted office suite URL (Collabora/OnlyOffice) for .docx/.xlsx/.pptx…. May
|
|
116
|
+
* carry a `{url}` placeholder the UI substitutes with the selected file's URL. Free; http(s). */
|
|
117
|
+
officeUrl?: string;
|
|
118
|
+
/** Optional self-hosted e-signature URL (DocuSeal) for signing PDFs/docs. May carry a `{url}`
|
|
119
|
+
* placeholder the UI substitutes with the selected file's URL. Free; http(s). */
|
|
120
|
+
esignUrl?: string;
|
|
115
121
|
/** Allow the Optimization feature (POST /api/fm/optimize) — recompress images to WebP +
|
|
116
122
|
* compress PDFs. **Free/core**; default **false** because it replaces/deletes originals, so
|
|
117
123
|
* it's an opt-in capability. */
|