@posx/core 5.5.237 → 5.5.241

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 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 | keyof typeof NullOperators : T extends Date ? keyof typeof DateOperators | keyof typeof NullOperators : T extends string ? keyof typeof StringOperators | keyof typeof NullOperators : keyof typeof NullOperators;
2239
+ export type Operator<T> = T extends number ? keyof typeof NumericOperators : T extends string ? keyof typeof StringOperators : never;
2236
2240
  export type OperatorValueMap = {
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;
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
- '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
- };
2287
2263
  export enum MonthValues {
2288
2264
  Jan = "-01-",
2289
2265
  Feb = "-02-",