@posx/core 5.5.232 → 5.5.236
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 +13 -3
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -2232,16 +2232,22 @@ 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 : T extends string ? keyof typeof StringOperators :
|
|
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;
|
|
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 : never;
|
|
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;
|
|
2238
2238
|
};
|
|
2239
2239
|
export enum NumericOperators {
|
|
2240
2240
|
'>' = 0,
|
|
2241
2241
|
'>=' = 1,
|
|
2242
2242
|
'<' = 2,
|
|
2243
2243
|
'<=' = 3,
|
|
2244
|
-
'=' = 4
|
|
2244
|
+
'=' = 4,
|
|
2245
|
+
'GreaterThan' = 5,
|
|
2246
|
+
'GreaterThanOrEqualTo' = 6,
|
|
2247
|
+
'LessThan' = 7,
|
|
2248
|
+
'LessThanOrEqualTo' = 8,
|
|
2249
|
+
'EqualTo' = 9,
|
|
2250
|
+
'NotEqualTo' = 10
|
|
2245
2251
|
}
|
|
2246
2252
|
export enum StringOperators {
|
|
2247
2253
|
'Contains' = 0,
|
|
@@ -2250,6 +2256,10 @@ declare module '@posx/core/types/auto.query.type' {
|
|
|
2250
2256
|
'EndsWith' = 3,
|
|
2251
2257
|
"Like" = 4
|
|
2252
2258
|
}
|
|
2259
|
+
export enum NullOperators {
|
|
2260
|
+
'IsNull' = 0,
|
|
2261
|
+
'IsNotNull' = 1
|
|
2262
|
+
}
|
|
2253
2263
|
export enum MonthOperator {
|
|
2254
2264
|
WithinAMonth = "Contains"
|
|
2255
2265
|
}
|