@lambda-development/erp-core 0.8.34 → 1.0.0

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.
@@ -230,6 +230,19 @@ export declare const api: {
230
230
  last_message_at?: string | null;
231
231
  detail?: string;
232
232
  }>;
233
+ documentFields: (doctype: string) => Promise<{
234
+ pdf: {
235
+ supported: boolean;
236
+ reason?: string;
237
+ kind?: string;
238
+ required_fields?: string[];
239
+ };
240
+ }>;
241
+ generateDocumentPdf: (doctype: string, name: string) => Promise<{
242
+ artifact_id: string;
243
+ filename: string;
244
+ sha256: string;
245
+ }>;
233
246
  listDocuments: (doctype: string, params?: Record<string, string | number | undefined>) => Promise<{
234
247
  rows: any[];
235
248
  total: number;
@@ -0,0 +1,6 @@
1
+ /** Backend capabilities govern both visibility and execution. Never open a
2
+ * fabricated PDF route and leave an API error in a blank browser tab. */
3
+ export declare function PdfButton({ doctype, name }: {
4
+ doctype: string;
5
+ name: string;
6
+ }): import("react/jsx-runtime").JSX.Element | null;