@ecodev/natural 55.1.0 → 55.1.1

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 { Literal } from '../types/types';
2
2
  import type { ReadonlyDeep } from 'type-fest';
3
+ import { PaginationInput, Sorting } from './query-variable-manager';
3
4
  /**
4
5
  * Very basic formatting to get only date, without time and ignoring entirely the timezone
5
6
  *
@@ -57,3 +58,15 @@ export declare function mergeOverrideArray(destValue: any, source: any): any;
57
58
  */
58
59
  export declare function copyToClipboard(document: Document, text: string): void;
59
60
  export declare function deepFreeze<T extends Literal>(o: T): ReadonlyDeep<T>;
61
+ /**
62
+ * Return a valid PaginationInput from whatever is available from data. Invalid properties/types will be dropped.
63
+ */
64
+ export declare function validatePagination(data: unknown): PaginationInput | null;
65
+ /**
66
+ * Return a valid Sortings from whatever is available from data. Invalid properties/types will be dropped.
67
+ */
68
+ export declare function validateSorting(data: unknown): Array<Sorting> | null;
69
+ /**
70
+ * Return valid columns from whatever is available from data. Invalid properties/types will be dropped.
71
+ */
72
+ export declare function validateColumns(data: unknown): string[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "55.1.0",
3
+ "version": "55.1.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,