@rentman/rm-core 8.0.0 → 8.0.1-1

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.
@@ -1,7 +1,7 @@
1
- import { ApiEnumApiType, ApiEnumApiTypeTsTypeMapping, ApiEnumItemType, ApiFields, ResponseColumn } from '@rentman/backend-types';
1
+ import { ApiEnumApiType, ApiEnumItemType, ApiFields, ResponseColumn } from '@rentman/backend-types';
2
2
  import moment from 'moment';
3
3
  import { ColumnInfo } from '../classes';
4
- import { FieldMap } from '../types';
4
+ import { ApiEnumApiTypeToTsTypeMap, FieldMap } from '../types';
5
5
  declare type GetChangesResult<ItemTypeType extends ApiEnumItemType = any, ColumnId extends keyof ApiFields[ItemTypeType] = any> = {
6
6
  oldValue: FieldMap<ItemTypeType, [ColumnId]>[ColumnId];
7
7
  newValue: FieldMap<ItemTypeType, [ColumnId]>[ColumnId];
@@ -42,7 +42,7 @@ export declare class ApiFormatter {
42
42
  * @description
43
43
  * Compares the given fields, returns `true` when the fields are equal
44
44
  */
45
- compareFields<ColumnType extends ApiEnumApiType>(columnType: ColumnType, first?: ApiEnumApiTypeTsTypeMapping[ColumnType], second?: ApiEnumApiTypeTsTypeMapping[ColumnType]): boolean;
45
+ compareFields<ColumnType extends ApiEnumApiType>(columnType: ColumnType, first?: ApiEnumApiTypeToTsTypeMap[ColumnType], second?: ApiEnumApiTypeToTsTypeMap[ColumnType]): boolean;
46
46
  compareFloats(a: number, b: number): boolean;
47
47
  compareMomentObjects(first: moment.Moment, second: moment.Moment): boolean;
48
48
  compareDurations(first: moment.Duration, second: moment.Duration): boolean;
@@ -1,4 +1,4 @@
1
- import { ApiQuery as BackendApiQuery, ApiQueryConditionSubQuery } from '@rentman/backend-types';
1
+ import { ApiQuery as BackendApiQuery, ApiQueryConditionInShort, ApiQueryConditionSubQuery } from '@rentman/backend-types';
2
2
  import { ApiQuery, ApiQueryConditionComparator, ApiQueryWithConditions } from '../types';
3
3
  import { QueryParserBase } from './QueryParserBase';
4
4
  export declare enum CONSTANTS {
@@ -15,7 +15,7 @@ export declare class QueryParser extends QueryParserBase<ReturnType> {
15
15
  protected parseSearchQuery(value: any, not?: boolean): ReturnType;
16
16
  protected parseCustomQuery(custom: string, parameters: any, not?: boolean): ReturnType;
17
17
  protected parseCustomParameters(parameters: any): ReturnType;
18
- protected parseSimpleQuery<T extends ApiQueryConditionComparator>(key: T['key'], value: T['value'], comparator?: T['comparator'], not?: T['not']): ReturnType;
18
+ protected parseSimpleQuery<T extends ApiQueryConditionComparator | ApiQueryConditionInShort<any, any>>(key: T['key'], value: T['value'], comparator: T['comparator'] | undefined, not?: T['not']): ReturnType;
19
19
  protected parseLinkedToQuery(linkedTo: any, query?: ApiQuery, reverse?: boolean, not?: boolean): ReturnType;
20
20
  protected parseComplexQuery<T extends ApiQueryWithConditions>(conditions: T['conditions'], operator?: T['operator'], not?: T['not']): ReturnType;
21
21
  private parseConditions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "8.0.0",
3
+ "version": "8.0.1-1",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/index.d.ts",