@npm-zenwork/tax-remittance-ui 0.5.1 → 0.5.2
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.
- package/dist/api/entities.d.ts +8 -0
- package/dist/components/payments/PaymentRowMenu.d.ts +1 -1
- package/dist/components/payments/federalTaxPeriodRules.d.ts +7 -0
- package/dist/components/payments/remittancePaymentMappers.d.ts +5 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4384 -4317
- package/dist/index.mjs.map +1 -1
- package/dist/lib/entityStatus.d.ts +12 -0
- package/dist/types/statePayment.d.ts +4 -4
- package/package.json +1 -1
package/dist/api/entities.d.ts
CHANGED
|
@@ -17,4 +17,12 @@ interface CreateEntityDetailsResponse {
|
|
|
17
17
|
export declare function getAllMyEntities(): Promise<EntityDetailsResponse[]>;
|
|
18
18
|
export declare function createEntity(request: CreateEntityDetailsRequest): Promise<CreateEntityDetailsResponse>;
|
|
19
19
|
export declare function updateEntity(entityId: number, request: UpdateEntityDetailsRequest): Promise<EntityDetailsResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Activates / deactivates an entity.
|
|
22
|
+
*
|
|
23
|
+
* The same PATCH endpoint as updateEntity — it merges only the fields present
|
|
24
|
+
* in the body (EntitiesController.Update), so status travels on its own rather
|
|
25
|
+
* than round-tripping the whole profile.
|
|
26
|
+
*/
|
|
27
|
+
export declare function updateEntityStatus(entityId: number, status: string): Promise<EntityDetailsResponse>;
|
|
20
28
|
export {};
|
|
@@ -9,6 +9,6 @@ interface PaymentRowMenuProps {
|
|
|
9
9
|
isSubmitting?: boolean;
|
|
10
10
|
isViewPdfLoading?: boolean;
|
|
11
11
|
}
|
|
12
|
-
/** Vertical-dots row menu
|
|
12
|
+
/** Vertical-dots row menu - holds the actions available for the row's status. */
|
|
13
13
|
export declare function PaymentRowMenu(props: PaymentRowMenuProps): import("react").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -9,3 +9,10 @@ export declare function getTaxPeriodYearBounds(): {
|
|
|
9
9
|
minYear: number;
|
|
10
10
|
maxYear: number;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* How a federal form's tax period should be read back. The form dictates the cadence:
|
|
14
|
+
* only 720/941 file per quarter, the annual forms (940, 943, 945, CT-1, …) file once for
|
|
15
|
+
* the whole tax year even though their period code carries the filing month.
|
|
16
|
+
*/
|
|
17
|
+
export type FederalTaxPeriodKind = 'quarterly' | 'annual' | 'monthly';
|
|
18
|
+
export declare function getTaxPeriodKindForTaxForm(taxFormType: string | null | undefined): FederalTaxPeriodKind;
|
|
@@ -18,7 +18,11 @@ export interface RemittancePaymentRow {
|
|
|
18
18
|
* gates whether the list's row-level "Submit & Pay" may submit directly (see PaymentsPage). */
|
|
19
19
|
isAuthorized: boolean;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* `taxFormType` is what makes a `YYYYMM` period readable: 202612 is Q4 on a 941 but the whole
|
|
23
|
+
* 2026 tax year on a 940. Without it the month is shown as-is rather than guessed at.
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatTaxPeriod(taxPeriod: string | null | undefined, taxFormType?: string | null): string;
|
|
22
26
|
export declare function mapRemittancePaymentToRow(payment: {
|
|
23
27
|
id: number;
|
|
24
28
|
category: 'federal' | 'state';
|