@rentman/rm-core 4.0.2 → 4.0.4
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/changelog.md +7 -0
- package/dist/rm-core.js +138 -71
- package/dist/rm-core.min.js +2 -2
- package/dist/types/classes/QueryLocalLinkedToParser.d.ts +17 -0
- package/dist/types/classes/QueryService.d.ts +4 -1
- package/dist/types/classes/cache/transaction/TransactionCollectionHandler.d.ts +1 -1
- package/dist/types/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApiQuery, ItemType } from '../types';
|
|
2
|
+
import { KeyService } from './KeyService';
|
|
3
|
+
import { COMPARATORS_TYPE } from './QueryParser';
|
|
4
|
+
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
5
|
+
export declare class QueryLocalLinkedToParser extends QueryParserBase<boolean> {
|
|
6
|
+
private keyService;
|
|
7
|
+
constructor(keyService: KeyService, query: ApiQuery);
|
|
8
|
+
protected parseEmptyQuery(): boolean;
|
|
9
|
+
protected parseSubQuery(_key: string, subQuery: object, _not?: boolean): boolean;
|
|
10
|
+
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): boolean;
|
|
11
|
+
protected parseSearchQuery(_value: any, _not: boolean): boolean;
|
|
12
|
+
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): boolean;
|
|
13
|
+
protected parseSimpleQuery(_key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): boolean;
|
|
14
|
+
protected parseLinkedToQuery(_linkedTo: any, query?: ApiQuery, _reverse?: boolean, not?: boolean): boolean;
|
|
15
|
+
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
16
|
+
private parseConditions;
|
|
17
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ApiQuery, EntryParentNull, ItemId } from '../types';
|
|
2
|
+
import { KeyService } from './KeyService';
|
|
2
3
|
import { COMPARATORS } from './QueryParserBase';
|
|
3
4
|
export declare class QueryService {
|
|
4
|
-
|
|
5
|
+
private keyService;
|
|
6
|
+
constructor(keyService: KeyService);
|
|
7
|
+
containsLocalLinkedTo(query: ApiQuery): boolean;
|
|
5
8
|
addAndCondition(query: ApiQuery, condition: ApiQuery): ApiQuery;
|
|
6
9
|
addOrCondition(query: ApiQuery, condition: ApiQuery): ApiQuery;
|
|
7
10
|
addParentCondition(query: ApiQuery, parent: EntryParentNull): ApiQuery;
|
|
@@ -40,7 +40,7 @@ export declare class TransactionCollectionHandler extends CollectionHandlerBase
|
|
|
40
40
|
expandCollectionEntries<ItemTypeType extends ItemType>(parentType: ItemType, itemType: ItemTypeType, collections: CollectionResourceParentIdMap, newColumns: ApiRequestColumn[]): PromiseInterface<CollectionResourceParentIdMap>;
|
|
41
41
|
extendCollectionEntries<T extends CollectionResourceParentIdMap>(parentType: ItemType, itemType: ItemType, options: CollectionEntryOptions, queryCallback: QueryCallback, collections: T): PromiseInterface<void>;
|
|
42
42
|
addItemEntriesToCollectionChanges<CollectionEntryType extends CollectionEntry>(collectionEntry: CollectionEntryType, itemEntries: Array<ItemEntry<CollectionEntryType['itemType']>>, isCalledAfterSocketUpdate?: boolean): void;
|
|
43
|
-
isLocal(options: CollectionEntryOptions | ItemEntryOptions): boolean;
|
|
43
|
+
isLocal(options: CollectionEntryOptions | ItemEntryOptions, query: ApiQuery): boolean;
|
|
44
44
|
expandCollectionEntry<CollectionEntryType extends CollectionEntry>(changesDelta: ChangesDelta, collectionEntry: CollectionEntryType, newColumns: ApiRequestColumns): PromiseInterface<CollectionEntryType>;
|
|
45
45
|
/**
|
|
46
46
|
* @description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionEntryService, ColumnHandler, ColumnUtil, KeyService } from '../classes';
|
|
1
|
+
import { CollectionEntryService, ColumnHandler, ColumnUtil, KeyService, QueryService } from '../classes';
|
|
2
2
|
import { ChangesDeltaFactory, CollectionCacheFactory, CollectionMatcherFactory, ColumnExpansionFactory, ColumnSubsetCacheFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
3
|
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
4
4
|
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
@@ -17,4 +17,5 @@ export interface TransactionCollectionHandlerDependencyInterface {
|
|
|
17
17
|
keyService: KeyService;
|
|
18
18
|
promiseService: PromiseLibraryInterface;
|
|
19
19
|
exceptionHandler: ExceptionHandlerInterface;
|
|
20
|
+
queryService: QueryService;
|
|
20
21
|
}
|