hvp-shared 14.9.0 → 14.11.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.
@@ -42,6 +42,10 @@ export interface CreateRecurringPaymentRequest {
42
42
  amount?: number;
43
43
  /** Day of month to pay (default 1). */
44
44
  payDay?: number;
45
+ /** Month the recurring starts applying (ISO, first of month). Defaults to creation month. */
46
+ startDate?: string;
47
+ /** Optional month it stops applying (ISO, first of month). Open-ended if omitted. */
48
+ endDate?: string;
45
49
  isActive?: boolean;
46
50
  }
47
51
  export type UpdateRecurringPaymentRequest = Partial<CreateRecurringPaymentRequest>;
@@ -65,8 +69,20 @@ export interface ApplyDiscountRequest {
65
69
  supplier: string;
66
70
  year: number;
67
71
  month: number;
68
- /** Optional override; falls back to the supplier's active rule. */
72
+ /** Percentage over the supplier's period invoice total. */
69
73
  percentage?: number;
74
+ /** Fixed discount amount (takes precedence over percentage). */
75
+ amount?: number;
76
+ }
77
+ /**
78
+ * Mark several payment items at once (e.g. "pagar todo TELVET").
79
+ * @example PATCH /api/supplier-payments/mark-bulk
80
+ */
81
+ export interface MarkPaymentsBulkRequest {
82
+ ids: string[];
83
+ status: PaymentStatus;
84
+ paidAt?: string;
85
+ paymentMethod?: string;
70
86
  }
71
87
  export interface CreateSupplierDiscountRuleRequest {
72
88
  supplier: string;
@@ -25,6 +25,8 @@ export interface RecurringPaymentResponse {
25
25
  amountType: RecurringAmountType;
26
26
  amount?: number;
27
27
  payDay: number;
28
+ startDate?: string;
29
+ endDate?: string;
28
30
  isActive: boolean;
29
31
  createdAt: string;
30
32
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "14.9.0",
3
+ "version": "14.11.0",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",