@zauru-sdk/types 6.23.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.
@@ -83,6 +83,20 @@ export type CertificationPenaltyHistoryEntry = {
83
83
  createdAt: string;
84
84
  bitacoraId?: number;
85
85
  };
86
+ export type UnitCostPenaltyHistoryEntry = {
87
+ id: string;
88
+ detailId: number;
89
+ itemId: number;
90
+ amount: number;
91
+ reason: string;
92
+ previousUnitCost: number;
93
+ finalUnitCost: number;
94
+ employeeId: number;
95
+ employeeName: string;
96
+ agencyId: number;
97
+ createdAt: string;
98
+ bitacoraId: number;
99
+ };
86
100
  export type PriceAdjustmentReversalMatch = {
87
101
  sourceRuleId: number;
88
102
  sourceRuleName: string;
@@ -498,6 +512,65 @@ export type GeneratePDFBody = {
498
512
  e_date: string;
499
513
  print_template: number | string;
500
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
+ };
501
574
  export type GeneratedPDFResult = {
502
575
  status: number;
503
576
  zid: number;
@@ -619,9 +692,12 @@ export type POHistoryMassive = {
619
692
  memo?: string | object | null;
620
693
  };
621
694
  export type BitacoraPOMassive = {
695
+ operationType?: "rejection_adjustment" | "certification_penalty" | "unit_cost_penalty";
622
696
  accion: string;
623
697
  discount?: number | string;
624
698
  other_charges?: number | string;
699
+ penaltyAmount?: number;
700
+ penaltyReason?: string;
625
701
  payeeCategoryId?: number | string;
626
702
  itemId?: number | string;
627
703
  fechaDesde?: string;
@@ -988,6 +1064,7 @@ export type JsonMemoType = {
988
1064
  rejectionLayers?: RejectionPercentageLayers;
989
1065
  costCalculations?: CostCalculationMemo[];
990
1066
  certificationPenaltyHistory?: CertificationPenaltyHistoryEntry[];
1067
+ unitCostPenaltyHistory?: UnitCostPenaltyHistoryEntry[];
991
1068
  rejectionCalculations?: RejectionCalculationMemo;
992
1069
  };
993
1070
  export type CloseOpenWorkOrderDetailInput = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.23.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": "a3c1f2af46acb59cf9fcb78ecb18d904e33c61e5"
25
+ "gitHead": "d730b568712c88b6e62f9113630c24c6bff5cb7d"
26
26
  }