@maravilla-labs/platform 0.3.11 → 0.4.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/config.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -1
- package/dist/transforms-B3XZ8wYs.d.ts +300 -0
- package/package.json +1 -1
- package/src/remote-client.ts +33 -1
- package/src/transforms.ts +172 -1
- package/dist/transforms-KzpoYW43.d.ts +0 -156
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TransformsConfig } from './transforms-
|
|
2
|
-
export { a as TransformsPatternSpec } from './transforms-
|
|
1
|
+
import { T as TransformsConfig } from './transforms-B3XZ8wYs.js';
|
|
2
|
+
export { a as TransformsPatternSpec } from './transforms-B3XZ8wYs.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @fileoverview Typed schema for `maravilla.config.{ts,yaml,json}` files.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { a as RenClient, b as RenClientOptions, R as RenEvent, g as getOrCreateClientId, r as renFetch, s as storageDelete, c as storageUpload } from './ren-D0DCQ0Fs.js';
|
|
2
2
|
import { LocalParticipant } from 'livekit-client';
|
|
3
3
|
export { RegisterPushOptions, RegisterPushResult, offsetBefore, registerPush, unregisterPush } from './push.js';
|
|
4
|
-
export { I as ImageFormat, J as JobHandle,
|
|
4
|
+
export { D as DocConvertOpts, b as DocFormat, c as DocInsertQrCodeOpts, d as DocReplaceImagesOpts, e as DocTemplateMergeOpts, f as DocThumbnailOpts, g as DocToHtmlOpts, h as DocToMarkdownOpts, i as DocToPdfOpts, I as ImageFormat, j as ImageRef, J as JobHandle, k as JobStatus, l as JobStatusResponse, M as MediaInfo, O as OcrOpts, Q as QrCodeSpec, m as QrPayload, R as ResizeOpts, n as ThumbnailOpts, o as TranscodeOpts, p as TransformSpec, T as TransformsConfig, a as TransformsPatternSpec, q as TransformsService, V as VideoFormat, r as keyFor, t as transforms } from './transforms-B3XZ8wYs.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Media service for video/audio room management.
|
package/dist/index.js
CHANGED
|
@@ -985,6 +985,30 @@ var RemoteTransformsService = class {
|
|
|
985
985
|
ocr(srcKey, opts) {
|
|
986
986
|
return this.post("/ocr", { srcKey, opts: opts ?? {} });
|
|
987
987
|
}
|
|
988
|
+
docToPdf(srcKey, opts) {
|
|
989
|
+
return this.post("/doc_to_pdf", { srcKey, opts: opts ?? {} });
|
|
990
|
+
}
|
|
991
|
+
docThumbnail(srcKey, opts) {
|
|
992
|
+
return this.post("/doc_thumbnail", { srcKey, opts });
|
|
993
|
+
}
|
|
994
|
+
docConvert(srcKey, opts) {
|
|
995
|
+
return this.post("/doc_convert", { srcKey, opts });
|
|
996
|
+
}
|
|
997
|
+
docToMarkdown(srcKey, opts) {
|
|
998
|
+
return this.post("/doc_to_markdown", { srcKey, opts: opts ?? {} });
|
|
999
|
+
}
|
|
1000
|
+
docToHtml(srcKey, opts) {
|
|
1001
|
+
return this.post("/doc_to_html", { srcKey, opts: opts ?? {} });
|
|
1002
|
+
}
|
|
1003
|
+
docReplaceImages(srcKey, opts) {
|
|
1004
|
+
return this.post("/doc_replace_images", { srcKey, opts });
|
|
1005
|
+
}
|
|
1006
|
+
docInsertQrCode(srcKey, opts) {
|
|
1007
|
+
return this.post("/doc_insert_qr_code", { srcKey, opts });
|
|
1008
|
+
}
|
|
1009
|
+
docTemplateMerge(srcKey, opts) {
|
|
1010
|
+
return this.post("/doc_template_merge", { srcKey, opts });
|
|
1011
|
+
}
|
|
988
1012
|
probe(srcKey) {
|
|
989
1013
|
return this.post("/probe", { srcKey });
|
|
990
1014
|
}
|
|
@@ -1872,6 +1896,22 @@ function outputExtension(spec) {
|
|
|
1872
1896
|
}
|
|
1873
1897
|
case "ocr":
|
|
1874
1898
|
return "txt";
|
|
1899
|
+
case "doc_to_pdf":
|
|
1900
|
+
return "pdf";
|
|
1901
|
+
case "doc_thumbnail": {
|
|
1902
|
+
const fmt = spec.format ?? "png";
|
|
1903
|
+
return fmt;
|
|
1904
|
+
}
|
|
1905
|
+
case "doc_convert":
|
|
1906
|
+
return spec.to;
|
|
1907
|
+
case "doc_to_markdown":
|
|
1908
|
+
return "md";
|
|
1909
|
+
case "doc_to_html":
|
|
1910
|
+
return "html";
|
|
1911
|
+
case "doc_replace_images":
|
|
1912
|
+
case "doc_insert_qr_code":
|
|
1913
|
+
case "doc_template_merge":
|
|
1914
|
+
return spec.output_format ?? "docx";
|
|
1875
1915
|
default: {
|
|
1876
1916
|
const _exhaust = spec;
|
|
1877
1917
|
throw new Error(`unknown transform kind: ${_exhaust.kind}`);
|