@rentman/rm-core 7.0.6 → 7.0.7
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 +824 -820
- package/dist/rm-core.js +9932 -9910
- package/dist/rm-core.min.js +1 -1
- package/dist/types/classes/ApiFormatter.d.ts +65 -65
- package/dist/types/classes/ApiRequestService.d.ts +20 -20
- package/dist/types/classes/ApiResponseProcessor.d.ts +31 -31
- package/dist/types/classes/ChangesCompilation.d.ts +34 -34
- package/dist/types/classes/ChangesDelta.d.ts +61 -61
- package/dist/types/classes/ChangesDeltaBase.d.ts +51 -51
- package/dist/types/classes/ChangesProcessor.d.ts +47 -47
- package/dist/types/classes/CollectionEntryService.d.ts +26 -26
- package/dist/types/classes/CollectionMatcherBase.d.ts +21 -21
- package/dist/types/classes/CollectionMatcherCachedCollectionProcessor.d.ts +31 -31
- package/dist/types/classes/CollectionResourceService.d.ts +7 -7
- package/dist/types/classes/ColumnCache.d.ts +21 -21
- package/dist/types/classes/ColumnExpansion.d.ts +22 -22
- package/dist/types/classes/ColumnHandler.d.ts +21 -21
- package/dist/types/classes/ColumnInfo.d.ts +14 -14
- package/dist/types/classes/ColumnSet.d.ts +38 -38
- package/dist/types/classes/ColumnSubsetCache.d.ts +10 -10
- package/dist/types/classes/ColumnUtil.d.ts +99 -99
- package/dist/types/classes/ConversionMapService.d.ts +27 -27
- package/dist/types/classes/CreateRequest.d.ts +19 -19
- package/dist/types/classes/CreatedChangesDelta.d.ts +16 -16
- package/dist/types/classes/InternalChangesDelta.d.ts +39 -39
- package/dist/types/classes/ItemCache.d.ts +29 -29
- package/dist/types/classes/ItemCreateService.d.ts +24 -24
- package/dist/types/classes/ItemEntryService.d.ts +34 -34
- package/dist/types/classes/KeyService.d.ts +17 -17
- package/dist/types/classes/LockService.d.ts +32 -32
- package/dist/types/classes/ModuleChangesCompilation.d.ts +18 -18
- package/dist/types/classes/QueryColumnExtractor.d.ts +20 -20
- package/dist/types/classes/QueryContainsLocalIdParser.d.ts +17 -17
- package/dist/types/classes/QueryLinkedToParser.d.ts +16 -16
- package/dist/types/classes/QueryLocallyMatchableParser.d.ts +19 -19
- package/dist/types/classes/QueryMatcher.d.ts +18 -18
- package/dist/types/classes/QueryParser.d.ts +24 -24
- package/dist/types/classes/QueryParserBase.d.ts +29 -29
- package/dist/types/classes/QueryParserIdUpdater.d.ts +16 -16
- package/dist/types/classes/QueryService.d.ts +18 -18
- package/dist/types/classes/RequestBuffer.d.ts +28 -28
- package/dist/types/classes/RequestBufferManager.d.ts +25 -25
- package/dist/types/classes/RequestColumnExpansion.d.ts +15 -15
- package/dist/types/classes/SocketMessageHandler.d.ts +39 -39
- package/dist/types/classes/TemplateCache.d.ts +66 -66
- package/dist/types/classes/Util.d.ts +31 -31
- package/dist/types/classes/cache/AbstractCache.d.ts +103 -103
- package/dist/types/classes/cache/CachedQueryHandlerBase.d.ts +74 -74
- package/dist/types/classes/cache/CollectionMatcherCachedQueryProcessor.d.ts +35 -35
- package/dist/types/classes/cache/ItemHandlerBase.d.ts +105 -105
- package/dist/types/classes/cache/server/ServerCache.d.ts +82 -82
- package/dist/types/classes/cache/server/ServerCachedQueryHandler.d.ts +34 -34
- package/dist/types/classes/cache/server/ServerItemHandler.d.ts +52 -52
- package/dist/types/classes/cache/transaction/TransactionCache.d.ts +324 -324
- package/dist/types/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +23 -23
- package/dist/types/classes/cache/transaction/TransactionCollectionHandler.d.ts +28 -28
- package/dist/types/classes/cache/transaction/TransactionEventHandler.d.ts +24 -24
- package/dist/types/classes/cache/transaction/TransactionItemHandler.d.ts +90 -90
- package/dist/types/classes/cache/transaction/TransactionValidator.d.ts +34 -34
- package/dist/types/classes/index.d.ts +46 -46
- package/dist/types/constants.d.ts +7 -7
- package/dist/types/core.d.ts +51 -51
- package/dist/types/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/types/factories/ChangesCompilationFactory.d.ts +6 -6
- package/dist/types/factories/ChangesDeltaFactory.d.ts +13 -13
- package/dist/types/factories/ChangesProcessorFactory.d.ts +22 -22
- package/dist/types/factories/CollectionEntryFactory.d.ts +14 -14
- package/dist/types/factories/CollectionMatcherFactory.d.ts +19 -19
- package/dist/types/factories/CollectionResourceFactory.d.ts +22 -22
- package/dist/types/factories/ColumnExpansionFactory.d.ts +8 -8
- package/dist/types/factories/ColumnInfoFactory.d.ts +7 -7
- package/dist/types/factories/ColumnSetFactory.d.ts +19 -19
- package/dist/types/factories/ColumnSubsetCacheFactory.d.ts +7 -7
- package/dist/types/factories/CreateRequestFactory.d.ts +11 -11
- package/dist/types/factories/ItemCacheFactory.d.ts +8 -8
- package/dist/types/factories/ItemEntryFactory.d.ts +15 -15
- package/dist/types/factories/ItemResourceFactory.d.ts +14 -14
- package/dist/types/factories/ModuleChangesCompilationFactory.d.ts +5 -5
- package/dist/types/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/types/factories/QueryParserFactory.d.ts +6 -6
- package/dist/types/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/types/factories/TemplateFactory.d.ts +10 -10
- package/dist/types/factories/TransactionCacheFactory.d.ts +15 -15
- package/dist/types/factories/index.d.ts +21 -21
- package/dist/types/index.d.ts +7 -7
- package/dist/types/interfaces/AbstractCacheDependencyInterface.d.ts +43 -43
- package/dist/types/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- package/dist/types/interfaces/AuthInterface.d.ts +9 -9
- package/dist/types/interfaces/ErrorHandlerInterface.d.ts +5 -5
- package/dist/types/interfaces/ExceptionHandlerInterface.d.ts +3 -3
- package/dist/types/interfaces/LinkTreeServiceInterface.d.ts +4 -4
- package/dist/types/interfaces/PromiseLibraryInterface.d.ts +25 -25
- package/dist/types/interfaces/ServerCacheDependencyInterface.d.ts +7 -7
- package/dist/types/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/types/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +20 -20
- package/dist/types/interfaces/TransactionItemHandlerDependencyInterface.d.ts +26 -26
- package/dist/types/interfaces/index.d.ts +11 -11
- package/dist/types/models/CollectionEntry.d.ts +23 -23
- package/dist/types/models/CollectionOptions.d.ts +18 -18
- package/dist/types/models/CollectionResource.d.ts +77 -72
- package/dist/types/models/ItemEntry.d.ts +19 -19
- package/dist/types/models/ItemEntryOptions.d.ts +8 -8
- package/dist/types/models/ItemResource.d.ts +84 -84
- package/dist/types/models/Template.d.ts +11 -11
- package/dist/types/models/index.d.ts +7 -7
- package/dist/types/types/ItemTypesCollection.d.ts +262 -262
- package/dist/types/types/PromiseInterface.d.ts +2 -2
- package/dist/types/types/index.d.ts +2 -2
- package/package.json +36 -36
- package/readme.md +15 -15
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ApiFormatter, CreateCompilation, KeyService } from '../classes';
|
|
2
|
-
import { RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { CreateRequestEntry, ItemType } from '../types';
|
|
4
|
-
import { TransactionCache } from './cache/transaction/TransactionCache';
|
|
5
|
-
export declare class CreateRequest<ItemTypeType extends ItemType> {
|
|
6
|
-
private apiFormatter;
|
|
7
|
-
private keyService;
|
|
8
|
-
private requestColumnExpansionFactory;
|
|
9
|
-
private compilation;
|
|
10
|
-
private transaction;
|
|
11
|
-
private breakupByParent;
|
|
12
|
-
requests: Array<CreateRequestEntry<ItemTypeType>>;
|
|
13
|
-
constructor(apiFormatter: ApiFormatter, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory, compilation: CreateCompilation, transaction: TransactionCache, breakupByParent?: boolean);
|
|
14
|
-
finalizeRequest(requestResource: CreateRequestEntry<ItemTypeType>): CreateRequestEntry<ItemTypeType>;
|
|
15
|
-
setRequestParent(parentType: ItemType, requestEntry: CreateRequestEntry<ItemTypeType>): boolean;
|
|
16
|
-
run(): CreateRequestEntry<ItemTypeType>[];
|
|
17
|
-
initializeRequest(): CreateRequestEntry<ItemTypeType>;
|
|
18
|
-
private extendRequest;
|
|
19
|
-
}
|
|
1
|
+
import { ApiFormatter, CreateCompilation, KeyService } from '../classes';
|
|
2
|
+
import { RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
import { CreateRequestEntry, ItemType } from '../types';
|
|
4
|
+
import { TransactionCache } from './cache/transaction/TransactionCache';
|
|
5
|
+
export declare class CreateRequest<ItemTypeType extends ItemType> {
|
|
6
|
+
private apiFormatter;
|
|
7
|
+
private keyService;
|
|
8
|
+
private requestColumnExpansionFactory;
|
|
9
|
+
private compilation;
|
|
10
|
+
private transaction;
|
|
11
|
+
private breakupByParent;
|
|
12
|
+
requests: Array<CreateRequestEntry<ItemTypeType>>;
|
|
13
|
+
constructor(apiFormatter: ApiFormatter, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory, compilation: CreateCompilation, transaction: TransactionCache, breakupByParent?: boolean);
|
|
14
|
+
finalizeRequest(requestResource: CreateRequestEntry<ItemTypeType>): CreateRequestEntry<ItemTypeType>;
|
|
15
|
+
setRequestParent(parentType: ItemType, requestEntry: CreateRequestEntry<ItemTypeType>): boolean;
|
|
16
|
+
run(): CreateRequestEntry<ItemTypeType>[];
|
|
17
|
+
initializeRequest(): CreateRequestEntry<ItemTypeType>;
|
|
18
|
+
private extendRequest;
|
|
19
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FieldMap, ItemId, ItemType } from '../types';
|
|
2
|
-
import { ColumnSet } from './ColumnSet';
|
|
3
|
-
export declare type ChangesDeltaItemCreateDelta<ItemTypeType extends ItemType = any> = {
|
|
4
|
-
itemId: ItemId;
|
|
5
|
-
fields: FieldMap<ItemTypeType>;
|
|
6
|
-
columns: ColumnSet<ItemTypeType>;
|
|
7
|
-
};
|
|
8
|
-
export declare class CreatedChangesDelta {
|
|
9
|
-
private tuples;
|
|
10
|
-
constructor();
|
|
11
|
-
remove(itemType: ItemType, itemId: ItemId): boolean;
|
|
12
|
-
add<ItemTypeType extends ItemType>(itemId: ItemId, fields: FieldMap<ItemTypeType>, columns: ColumnSet<ItemTypeType>): void;
|
|
13
|
-
isEmpty(): boolean;
|
|
14
|
-
forEach(callback: (tuple: ChangesDeltaItemCreateDelta, itemType: ItemType, index: number) => void): void;
|
|
15
|
-
contains(itemType: ItemType): boolean;
|
|
16
|
-
}
|
|
1
|
+
import { FieldMap, ItemId, ItemType } from '../types';
|
|
2
|
+
import { ColumnSet } from './ColumnSet';
|
|
3
|
+
export declare type ChangesDeltaItemCreateDelta<ItemTypeType extends ItemType = any> = {
|
|
4
|
+
itemId: ItemId;
|
|
5
|
+
fields: FieldMap<ItemTypeType>;
|
|
6
|
+
columns: ColumnSet<ItemTypeType>;
|
|
7
|
+
};
|
|
8
|
+
export declare class CreatedChangesDelta {
|
|
9
|
+
private tuples;
|
|
10
|
+
constructor();
|
|
11
|
+
remove(itemType: ItemType, itemId: ItemId): boolean;
|
|
12
|
+
add<ItemTypeType extends ItemType>(itemId: ItemId, fields: FieldMap<ItemTypeType>, columns: ColumnSet<ItemTypeType>): void;
|
|
13
|
+
isEmpty(): boolean;
|
|
14
|
+
forEach(callback: (tuple: ChangesDeltaItemCreateDelta, itemType: ItemType, index: number) => void): void;
|
|
15
|
+
contains(itemType: ItemType): boolean;
|
|
16
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { ItemEntry } from '../models';
|
|
2
|
-
import { EntryParent, FieldMap, ItemIdConversionMap, ItemType } from '../types';
|
|
3
|
-
import { ChangesDeltaBase } from './ChangesDeltaBase';
|
|
4
|
-
import { ItemEntryService } from './ItemEntryService';
|
|
5
|
-
export declare type InternalCreateDelta<ItemTypeType extends ItemType = any> = {
|
|
6
|
-
entry: ItemEntry<ItemTypeType>;
|
|
7
|
-
fields: FieldMap<ItemTypeType>;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @description
|
|
11
|
-
* ChangesDelta used internally by the core
|
|
12
|
-
*
|
|
13
|
-
* ----------
|
|
14
|
-
*
|
|
15
|
-
* The difference between {@link InternalChangesDelta InternalChangesDelta} and {@link ChangesDelta ChangesDelta} is that the InternalChangesDelta
|
|
16
|
-
* assumes 'created' entries are already existing, so it has a different format.
|
|
17
|
-
*
|
|
18
|
-
* Use this when calling {@link TransactionCache.applyChangesFromParent applyChangesFromParent} and {@link TransactionCache.applyChangesFromChild applyChangesFromChild}
|
|
19
|
-
*/
|
|
20
|
-
export declare class InternalChangesDelta extends ChangesDeltaBase {
|
|
21
|
-
created: {
|
|
22
|
-
[itemEntryId: string]: InternalCreateDelta;
|
|
23
|
-
};
|
|
24
|
-
moved: {
|
|
25
|
-
[itemEntryId: number]: {
|
|
26
|
-
entry: ItemEntry;
|
|
27
|
-
to: EntryParent;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
itemIdConversionMap: ItemIdConversionMap;
|
|
31
|
-
constructor(itemEntryService: ItemEntryService);
|
|
32
|
-
setItemCreated<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, fields: FieldMap<ItemTypeType>): void;
|
|
33
|
-
/**
|
|
34
|
-
* @remark
|
|
35
|
-
* Parent fields are non-writable so we need to keep track of moved entries another way (to do a linkTo request)
|
|
36
|
-
*/
|
|
37
|
-
setItemMoved(entry: ItemEntry, to: EntryParent): void;
|
|
38
|
-
isEmpty(): boolean;
|
|
39
|
-
}
|
|
1
|
+
import { ItemEntry } from '../models';
|
|
2
|
+
import { EntryParent, FieldMap, ItemIdConversionMap, ItemType } from '../types';
|
|
3
|
+
import { ChangesDeltaBase } from './ChangesDeltaBase';
|
|
4
|
+
import { ItemEntryService } from './ItemEntryService';
|
|
5
|
+
export declare type InternalCreateDelta<ItemTypeType extends ItemType = any> = {
|
|
6
|
+
entry: ItemEntry<ItemTypeType>;
|
|
7
|
+
fields: FieldMap<ItemTypeType>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* ChangesDelta used internally by the core
|
|
12
|
+
*
|
|
13
|
+
* ----------
|
|
14
|
+
*
|
|
15
|
+
* The difference between {@link InternalChangesDelta InternalChangesDelta} and {@link ChangesDelta ChangesDelta} is that the InternalChangesDelta
|
|
16
|
+
* assumes 'created' entries are already existing, so it has a different format.
|
|
17
|
+
*
|
|
18
|
+
* Use this when calling {@link TransactionCache.applyChangesFromParent applyChangesFromParent} and {@link TransactionCache.applyChangesFromChild applyChangesFromChild}
|
|
19
|
+
*/
|
|
20
|
+
export declare class InternalChangesDelta extends ChangesDeltaBase {
|
|
21
|
+
created: {
|
|
22
|
+
[itemEntryId: string]: InternalCreateDelta;
|
|
23
|
+
};
|
|
24
|
+
moved: {
|
|
25
|
+
[itemEntryId: number]: {
|
|
26
|
+
entry: ItemEntry;
|
|
27
|
+
to: EntryParent;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
itemIdConversionMap: ItemIdConversionMap;
|
|
31
|
+
constructor(itemEntryService: ItemEntryService);
|
|
32
|
+
setItemCreated<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, fields: FieldMap<ItemTypeType>): void;
|
|
33
|
+
/**
|
|
34
|
+
* @remark
|
|
35
|
+
* Parent fields are non-writable so we need to keep track of moved entries another way (to do a linkTo request)
|
|
36
|
+
*/
|
|
37
|
+
setItemMoved(entry: ItemEntry, to: EntryParent): void;
|
|
38
|
+
isEmpty(): boolean;
|
|
39
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { QueryMatcherFactory } from '../factories';
|
|
2
|
-
import { ItemEntry } from '../models';
|
|
3
|
-
import { CollectionQuery, ItemEntryParentIdMap, ItemId, ItemType } from '../types';
|
|
4
|
-
import { AbstractCache } from './cache/AbstractCache';
|
|
5
|
-
export declare class ItemCache {
|
|
6
|
-
private queryMatcherFactory;
|
|
7
|
-
private transaction;
|
|
8
|
-
private entries;
|
|
9
|
-
entriesByEntryId: {
|
|
10
|
-
[itemEntryId: number]: ItemEntry;
|
|
11
|
-
};
|
|
12
|
-
constructor(queryMatcherFactory: QueryMatcherFactory, transaction: AbstractCache);
|
|
13
|
-
getByEntryId(itemEntryId: ItemEntry['id']): ItemEntry | undefined;
|
|
14
|
-
some(callback: (itemEntry: ItemEntry<ItemType>) => boolean): boolean;
|
|
15
|
-
getByItemType<ItemTypeType extends ItemType>(itemType: ItemTypeType): ItemEntry<ItemTypeType>[];
|
|
16
|
-
getByQuery<ItemTypeType extends ItemType>(itemType: ItemTypeType, query: CollectionQuery['object']): ItemEntry<ItemTypeType>[];
|
|
17
|
-
getLocalByQuery<ItemTypeType extends ItemType>(itemType: ItemTypeType, query: CollectionQuery['object']): ItemEntry<ItemTypeType>[];
|
|
18
|
-
getByParent<ItemTypeType extends ItemType>(parentType: ItemType, parentId: ItemId, itemType: ItemTypeType): ItemEntry<ItemTypeType>[];
|
|
19
|
-
batchGetLocalByParent<ItemTypeType extends ItemType>(parentType: ItemType, parentIds: ItemId[], itemType: ItemTypeType, additionalQuery: CollectionQuery['object']): ItemEntryParentIdMap<ItemTypeType>;
|
|
20
|
-
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
21
|
-
toArray(): ItemEntry<string>[];
|
|
22
|
-
add<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>): ItemEntry<ItemTypeType>;
|
|
23
|
-
get<ItemTypeType extends ItemType>(itemType: ItemTypeType, itemId: string | ItemId): undefined | ItemEntry<ItemTypeType>;
|
|
24
|
-
contains(itemType: ItemType, itemId: string | ItemId): boolean;
|
|
25
|
-
updateItemId<T extends ItemEntry<any>>(itemEntry: T, oldItemId: string | ItemId): T;
|
|
26
|
-
clear(itemEntry?: ItemEntry<any>): boolean;
|
|
27
|
-
clearByItemId(itemType: ItemType, itemId: ItemId): boolean;
|
|
28
|
-
matchQuery(itemEntry: ItemEntry<any>, query: CollectionQuery['object']): boolean;
|
|
29
|
-
}
|
|
1
|
+
import { QueryMatcherFactory } from '../factories';
|
|
2
|
+
import { ItemEntry } from '../models';
|
|
3
|
+
import { CollectionQuery, ItemEntryParentIdMap, ItemId, ItemType } from '../types';
|
|
4
|
+
import { AbstractCache } from './cache/AbstractCache';
|
|
5
|
+
export declare class ItemCache {
|
|
6
|
+
private queryMatcherFactory;
|
|
7
|
+
private transaction;
|
|
8
|
+
private entries;
|
|
9
|
+
entriesByEntryId: {
|
|
10
|
+
[itemEntryId: number]: ItemEntry;
|
|
11
|
+
};
|
|
12
|
+
constructor(queryMatcherFactory: QueryMatcherFactory, transaction: AbstractCache);
|
|
13
|
+
getByEntryId(itemEntryId: ItemEntry['id']): ItemEntry | undefined;
|
|
14
|
+
some(callback: (itemEntry: ItemEntry<ItemType>) => boolean): boolean;
|
|
15
|
+
getByItemType<ItemTypeType extends ItemType>(itemType: ItemTypeType): ItemEntry<ItemTypeType>[];
|
|
16
|
+
getByQuery<ItemTypeType extends ItemType>(itemType: ItemTypeType, query: CollectionQuery['object']): ItemEntry<ItemTypeType>[];
|
|
17
|
+
getLocalByQuery<ItemTypeType extends ItemType>(itemType: ItemTypeType, query: CollectionQuery['object']): ItemEntry<ItemTypeType>[];
|
|
18
|
+
getByParent<ItemTypeType extends ItemType>(parentType: ItemType, parentId: ItemId, itemType: ItemTypeType): ItemEntry<ItemTypeType>[];
|
|
19
|
+
batchGetLocalByParent<ItemTypeType extends ItemType>(parentType: ItemType, parentIds: ItemId[], itemType: ItemTypeType, additionalQuery: CollectionQuery['object']): ItemEntryParentIdMap<ItemTypeType>;
|
|
20
|
+
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
21
|
+
toArray(): ItemEntry<string>[];
|
|
22
|
+
add<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>): ItemEntry<ItemTypeType>;
|
|
23
|
+
get<ItemTypeType extends ItemType>(itemType: ItemTypeType, itemId: string | ItemId): undefined | ItemEntry<ItemTypeType>;
|
|
24
|
+
contains(itemType: ItemType, itemId: string | ItemId): boolean;
|
|
25
|
+
updateItemId<T extends ItemEntry<any>>(itemEntry: T, oldItemId: string | ItemId): T;
|
|
26
|
+
clear(itemEntry?: ItemEntry<any>): boolean;
|
|
27
|
+
clearByItemId(itemType: ItemType, itemId: ItemId): boolean;
|
|
28
|
+
matchQuery(itemEntry: ItemEntry<any>, query: CollectionQuery['object']): boolean;
|
|
29
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ColumnSetFactory } from '../factories';
|
|
2
|
-
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
-
import { Template } from '../models';
|
|
4
|
-
import { ColumnIdTypeMap, EntryParentNull, FieldMap, FilterItemEntryCallback, ItemId, ItemIdConversionMap, ItemType, ModifyFieldsCallback, PromiseInterface } from '../types';
|
|
5
|
-
import { ChangesDelta } from './ChangesDelta';
|
|
6
|
-
import { ConversionMapService } from './ConversionMapService';
|
|
7
|
-
import { KeyService } from './KeyService';
|
|
8
|
-
import { TemplateCache } from './TemplateCache';
|
|
9
|
-
export declare class ItemCreateService {
|
|
10
|
-
private columnSetFactory;
|
|
11
|
-
private conversionMapService;
|
|
12
|
-
private errorHandler;
|
|
13
|
-
private keyService;
|
|
14
|
-
private promiseService;
|
|
15
|
-
private templateCache;
|
|
16
|
-
constructor(columnSetFactory: ColumnSetFactory, conversionMapService: ConversionMapService, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface, templateCache: TemplateCache);
|
|
17
|
-
/**
|
|
18
|
-
* @description
|
|
19
|
-
* Fetches a new {@link Template template} and sets the items created on the passed {@link ChangesDelta}
|
|
20
|
-
*/
|
|
21
|
-
createItemsFromValues<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap>(changesDelta: ChangesDelta, itemType: ItemTypeType, valuesArray: Array<FieldMap<ItemTypeType, Fields>>, parent?: EntryParentNull): PromiseInterface<void>;
|
|
22
|
-
processTemplate<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap>(changesDelta: ChangesDelta, itemType: ItemTypeType, itemId: ItemId, parent: EntryParentNull, template: Template<ItemTypeType, Fields>, filterItemEntryCallback?: FilterItemEntryCallback, modifyFieldsCallback?: ModifyFieldsCallback): void;
|
|
23
|
-
processTemplateLinkItems<ParentItemType extends ItemType>(changesDelta: ChangesDelta, parentType: ParentItemType, localParentId: ItemId, template: Template<ParentItemType>, itemIdConversion: ItemIdConversionMap, filterItemEntryCallback?: FilterItemEntryCallback, modifyFieldsCallback?: ModifyFieldsCallback): void;
|
|
24
|
-
}
|
|
1
|
+
import { ColumnSetFactory } from '../factories';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
+
import { Template } from '../models';
|
|
4
|
+
import { ColumnIdTypeMap, EntryParentNull, FieldMap, FilterItemEntryCallback, ItemId, ItemIdConversionMap, ItemType, ModifyFieldsCallback, PromiseInterface } from '../types';
|
|
5
|
+
import { ChangesDelta } from './ChangesDelta';
|
|
6
|
+
import { ConversionMapService } from './ConversionMapService';
|
|
7
|
+
import { KeyService } from './KeyService';
|
|
8
|
+
import { TemplateCache } from './TemplateCache';
|
|
9
|
+
export declare class ItemCreateService {
|
|
10
|
+
private columnSetFactory;
|
|
11
|
+
private conversionMapService;
|
|
12
|
+
private errorHandler;
|
|
13
|
+
private keyService;
|
|
14
|
+
private promiseService;
|
|
15
|
+
private templateCache;
|
|
16
|
+
constructor(columnSetFactory: ColumnSetFactory, conversionMapService: ConversionMapService, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface, templateCache: TemplateCache);
|
|
17
|
+
/**
|
|
18
|
+
* @description
|
|
19
|
+
* Fetches a new {@link Template template} and sets the items created on the passed {@link ChangesDelta}
|
|
20
|
+
*/
|
|
21
|
+
createItemsFromValues<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap>(changesDelta: ChangesDelta, itemType: ItemTypeType, valuesArray: Array<FieldMap<ItemTypeType, Fields>>, parent?: EntryParentNull): PromiseInterface<void>;
|
|
22
|
+
processTemplate<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap>(changesDelta: ChangesDelta, itemType: ItemTypeType, itemId: ItemId, parent: EntryParentNull, template: Template<ItemTypeType, Fields>, filterItemEntryCallback?: FilterItemEntryCallback, modifyFieldsCallback?: ModifyFieldsCallback): void;
|
|
23
|
+
processTemplateLinkItems<ParentItemType extends ItemType>(changesDelta: ChangesDelta, parentType: ParentItemType, localParentId: ItemId, template: Template<ParentItemType>, itemIdConversion: ItemIdConversionMap, filterItemEntryCallback?: FilterItemEntryCallback, modifyFieldsCallback?: ModifyFieldsCallback): void;
|
|
24
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { AuthInterface } from '../interfaces';
|
|
2
|
-
import { LinkTreeServiceInterface } from '../interfaces/LinkTreeServiceInterface';
|
|
3
|
-
import { ItemEntry, ItemEntryOptions } from '../models';
|
|
4
|
-
import { EntryParent, EntryParentNull, FieldMap, ItemError, ItemOptionsInterface, ItemType } from '../types';
|
|
5
|
-
export declare class ItemEntryService {
|
|
6
|
-
private authInterface;
|
|
7
|
-
private linkTreeService;
|
|
8
|
-
constructor(authInterface: AuthInterface, linkTreeService: LinkTreeServiceInterface);
|
|
9
|
-
matchParent(oldParent: EntryParentNull, newParent: EntryParentNull): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* @description
|
|
12
|
-
* Gets the fields required to set the parent
|
|
13
|
-
*
|
|
14
|
-
* @remark
|
|
15
|
-
* Opposite of {@link ItemEntryService.getParentByFields ItemEntryService.getParentByFields}
|
|
16
|
-
*/
|
|
17
|
-
getLinkFieldsByParent<ItemTypeType extends ItemType>(parent: EntryParent, itemType: ItemTypeType): Partial<FieldMap<ItemTypeType>>;
|
|
18
|
-
/**
|
|
19
|
-
* @description
|
|
20
|
-
* Gets an {@link EntryParent EntryParent} object from the fields
|
|
21
|
-
*
|
|
22
|
-
* @remark
|
|
23
|
-
* Opposite of {@link ItemEntryService.getLinkFieldsByParent ItemEntryService.getLinkFieldsByParent}
|
|
24
|
-
*/
|
|
25
|
-
getParentByFields<ItemTypeType extends ItemType>(parentType: ItemType, itemEntry: ItemEntry<ItemTypeType>, fields: FieldMap<ItemTypeType>): Partial<FieldMap<ItemTypeType>>;
|
|
26
|
-
getDisplayName<ItemEntryType extends ItemEntry>(itemEntry: ItemEntryType, fields: FieldMap<ItemEntryType['itemType']>): string;
|
|
27
|
-
processOptions(options: ItemOptionsInterface): ItemEntryOptions;
|
|
28
|
-
createUnfoundRemoteItemError(): ItemError;
|
|
29
|
-
createUnfoundLocalItemError(itemType: ItemType): ItemError;
|
|
30
|
-
createExistingLocalItemError(itemType: ItemType): ItemError;
|
|
31
|
-
getFullName(firstName?: string, infix?: string, lastName?: string): string;
|
|
32
|
-
getTitleField(itemType: ItemType): string;
|
|
33
|
-
getLocalDefaultValues(): FieldMap;
|
|
34
|
-
}
|
|
1
|
+
import { AuthInterface } from '../interfaces';
|
|
2
|
+
import { LinkTreeServiceInterface } from '../interfaces/LinkTreeServiceInterface';
|
|
3
|
+
import { ItemEntry, ItemEntryOptions } from '../models';
|
|
4
|
+
import { EntryParent, EntryParentNull, FieldMap, ItemError, ItemOptionsInterface, ItemType } from '../types';
|
|
5
|
+
export declare class ItemEntryService {
|
|
6
|
+
private authInterface;
|
|
7
|
+
private linkTreeService;
|
|
8
|
+
constructor(authInterface: AuthInterface, linkTreeService: LinkTreeServiceInterface);
|
|
9
|
+
matchParent(oldParent: EntryParentNull, newParent: EntryParentNull): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
* Gets the fields required to set the parent
|
|
13
|
+
*
|
|
14
|
+
* @remark
|
|
15
|
+
* Opposite of {@link ItemEntryService.getParentByFields ItemEntryService.getParentByFields}
|
|
16
|
+
*/
|
|
17
|
+
getLinkFieldsByParent<ItemTypeType extends ItemType>(parent: EntryParent, itemType: ItemTypeType): Partial<FieldMap<ItemTypeType>>;
|
|
18
|
+
/**
|
|
19
|
+
* @description
|
|
20
|
+
* Gets an {@link EntryParent EntryParent} object from the fields
|
|
21
|
+
*
|
|
22
|
+
* @remark
|
|
23
|
+
* Opposite of {@link ItemEntryService.getLinkFieldsByParent ItemEntryService.getLinkFieldsByParent}
|
|
24
|
+
*/
|
|
25
|
+
getParentByFields<ItemTypeType extends ItemType>(parentType: ItemType, itemEntry: ItemEntry<ItemTypeType>, fields: FieldMap<ItemTypeType>): Partial<FieldMap<ItemTypeType>>;
|
|
26
|
+
getDisplayName<ItemEntryType extends ItemEntry>(itemEntry: ItemEntryType, fields: FieldMap<ItemEntryType['itemType']>): string;
|
|
27
|
+
processOptions(options: ItemOptionsInterface): ItemEntryOptions;
|
|
28
|
+
createUnfoundRemoteItemError(): ItemError;
|
|
29
|
+
createUnfoundLocalItemError(itemType: ItemType): ItemError;
|
|
30
|
+
createExistingLocalItemError(itemType: ItemType): ItemError;
|
|
31
|
+
getFullName(firstName?: string, infix?: string, lastName?: string): string;
|
|
32
|
+
getTitleField(itemType: ItemType): string;
|
|
33
|
+
getLocalDefaultValues(): FieldMap;
|
|
34
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ItemId, StateKey } from '../types';
|
|
2
|
-
export declare class KeyService {
|
|
3
|
-
private separator;
|
|
4
|
-
private idCounter;
|
|
5
|
-
constructor();
|
|
6
|
-
getSingleKey(itemType: string, itemId: number | string): string;
|
|
7
|
-
getCssKey(...args: any[]): string;
|
|
8
|
-
parseStateKey(stateKey: string): StateKey | null;
|
|
9
|
-
getDuplicateStateKey(itemId: string | number): string;
|
|
10
|
-
getNewStateKey(templateType: string): string;
|
|
11
|
-
getLocalId(): ItemId;
|
|
12
|
-
getLocalDuplicateId(): ItemId;
|
|
13
|
-
getRandomString(): string;
|
|
14
|
-
isLocalId(itemId: ItemId | string): boolean;
|
|
15
|
-
isNewId(itemId: ItemId | string): boolean;
|
|
16
|
-
isDuplicateId(itemId: ItemId | string): boolean;
|
|
17
|
-
}
|
|
1
|
+
import { ItemId, StateKey } from '../types';
|
|
2
|
+
export declare class KeyService {
|
|
3
|
+
private separator;
|
|
4
|
+
private idCounter;
|
|
5
|
+
constructor();
|
|
6
|
+
getSingleKey(itemType: string, itemId: number | string): string;
|
|
7
|
+
getCssKey(...args: any[]): string;
|
|
8
|
+
parseStateKey(stateKey: string): StateKey | null;
|
|
9
|
+
getDuplicateStateKey(itemId: string | number): string;
|
|
10
|
+
getNewStateKey(templateType: string): string;
|
|
11
|
+
getLocalId(): ItemId;
|
|
12
|
+
getLocalDuplicateId(): ItemId;
|
|
13
|
+
getRandomString(): string;
|
|
14
|
+
isLocalId(itemId: ItemId | string): boolean;
|
|
15
|
+
isNewId(itemId: ItemId | string): boolean;
|
|
16
|
+
isDuplicateId(itemId: ItemId | string): boolean;
|
|
17
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ApiRequestService, KeyService } from '../classes';
|
|
2
|
-
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
-
import { ItemEntry } from '../models';
|
|
4
|
-
import { ItemId, PromiseInterface } from '../types';
|
|
5
|
-
export declare type LockToken = {
|
|
6
|
-
isForeign: false;
|
|
7
|
-
id: number;
|
|
8
|
-
token: string;
|
|
9
|
-
} | {
|
|
10
|
-
isForeign: true;
|
|
11
|
-
message: string;
|
|
12
|
-
};
|
|
13
|
-
export declare class LockService {
|
|
14
|
-
private apiRequestService;
|
|
15
|
-
private errorHandler;
|
|
16
|
-
private keyService;
|
|
17
|
-
private promiseService;
|
|
18
|
-
private lockItems;
|
|
19
|
-
private promises;
|
|
20
|
-
constructor(apiRequestService: ApiRequestService, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
21
|
-
getLocks(): LockService['lockItems'];
|
|
22
|
-
hasLock(lockTokenId: ItemId): boolean;
|
|
23
|
-
isLocked(itemEntry: ItemEntry<any>): boolean;
|
|
24
|
-
getMessage(itemEntry: ItemEntry<any>): undefined | string;
|
|
25
|
-
fetchLock(itemEntry: ItemEntry<any>): PromiseInterface<LockToken>;
|
|
26
|
-
deleteLock(itemEntry: ItemEntry<any>): PromiseInterface<void>;
|
|
27
|
-
clearLock(itemEntry: ItemEntry<any>): boolean;
|
|
28
|
-
private requestLock;
|
|
29
|
-
private fetchCachedLock;
|
|
30
|
-
private getValue;
|
|
31
|
-
private setValue;
|
|
32
|
-
}
|
|
1
|
+
import { ApiRequestService, KeyService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from '../models';
|
|
4
|
+
import { ItemId, PromiseInterface } from '../types';
|
|
5
|
+
export declare type LockToken = {
|
|
6
|
+
isForeign: false;
|
|
7
|
+
id: number;
|
|
8
|
+
token: string;
|
|
9
|
+
} | {
|
|
10
|
+
isForeign: true;
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class LockService {
|
|
14
|
+
private apiRequestService;
|
|
15
|
+
private errorHandler;
|
|
16
|
+
private keyService;
|
|
17
|
+
private promiseService;
|
|
18
|
+
private lockItems;
|
|
19
|
+
private promises;
|
|
20
|
+
constructor(apiRequestService: ApiRequestService, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
21
|
+
getLocks(): LockService['lockItems'];
|
|
22
|
+
hasLock(lockTokenId: ItemId): boolean;
|
|
23
|
+
isLocked(itemEntry: ItemEntry<any>): boolean;
|
|
24
|
+
getMessage(itemEntry: ItemEntry<any>): undefined | string;
|
|
25
|
+
fetchLock(itemEntry: ItemEntry<any>): PromiseInterface<LockToken>;
|
|
26
|
+
deleteLock(itemEntry: ItemEntry<any>): PromiseInterface<void>;
|
|
27
|
+
clearLock(itemEntry: ItemEntry<any>): boolean;
|
|
28
|
+
private requestLock;
|
|
29
|
+
private fetchCachedLock;
|
|
30
|
+
private getValue;
|
|
31
|
+
private setValue;
|
|
32
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ApiRequestItemMap, ItemId, ItemType } from '../types';
|
|
2
|
-
import { TransactionCache } from './cache/transaction/TransactionCache';
|
|
3
|
-
export declare type ModuleChangesCompilationResult = {
|
|
4
|
-
itemType: ItemType;
|
|
5
|
-
itemId: ItemId;
|
|
6
|
-
items: ApiRequestItemMap;
|
|
7
|
-
};
|
|
8
|
-
export declare class ModuleChangesCompilation {
|
|
9
|
-
private transaction;
|
|
10
|
-
parentMap: any;
|
|
11
|
-
destination: ApiRequestItemMap;
|
|
12
|
-
constructor(transaction: TransactionCache);
|
|
13
|
-
process(): ModuleChangesCompilationResult;
|
|
14
|
-
private createParentMap;
|
|
15
|
-
private processItems;
|
|
16
|
-
private processItem;
|
|
17
|
-
private getItemsByParent;
|
|
18
|
-
}
|
|
1
|
+
import { ApiRequestItemMap, ItemId, ItemType } from '../types';
|
|
2
|
+
import { TransactionCache } from './cache/transaction/TransactionCache';
|
|
3
|
+
export declare type ModuleChangesCompilationResult = {
|
|
4
|
+
itemType: ItemType;
|
|
5
|
+
itemId: ItemId;
|
|
6
|
+
items: ApiRequestItemMap;
|
|
7
|
+
};
|
|
8
|
+
export declare class ModuleChangesCompilation {
|
|
9
|
+
private transaction;
|
|
10
|
+
parentMap: any;
|
|
11
|
+
destination: ApiRequestItemMap;
|
|
12
|
+
constructor(transaction: TransactionCache);
|
|
13
|
+
process(): ModuleChangesCompilationResult;
|
|
14
|
+
private createParentMap;
|
|
15
|
+
private processItems;
|
|
16
|
+
private processItem;
|
|
17
|
+
private getItemsByParent;
|
|
18
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ApiQuery, ApiRequestColumn, ItemType } from '../types';
|
|
2
|
-
import { ColumnUtil } from './ColumnUtil';
|
|
3
|
-
import { COMPARATORS_TYPE } from './QueryParser';
|
|
4
|
-
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
5
|
-
export declare class QueryColumnExtractor extends QueryParserBase<ApiRequestColumn[]> {
|
|
6
|
-
private columnUtil;
|
|
7
|
-
private itemType;
|
|
8
|
-
constructor(columnUtil: ColumnUtil, itemType: ItemType, query: ApiQuery);
|
|
9
|
-
protected parseEmptyQuery(): never[];
|
|
10
|
-
protected parseSubQuery(key: string, subQuery: object, _not?: boolean): {
|
|
11
|
-
[x: string]: ApiRequestColumn[];
|
|
12
|
-
}[];
|
|
13
|
-
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): never[];
|
|
14
|
-
protected parseSearchQuery(_value: any, _not: boolean): never[];
|
|
15
|
-
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): never[];
|
|
16
|
-
protected parseSimpleQuery(key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): string[];
|
|
17
|
-
protected parseLinkedToQuery(linkedTo: any, _query?: ApiQuery,
|
|
18
|
-
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): any;
|
|
19
|
-
private parseConditions;
|
|
20
|
-
}
|
|
1
|
+
import { ApiQuery, ApiRequestColumn, ItemType } from '../types';
|
|
2
|
+
import { ColumnUtil } from './ColumnUtil';
|
|
3
|
+
import { COMPARATORS_TYPE } from './QueryParser';
|
|
4
|
+
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
5
|
+
export declare class QueryColumnExtractor extends QueryParserBase<ApiRequestColumn[]> {
|
|
6
|
+
private columnUtil;
|
|
7
|
+
private itemType;
|
|
8
|
+
constructor(columnUtil: ColumnUtil, itemType: ItemType, query: ApiQuery);
|
|
9
|
+
protected parseEmptyQuery(): never[];
|
|
10
|
+
protected parseSubQuery(key: string, subQuery: object, _not?: boolean): {
|
|
11
|
+
[x: string]: ApiRequestColumn[];
|
|
12
|
+
}[];
|
|
13
|
+
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): never[];
|
|
14
|
+
protected parseSearchQuery(_value: any, _not: boolean): never[];
|
|
15
|
+
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): never[];
|
|
16
|
+
protected parseSimpleQuery(key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): string[];
|
|
17
|
+
protected parseLinkedToQuery(linkedTo: any, _query?: ApiQuery, reverse?: boolean, _not?: boolean): ApiRequestColumn[];
|
|
18
|
+
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): any;
|
|
19
|
+
private parseConditions;
|
|
20
|
+
}
|
|
@@ -1,17 +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 QueryContainsLocalIdParser extends QueryParserBase<boolean> {
|
|
6
|
-
private keyService;
|
|
7
|
-
constructor(keyService: KeyService, query: any);
|
|
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: ItemType, query?: ApiQuery, _reverse?: boolean, _not?: boolean): boolean;
|
|
15
|
-
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
16
|
-
private parseConditions;
|
|
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 QueryContainsLocalIdParser extends QueryParserBase<boolean> {
|
|
6
|
+
private keyService;
|
|
7
|
+
constructor(keyService: KeyService, query: any);
|
|
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: ItemType, query?: ApiQuery, _reverse?: boolean, _not?: boolean): boolean;
|
|
15
|
+
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
16
|
+
private parseConditions;
|
|
17
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ApiQuery, ItemType } from '../types';
|
|
2
|
-
import { COMPARATORS_TYPE } from './QueryParser';
|
|
3
|
-
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
4
|
-
export declare class QueryLinkedToParser extends QueryParserBase<boolean> {
|
|
5
|
-
private callback;
|
|
6
|
-
constructor(callback: (linkedTo: ItemType, query: ApiQuery) => boolean, query: ApiQuery);
|
|
7
|
-
protected parseEmptyQuery(): boolean;
|
|
8
|
-
protected parseSubQuery(_key: string, subQuery: object, _not?: boolean): boolean;
|
|
9
|
-
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): boolean;
|
|
10
|
-
protected parseSearchQuery(_value: any, _not: boolean): boolean;
|
|
11
|
-
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): boolean;
|
|
12
|
-
protected parseSimpleQuery(_key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): boolean;
|
|
13
|
-
protected parseLinkedToQuery(linkedTo: ItemType, query?: ApiQuery, _reverse?: boolean, not?: boolean): boolean;
|
|
14
|
-
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
15
|
-
private parseConditions;
|
|
16
|
-
}
|
|
1
|
+
import { ApiQuery, ItemType } from '../types';
|
|
2
|
+
import { COMPARATORS_TYPE } from './QueryParser';
|
|
3
|
+
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
4
|
+
export declare class QueryLinkedToParser extends QueryParserBase<boolean> {
|
|
5
|
+
private callback;
|
|
6
|
+
constructor(callback: (linkedTo: ItemType, query: ApiQuery) => boolean, query: ApiQuery);
|
|
7
|
+
protected parseEmptyQuery(): boolean;
|
|
8
|
+
protected parseSubQuery(_key: string, subQuery: object, _not?: boolean): boolean;
|
|
9
|
+
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): boolean;
|
|
10
|
+
protected parseSearchQuery(_value: any, _not: boolean): boolean;
|
|
11
|
+
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): boolean;
|
|
12
|
+
protected parseSimpleQuery(_key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): boolean;
|
|
13
|
+
protected parseLinkedToQuery(linkedTo: ItemType, query?: ApiQuery, _reverse?: boolean, not?: boolean): boolean;
|
|
14
|
+
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
15
|
+
private parseConditions;
|
|
16
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ApiQuery, ItemType } from '../types';
|
|
2
|
-
import { COMPARATORS_TYPE } from './QueryParser';
|
|
3
|
-
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
4
|
-
/**
|
|
5
|
-
* @description
|
|
6
|
-
* Returns whether or not a query can be parsed by the {@link QueryMatcher QueryMatcher}
|
|
7
|
-
*/
|
|
8
|
-
export declare class QueryLocallyMatchableParser extends QueryParserBase<boolean> {
|
|
9
|
-
constructor(query: ApiQuery);
|
|
10
|
-
protected parseEmptyQuery(): boolean;
|
|
11
|
-
protected parseSubQuery(_key: string, _subQuery: object, _not?: boolean): boolean;
|
|
12
|
-
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): boolean;
|
|
13
|
-
protected parseSearchQuery(_value: any, _not: boolean): boolean;
|
|
14
|
-
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): boolean;
|
|
15
|
-
protected parseSimpleQuery(_key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): boolean;
|
|
16
|
-
protected parseLinkedToQuery(_linkedTo: ItemType, _query?: ApiQuery,
|
|
17
|
-
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
18
|
-
private parseConditions;
|
|
19
|
-
}
|
|
1
|
+
import { ApiQuery, ItemType } from '../types';
|
|
2
|
+
import { COMPARATORS_TYPE } from './QueryParser';
|
|
3
|
+
import { OPERATORS_TYPE, QueryParserBase } from './QueryParserBase';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Returns whether or not a query can be parsed by the {@link QueryMatcher QueryMatcher}
|
|
7
|
+
*/
|
|
8
|
+
export declare class QueryLocallyMatchableParser extends QueryParserBase<boolean> {
|
|
9
|
+
constructor(query: ApiQuery);
|
|
10
|
+
protected parseEmptyQuery(): boolean;
|
|
11
|
+
protected parseSubQuery(_key: string, _subQuery: object, _not?: boolean): boolean;
|
|
12
|
+
protected parseSubFieldQuery(_key: string, _itemType: ItemType, _field: string, _query: ApiQuery, _not: boolean): boolean;
|
|
13
|
+
protected parseSearchQuery(_value: any, _not: boolean): boolean;
|
|
14
|
+
protected parseCustomQuery(_custom: string, _parameters: any, _not?: boolean): boolean;
|
|
15
|
+
protected parseSimpleQuery(_key: string, _value: any, _comparator?: COMPARATORS_TYPE, _not?: boolean): boolean;
|
|
16
|
+
protected parseLinkedToQuery(_linkedTo: ItemType, _query?: ApiQuery, reverse?: boolean, _not?: boolean): boolean;
|
|
17
|
+
protected parseComplexQuery(conditions: any[], _operator?: OPERATORS_TYPE, _not?: boolean): boolean;
|
|
18
|
+
private parseConditions;
|
|
19
|
+
}
|