@sprigr/apps-app-sdk 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -601,12 +601,17 @@ interface SprigrFilesEditInput {
601
601
  /** App-relative key of the source file already in app storage. */
602
602
  file_key: string;
603
603
  /** pdf runs the PyMuPDF ops engine (list_fields / fill_form / replace_text);
604
- * docx/xlsx run python-docx / openpyxl. */
605
- format: 'docx' | 'xlsx' | 'pdf';
604
+ * docx/xlsx run python-docx / openpyxl; xer/pmxml/mspdi run the platform's
605
+ * pure-TS schedule engine in-worker (Primavera P6 / MS Project XML, no
606
+ * sandbox cold-start exposure). */
607
+ format: 'docx' | 'xlsx' | 'pdf' | 'xer' | 'pmxml' | 'mspdi';
606
608
  operations: Array<Record<string, unknown>>;
607
609
  output_filename?: string;
608
610
  output_key?: string;
609
611
  allow_lossy?: boolean;
612
+ /** Schedule formats only: write even when the FK-integrity gate finds
613
+ * errors (the validation result is still returned). */
614
+ skip_validation?: boolean;
610
615
  /** Deterministic idempotency token: the platform persists the pipeline's
611
616
  * terminal result under it, so a retry of the same logical edit after a
612
617
  * dispatch timeout replays the finished result instead of re-running the
@@ -622,6 +627,10 @@ interface SprigrFilesEditResult {
622
627
  failed_operations?: Array<Record<string, unknown>>;
623
628
  warning?: string;
624
629
  error?: string;
630
+ /** Schedule formats only: the FK-integrity result ({errorCount, warningCount, issues}). */
631
+ validation?: Record<string, unknown>;
632
+ /** Schedule formats only: one-line engine summary incl. matched counts. */
633
+ summary?: string;
625
634
  }
626
635
  /** Input to `env.SPRIGR.files.create` (build a NEW docx/xlsx from a spec). */
627
636
  interface SprigrFilesCreateInput {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprigr/apps-app-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",