@posx/core 5.5.238 → 5.5.250
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 +8 -32
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +2 -2
package/build/index.d.ts
CHANGED
|
@@ -2048,6 +2048,10 @@ declare module '@posx/core/test/services/invoice/invoice-discount-test/invoice-d
|
|
|
2048
2048
|
declare module '@posx/core/test/services/invoice/invoice-rounding-test/invoice-rounding.test' {
|
|
2049
2049
|
export {};
|
|
2050
2050
|
|
|
2051
|
+
}
|
|
2052
|
+
declare module '@posx/core/test/services/item/modifier-stock-test/modifier-stock.test' {
|
|
2053
|
+
export {};
|
|
2054
|
+
|
|
2051
2055
|
}
|
|
2052
2056
|
declare module '@posx/core/test/services/payment/add-payment-test/add-payment.test' {
|
|
2053
2057
|
export {};
|
|
@@ -2232,22 +2236,16 @@ declare module '@posx/core/types/auto.query.type' {
|
|
|
2232
2236
|
Asc = "asc",
|
|
2233
2237
|
Desc = "desc"
|
|
2234
2238
|
}
|
|
2235
|
-
export type Operator<T> = T extends number ? keyof typeof NumericOperators
|
|
2236
|
-
export type OperatorValueMap
|
|
2237
|
-
[K in Operator<
|
|
2239
|
+
export type Operator<T> = T extends number ? keyof typeof NumericOperators : T extends string ? keyof typeof StringOperators : never;
|
|
2240
|
+
export type OperatorValueMap = {
|
|
2241
|
+
[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;
|
|
2238
2242
|
};
|
|
2239
2243
|
export enum NumericOperators {
|
|
2240
2244
|
'>' = 0,
|
|
2241
2245
|
'>=' = 1,
|
|
2242
2246
|
'<' = 2,
|
|
2243
2247
|
'<=' = 3,
|
|
2244
|
-
'=' = 4
|
|
2245
|
-
'GreaterThan' = 5,
|
|
2246
|
-
'GreaterThanOrEqualTo' = 6,
|
|
2247
|
-
'LessThan' = 7,
|
|
2248
|
-
'LessThanOrEqualTo' = 8,
|
|
2249
|
-
'EqualTo' = 9,
|
|
2250
|
-
'NotEqualTo' = 10
|
|
2248
|
+
'=' = 4
|
|
2251
2249
|
}
|
|
2252
2250
|
export enum StringOperators {
|
|
2253
2251
|
'Contains' = 0,
|
|
@@ -2256,34 +2254,12 @@ declare module '@posx/core/types/auto.query.type' {
|
|
|
2256
2254
|
'EndsWith' = 3,
|
|
2257
2255
|
"Like" = 4
|
|
2258
2256
|
}
|
|
2259
|
-
export enum NullOperators {
|
|
2260
|
-
'IsNull' = 0,
|
|
2261
|
-
'IsNotNull' = 1
|
|
2262
|
-
}
|
|
2263
2257
|
export enum MonthOperator {
|
|
2264
2258
|
WithinAMonth = "Contains"
|
|
2265
2259
|
}
|
|
2266
2260
|
export enum DayOperator {
|
|
2267
2261
|
At = "StartsWith"
|
|
2268
2262
|
}
|
|
2269
|
-
export enum DateOperators {
|
|
2270
|
-
'GreaterThan' = 0,
|
|
2271
|
-
'GreaterThanOrEqualTo' = 1,
|
|
2272
|
-
'LessThan' = 2,
|
|
2273
|
-
'LessThanOrEqualTo' = 3,
|
|
2274
|
-
'Between' = 4,
|
|
2275
|
-
'StartsWith' = 5,
|
|
2276
|
-
'Contains' = 6
|
|
2277
|
-
}
|
|
2278
|
-
export type DateOperatorValueMap = {
|
|
2279
|
-
'GreaterThan': string;
|
|
2280
|
-
'GreaterThanOrEqualTo': string;
|
|
2281
|
-
'LessThan': string;
|
|
2282
|
-
'LessThanOrEqualTo': string;
|
|
2283
|
-
'Between': [string, string];
|
|
2284
|
-
'StartsWith': string;
|
|
2285
|
-
'Contains': MonthValues;
|
|
2286
|
-
};
|
|
2287
2263
|
export enum MonthValues {
|
|
2288
2264
|
Jan = "-01-",
|
|
2289
2265
|
Feb = "-02-",
|