@temboplus/afloat 0.1.77-beta.13 → 0.1.77-beta.14

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.
@@ -1,5 +1,6 @@
1
1
  import { QueryBuilder } from "@/lib/query/index.js";
2
2
  import { PayoutStatus, PayoutApprovalStatus, PayoutFilters } from "./payout.dtos.js";
3
+ import { Amount } from "@temboplus/frontend-core";
3
4
  /**
4
5
  * Payout-specific query builder that extends the base QueryBuilder
5
6
  * and handles all possible input conversions (DTOs, URL params, etc.)
@@ -41,7 +42,7 @@ export declare class PayoutQuery extends QueryBuilder {
41
42
  whereRejected(): this;
42
43
  wherePaid(): this;
43
44
  whereFailed(): this;
44
- whereAmountBetween(min: number, max: number): this;
45
+ whereAmountBetween(min: Amount, max: Amount): this;
45
46
  wherePayee(payeeName: string): this;
46
47
  whereMsisdn(msisdn: string): this;
47
48
  whereProfileId(profileId: string): this;
@@ -57,7 +58,7 @@ export declare class PayoutQuery extends QueryBuilder {
57
58
  */
58
59
  toFilters(): PayoutFilters;
59
60
  /**
60
- * Convert to URL-safe string parameters
61
+ * Convert to user-friendly URL parameters (for browser URLs)
61
62
  */
62
63
  toUrlParams(): Record<string, string>;
63
64
  /**
@@ -79,7 +80,7 @@ export declare class PayoutQuery extends QueryBuilder {
79
80
  /**
80
81
  * Create new instance with date range
81
82
  */
82
- withDateRange(startDate?: string, endDate?: string): PayoutQuery;
83
+ withDateRange(startDate?: string | Date, endDate?: string | Date): PayoutQuery;
83
84
  /**
84
85
  * Create new instance with status filter
85
86
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/afloat",
3
- "version": "0.1.77-beta.13",
3
+ "version": "0.1.77-beta.14",
4
4
  "description": "A foundational library for Temboplus-Afloat projects.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",