@zauru-sdk/types 6.24.0 → 6.25.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.
@@ -512,6 +512,65 @@ export type GeneratePDFBody = {
512
512
  e_date: string;
513
513
  print_template: number | string;
514
514
  };
515
+ export type PrintTemplateRow = {
516
+ id?: number;
517
+ title?: string | null;
518
+ header?: boolean | null;
519
+ column?: boolean;
520
+ index?: number;
521
+ size?: number | null;
522
+ variable_size?: boolean;
523
+ print_template_id?: number;
524
+ print_template_for_form_group_id?: number | null;
525
+ _destroy?: boolean;
526
+ };
527
+ export type PrintTemplateCell = {
528
+ id?: number;
529
+ header?: boolean | null;
530
+ row?: number;
531
+ column?: number;
532
+ value?: string | null;
533
+ colspan?: number;
534
+ print_template_id?: number;
535
+ print_template_for_form_group_id?: number | null;
536
+ _destroy?: boolean;
537
+ };
538
+ export type PrintTemplate = {
539
+ id: number;
540
+ name: string;
541
+ operation_id: number;
542
+ font_family: string;
543
+ font_size: string;
544
+ active?: boolean;
545
+ width?: number;
546
+ height?: number;
547
+ top_margin?: number;
548
+ left_margin?: number;
549
+ body_columns?: number;
550
+ print_template_rows?: PrintTemplateRow[];
551
+ print_template_cells?: PrintTemplateCell[];
552
+ };
553
+ export type NewPrintTemplateBody = Partial<Omit<PrintTemplate, "id">> & {
554
+ name: string;
555
+ operation_id: number;
556
+ font_family: string;
557
+ font_size: string;
558
+ print_template_rows_attributes?: PrintTemplateRow[];
559
+ print_template_cells_attributes?: PrintTemplateCell[];
560
+ };
561
+ export type DocumentPrint = {
562
+ id: number;
563
+ active: boolean;
564
+ operation_id: number;
565
+ print_template_id: number;
566
+ notes?: string | null;
567
+ };
568
+ export type NewDocumentPrintBody = {
569
+ active?: boolean;
570
+ operation_id: number;
571
+ print_template_id: number;
572
+ notes?: string;
573
+ };
515
574
  export type GeneratedPDFResult = {
516
575
  status: number;
517
576
  zid: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.24.0",
3
+ "version": "6.25.0",
4
4
  "description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -22,5 +22,5 @@
22
22
  "devDependencies": {
23
23
  "typescript": "^5.1.6"
24
24
  },
25
- "gitHead": "d1667a29d9fabc9980d171fed30796c232de358d"
25
+ "gitHead": "d730b568712c88b6e62f9113630c24c6bff5cb7d"
26
26
  }