next-data-kit 8.1.0 → 8.2.0
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/{action-DdkPkUFP.d.cts → action-DCmAhOQa.d.cts} +2 -4
- package/dist/{action-DdkPkUFP.d.ts → action-DCmAhOQa.d.ts} +2 -4
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/next-data-kit.d.ts +2 -4
- package/dist/types/next-data-kit.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -91,18 +91,16 @@ type TFilterConfig = {
|
|
|
91
91
|
/**
|
|
92
92
|
* Custom filter configuration
|
|
93
93
|
* Allows defining custom filter functions for specific filter keys
|
|
94
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
95
94
|
*/
|
|
96
95
|
type TFilterCustomConfig<T = unknown> = {
|
|
97
|
-
[id: string]: (data:
|
|
96
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
98
97
|
};
|
|
99
98
|
/**
|
|
100
99
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
101
100
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
102
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
103
101
|
*/
|
|
104
102
|
type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
105
|
-
[id: string]: (data:
|
|
103
|
+
[id: string]: (data: unknown) => TFilter;
|
|
106
104
|
};
|
|
107
105
|
/**
|
|
108
106
|
* React Data Kit server action input
|
|
@@ -91,18 +91,16 @@ type TFilterConfig = {
|
|
|
91
91
|
/**
|
|
92
92
|
* Custom filter configuration
|
|
93
93
|
* Allows defining custom filter functions for specific filter keys
|
|
94
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
95
94
|
*/
|
|
96
95
|
type TFilterCustomConfig<T = unknown> = {
|
|
97
|
-
[id: string]: (data:
|
|
96
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
98
97
|
};
|
|
99
98
|
/**
|
|
100
99
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
101
100
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
102
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
103
101
|
*/
|
|
104
102
|
type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
105
|
-
[id: string]: (data:
|
|
103
|
+
[id: string]: (data: unknown) => TFilter;
|
|
106
104
|
};
|
|
107
105
|
/**
|
|
108
106
|
* React Data Kit server action input
|
package/dist/index.d.cts
CHANGED
|
@@ -94,18 +94,16 @@ type TFilterConfig = {
|
|
|
94
94
|
/**
|
|
95
95
|
* Custom filter configuration
|
|
96
96
|
* Allows defining custom filter functions for specific filter keys
|
|
97
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
98
97
|
*/
|
|
99
98
|
type TFilterCustomConfig<T = unknown> = {
|
|
100
|
-
[id: string]: (data:
|
|
99
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
101
100
|
};
|
|
102
101
|
/**
|
|
103
102
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
104
103
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
105
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
106
104
|
*/
|
|
107
105
|
type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
108
|
-
[id: string]: (data:
|
|
106
|
+
[id: string]: (data: unknown) => TFilter;
|
|
109
107
|
};
|
|
110
108
|
/**
|
|
111
109
|
* React Data Kit server action input
|
package/dist/index.d.ts
CHANGED
|
@@ -94,18 +94,16 @@ type TFilterConfig = {
|
|
|
94
94
|
/**
|
|
95
95
|
* Custom filter configuration
|
|
96
96
|
* Allows defining custom filter functions for specific filter keys
|
|
97
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
98
97
|
*/
|
|
99
98
|
type TFilterCustomConfig<T = unknown> = {
|
|
100
|
-
[id: string]: (data:
|
|
99
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
101
100
|
};
|
|
102
101
|
/**
|
|
103
102
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
104
103
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
105
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
106
104
|
*/
|
|
107
105
|
type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
108
|
-
[id: string]: (data:
|
|
106
|
+
[id: string]: (data: unknown) => TFilter;
|
|
109
107
|
};
|
|
110
108
|
/**
|
|
111
109
|
* React Data Kit server action input
|
package/dist/server.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { T as TMongooseOptions, a as TExtractDocType, b as TDataKitResult, c as TAdapterOptions, d as TMongoModel, e as TMongoFilterQuery, f as TFilterCustomConfigWithFilter, g as TSortOptions, h as TDataKitAdapter, i as TPaginationInfo } from './action-
|
|
3
|
-
export { k as TDataKitInput, m as TFilterConfig, l as TFilterCustomConfig, j as TSortOrder } from './action-
|
|
2
|
+
import { T as TMongooseOptions, a as TExtractDocType, b as TDataKitResult, c as TAdapterOptions, d as TMongoModel, e as TMongoFilterQuery, f as TFilterCustomConfigWithFilter, g as TSortOptions, h as TDataKitAdapter, i as TPaginationInfo } from './action-DCmAhOQa.cjs';
|
|
3
|
+
export { k as TDataKitInput, m as TFilterConfig, l as TFilterCustomConfig, j as TSortOrder } from './action-DCmAhOQa.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { T as TMongooseOptions, a as TExtractDocType, b as TDataKitResult, c as TAdapterOptions, d as TMongoModel, e as TMongoFilterQuery, f as TFilterCustomConfigWithFilter, g as TSortOptions, h as TDataKitAdapter, i as TPaginationInfo } from './action-
|
|
3
|
-
export { k as TDataKitInput, m as TFilterConfig, l as TFilterCustomConfig, j as TSortOrder } from './action-
|
|
2
|
+
import { T as TMongooseOptions, a as TExtractDocType, b as TDataKitResult, c as TAdapterOptions, d as TMongoModel, e as TMongoFilterQuery, f as TFilterCustomConfigWithFilter, g as TSortOptions, h as TDataKitAdapter, i as TPaginationInfo } from './action-DCmAhOQa.js';
|
|
3
|
+
export { k as TDataKitInput, m as TFilterConfig, l as TFilterCustomConfig, j as TSortOrder } from './action-DCmAhOQa.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as TSortEntry, m as TFilterConfig, k as TDataKitInput, o as TFilterConfiguration, b as TDataKitResult } from '../action-
|
|
2
|
-
export { c as TAdapterOptions, r as TBaseOptions, h as TDataKitAdapter, a as TExtractDocType, l as TFilterCustomConfig, f as TFilterCustomConfigWithFilter, p as TMongoFilterOperators, e as TMongoFilterQuery, d as TMongoModel, q as TMongoRootFilterOperators, T as TMongooseOptions, i as TPaginationInfo, g as TSortOptions, j as TSortOrder } from '../action-
|
|
1
|
+
import { n as TSortEntry, m as TFilterConfig, k as TDataKitInput, o as TFilterConfiguration, b as TDataKitResult } from '../action-DCmAhOQa.cjs';
|
|
2
|
+
export { c as TAdapterOptions, r as TBaseOptions, h as TDataKitAdapter, a as TExtractDocType, l as TFilterCustomConfig, f as TFilterCustomConfigWithFilter, p as TMongoFilterOperators, e as TMongoFilterQuery, d as TMongoModel, q as TMongoRootFilterOperators, T as TMongooseOptions, i as TPaginationInfo, g as TSortOptions, j as TSortOrder } from '../action-DCmAhOQa.cjs';
|
|
3
3
|
import 'mongoose';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -33,18 +33,16 @@ export type TFilterConfig = {
|
|
|
33
33
|
/**
|
|
34
34
|
* Custom filter configuration
|
|
35
35
|
* Allows defining custom filter functions for specific filter keys
|
|
36
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
37
36
|
*/
|
|
38
37
|
export type TFilterCustomConfig<T = unknown> = {
|
|
39
|
-
[id: string]: (data:
|
|
38
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
40
39
|
};
|
|
41
40
|
/**
|
|
42
41
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
43
42
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
44
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
45
43
|
*/
|
|
46
44
|
export type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
47
|
-
[id: string]: (data:
|
|
45
|
+
[id: string]: (data: unknown) => TFilter;
|
|
48
46
|
};
|
|
49
47
|
/**
|
|
50
48
|
* React Data Kit server action input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-data-kit.d.ts","sourceRoot":"","sources":["../../src/types/next-data-kit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KACzB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MA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