nucleus-core-ts 0.9.785 → 0.9.786

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,3 +1,4 @@
1
+ import type { FilterCondition, SortCondition } from '../../../types';
1
2
  import type { IntegrationEndpoint, IntegrationMapping, IntegrationRun, IntegrationSource } from './records';
2
3
  import type { ConnectionTestValue, EndpointSampleValue, RunPlanValue, RunProgressValue } from './results';
3
4
  /**
@@ -7,21 +8,12 @@ import type { ConnectionTestValue, EndpointSampleValue, RunPlanValue, RunProgres
7
8
  * pages on the client has already fetched everything, which stops being viable
8
9
  * at the first customer with real data.
9
10
  */
10
- /** One server-side filter condition, as the entity API reads it. */
11
- export type ListFilterCondition = {
12
- field?: string;
13
- operator: string;
14
- value?: unknown;
15
- };
16
11
  export type ListQuery = {
17
12
  page?: number;
18
13
  limit?: number;
19
14
  search?: string;
20
- sort?: {
21
- field: string;
22
- direction: 'asc' | 'desc';
23
- }[];
24
- filters?: ListFilterCondition[];
15
+ sort?: SortCondition[];
16
+ filters?: FilterCondition[];
25
17
  };
26
18
  export type ListResult<T> = {
27
19
  items: T[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nucleus-core-ts",
3
- "version": "0.9.785",
3
+ "version": "0.9.786",
4
4
  "description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
5
5
  "author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",