@posx/core 5.5.236 → 5.5.237
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/build/index.d.ts +20 -2
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -2232,9 +2232,9 @@ declare module '@posx/core/types/auto.query.type' {
|
|
|
2232
2232
|
Asc = "asc",
|
|
2233
2233
|
Desc = "desc"
|
|
2234
2234
|
}
|
|
2235
|
-
export type Operator<T> = T extends number ? keyof typeof NumericOperators | keyof typeof NullOperators : T extends string ? keyof typeof StringOperators | keyof typeof NullOperators : keyof typeof NullOperators;
|
|
2235
|
+
export type Operator<T> = T extends number ? keyof typeof NumericOperators | keyof typeof NullOperators : T extends Date ? keyof typeof DateOperators | keyof typeof NullOperators : T extends string ? keyof typeof StringOperators | keyof typeof NullOperators : keyof typeof NullOperators;
|
|
2236
2236
|
export type OperatorValueMap = {
|
|
2237
|
-
[K in Operator<any>]: K extends keyof typeof NumericOperators ? number : K extends keyof typeof StringOperators ? string : K extends keyof typeof MonthOperator ? MonthValues : K extends keyof typeof DayOperator ? string : K extends keyof typeof NullOperators ? boolean : never;
|
|
2237
|
+
[K in Operator<any>]: K extends keyof typeof NumericOperators ? number : K extends keyof typeof DateOperators ? DateOperatorValueMap[K] : K extends keyof typeof StringOperators ? string : K extends keyof typeof MonthOperator ? MonthValues : K extends keyof typeof DayOperator ? string : K extends keyof typeof NullOperators ? boolean : never;
|
|
2238
2238
|
};
|
|
2239
2239
|
export enum NumericOperators {
|
|
2240
2240
|
'>' = 0,
|
|
@@ -2266,6 +2266,24 @@ declare module '@posx/core/types/auto.query.type' {
|
|
|
2266
2266
|
export enum DayOperator {
|
|
2267
2267
|
At = "StartsWith"
|
|
2268
2268
|
}
|
|
2269
|
+
export enum DateOperators {
|
|
2270
|
+
'After' = 0,
|
|
2271
|
+
'OnOrAfter' = 1,
|
|
2272
|
+
'Before' = 2,
|
|
2273
|
+
'OnOrBefore' = 3,
|
|
2274
|
+
'Between' = 4,
|
|
2275
|
+
'StartsWith' = 5,
|
|
2276
|
+
'Contains' = 6
|
|
2277
|
+
}
|
|
2278
|
+
export type DateOperatorValueMap = {
|
|
2279
|
+
'After': string;
|
|
2280
|
+
'OnOrAfter': string;
|
|
2281
|
+
'Before': string;
|
|
2282
|
+
'OnOrBefore': string;
|
|
2283
|
+
'Between': [string, string];
|
|
2284
|
+
'StartsWith': string;
|
|
2285
|
+
'Contains': MonthValues;
|
|
2286
|
+
};
|
|
2269
2287
|
export enum MonthValues {
|
|
2270
2288
|
Jan = "-01-",
|
|
2271
2289
|
Feb = "-02-",
|