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

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.
@@ -27,7 +27,11 @@ export declare class QueryBuilder {
27
27
  whereLessThan(field: string, value: any): this;
28
28
  whereLessThanOrEqual(field: string, value: any): this;
29
29
  whereBetween(field: string, min: any, max: any): this;
30
- whereDateBetween(startDate?: string | null, endDate?: string | null): this;
30
+ /**
31
+ * Filter by date range with support for Date objects, strings, and null
32
+ * Internally converts to createdAt:gte and createdAt:lte filters
33
+ */
34
+ whereDateBetween(startDate?: string | Date | null, endDate?: string | Date | null): this;
31
35
  addSort(criteria: SortCriteria): this;
32
36
  orderBy(field: string, direction?: SortDirection): this;
33
37
  orderByAsc(field: string): this;
@@ -228,14 +228,14 @@ declare const PayoutFiltersSchema: z.ZodObject<{
228
228
  id?: string | null | undefined;
229
229
  profileId?: string | null | undefined;
230
230
  search?: string | null | undefined;
231
- startDate?: string | null | undefined;
232
- endDate?: string | null | undefined;
233
231
  channel?: string | null | undefined;
234
232
  currencyCode?: string | null | undefined;
235
233
  msisdn?: string | null | undefined;
236
234
  payeeName?: string | null | undefined;
237
235
  partnerReference?: string | null | undefined;
238
236
  approvalStatus?: PayoutApprovalStatus | null | undefined;
237
+ startDate?: string | null | undefined;
238
+ endDate?: string | null | undefined;
239
239
  minAmount?: number | null | undefined;
240
240
  maxAmount?: number | null | undefined;
241
241
  }, {
@@ -243,8 +243,6 @@ declare const PayoutFiltersSchema: z.ZodObject<{
243
243
  id?: string | null | undefined;
244
244
  profileId?: string | null | undefined;
245
245
  search?: string | null | undefined;
246
- startDate?: string | null | undefined;
247
- endDate?: string | null | undefined;
248
246
  page?: number | undefined;
249
247
  limit?: number | undefined;
250
248
  channel?: string | null | undefined;
@@ -255,6 +253,8 @@ declare const PayoutFiltersSchema: z.ZodObject<{
255
253
  approvalStatus?: PayoutApprovalStatus | null | undefined;
256
254
  sortBy?: string | undefined;
257
255
  sortOrder?: "asc" | "desc" | undefined;
256
+ startDate?: string | null | undefined;
257
+ endDate?: string | null | undefined;
258
258
  minAmount?: number | null | undefined;
259
259
  maxAmount?: number | null | undefined;
260
260
  }>;
@@ -286,8 +286,6 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
286
286
  id?: string | undefined;
287
287
  profileId?: string | undefined;
288
288
  search?: string | undefined;
289
- startDate?: string | undefined;
290
- endDate?: string | undefined;
291
289
  page?: number | undefined;
292
290
  limit?: number | undefined;
293
291
  channel?: string | undefined;
@@ -295,6 +293,8 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
295
293
  payeeName?: string | undefined;
296
294
  partnerReference?: string | undefined;
297
295
  approvalStatus?: PayoutApprovalStatus | undefined;
296
+ startDate?: string | undefined;
297
+ endDate?: string | undefined;
298
298
  minAmount?: number | undefined;
299
299
  maxAmount?: number | undefined;
300
300
  }, {
@@ -302,8 +302,6 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
302
302
  id?: string | undefined;
303
303
  profileId?: string | undefined;
304
304
  search?: string | undefined;
305
- startDate?: string | undefined;
306
- endDate?: string | undefined;
307
305
  page?: string | undefined;
308
306
  limit?: string | undefined;
309
307
  channel?: string | undefined;
@@ -313,6 +311,8 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
313
311
  approvalStatus?: string | undefined;
314
312
  sortBy?: string | undefined;
315
313
  sortOrder?: "asc" | "desc" | undefined;
314
+ startDate?: string | undefined;
315
+ endDate?: string | undefined;
316
316
  minAmount?: string | undefined;
317
317
  maxAmount?: string | undefined;
318
318
  }>;
@@ -512,14 +512,14 @@ export declare const PayoutDTOSchemas: {
512
512
  id?: string | null | undefined;
513
513
  profileId?: string | null | undefined;
514
514
  search?: string | null | undefined;
515
- startDate?: string | null | undefined;
516
- endDate?: string | null | undefined;
517
515
  channel?: string | null | undefined;
518
516
  currencyCode?: string | null | undefined;
519
517
  msisdn?: string | null | undefined;
520
518
  payeeName?: string | null | undefined;
521
519
  partnerReference?: string | null | undefined;
522
520
  approvalStatus?: PayoutApprovalStatus | null | undefined;
521
+ startDate?: string | null | undefined;
522
+ endDate?: string | null | undefined;
523
523
  minAmount?: number | null | undefined;
524
524
  maxAmount?: number | null | undefined;
525
525
  }, {
@@ -527,8 +527,6 @@ export declare const PayoutDTOSchemas: {
527
527
  id?: string | null | undefined;
528
528
  profileId?: string | null | undefined;
529
529
  search?: string | null | undefined;
530
- startDate?: string | null | undefined;
531
- endDate?: string | null | undefined;
532
530
  page?: number | undefined;
533
531
  limit?: number | undefined;
534
532
  channel?: string | null | undefined;
@@ -539,6 +537,8 @@ export declare const PayoutDTOSchemas: {
539
537
  approvalStatus?: PayoutApprovalStatus | null | undefined;
540
538
  sortBy?: string | undefined;
541
539
  sortOrder?: "asc" | "desc" | undefined;
540
+ startDate?: string | null | undefined;
541
+ endDate?: string | null | undefined;
542
542
  minAmount?: number | null | undefined;
543
543
  maxAmount?: number | null | undefined;
544
544
  }>;
@@ -567,8 +567,6 @@ export declare const PayoutDTOSchemas: {
567
567
  id?: string | undefined;
568
568
  profileId?: string | undefined;
569
569
  search?: string | undefined;
570
- startDate?: string | undefined;
571
- endDate?: string | undefined;
572
570
  page?: number | undefined;
573
571
  limit?: number | undefined;
574
572
  channel?: string | undefined;
@@ -576,6 +574,8 @@ export declare const PayoutDTOSchemas: {
576
574
  payeeName?: string | undefined;
577
575
  partnerReference?: string | undefined;
578
576
  approvalStatus?: PayoutApprovalStatus | undefined;
577
+ startDate?: string | undefined;
578
+ endDate?: string | undefined;
579
579
  minAmount?: number | undefined;
580
580
  maxAmount?: number | undefined;
581
581
  }, {
@@ -583,8 +583,6 @@ export declare const PayoutDTOSchemas: {
583
583
  id?: string | undefined;
584
584
  profileId?: string | undefined;
585
585
  search?: string | undefined;
586
- startDate?: string | undefined;
587
- endDate?: string | undefined;
588
586
  page?: string | undefined;
589
587
  limit?: string | undefined;
590
588
  channel?: string | undefined;
@@ -594,6 +592,8 @@ export declare const PayoutDTOSchemas: {
594
592
  approvalStatus?: string | undefined;
595
593
  sortBy?: string | undefined;
596
594
  sortOrder?: "asc" | "desc" | undefined;
595
+ startDate?: string | undefined;
596
+ endDate?: string | undefined;
597
597
  minAmount?: string | undefined;
598
598
  maxAmount?: string | undefined;
599
599
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/afloat",
3
- "version": "0.1.77-beta.12",
3
+ "version": "0.1.77-beta.13",
4
4
  "description": "A foundational library for Temboplus-Afloat projects.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",