@npm-zenwork/tax-remittance-ui 0.13.1 → 0.14.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.
@@ -14,7 +14,7 @@ export interface GetStatePaymentsQuery {
14
14
  pageNumber?: number;
15
15
  pageSize?: number;
16
16
  }
17
- export declare function getStatePaymentStates(signal?: AbortSignal): Promise<StatePaymentStateOption[]>;
17
+ export declare function getStatePaymentStates(entityId?: number | null, signal?: AbortSignal): Promise<StatePaymentStateOption[]>;
18
18
  export declare function getStatePaymentReasons(entityId: number, state: string, signal?: AbortSignal): Promise<StatePaymentReasonOption[]>;
19
19
  export declare function getStatePaymentValidationMetadata(entityId: number, state: string, reason: string, signal?: AbortSignal): Promise<StatePaymentFormMetadata>;
20
20
  export declare function getStatePaymentFormReferences(entityId: number, state: string, reason: string, signal?: AbortSignal): Promise<StatePaymentFormReferences>;
@@ -11,7 +11,8 @@ import { StatePaymentStateOption } from '../../types/statePayment';
11
11
  */
12
12
  export declare function formatJurisdictionLabel(raw: string, states: StatePaymentStateOption[]): string;
13
13
  /**
14
- * Formatter for jurisdiction labels, backed by the state list the payment form
15
- * already caches — no extra request on the dashboard or payments table.
14
+ * Formatter for jurisdiction labels. Always fetches the unfiltered catalog (no entityId) —
15
+ * this labels states on existing payments/dashboard rows, which may include a state since
16
+ * hidden from the picker for some account type, so it must never come back empty for one.
16
17
  */
17
18
  export declare function useJurisdictionLabel(): (raw: string) => string;