@rentman/rm-core 1.3.3 → 1.3.5
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 +325 -319
- package/dist/rm-core.js +6904 -6900
- package/dist/rm-core.min.js +1 -1
- package/dist/src/classes/ApiFormatter.d.ts +40 -40
- package/dist/src/classes/ApiRequestService.d.ts +18 -18
- package/dist/src/classes/ApiResponseProcessor.d.ts +33 -33
- package/dist/src/classes/BatchStatus.d.ts +19 -19
- package/dist/src/classes/ChangesCompilation.d.ts +26 -26
- package/dist/src/classes/ChangesProcessor.d.ts +37 -37
- package/dist/src/classes/CollectionCache.d.ts +37 -37
- package/dist/src/classes/CollectionEntryService.d.ts +26 -26
- package/dist/src/classes/CollectionHandler.d.ts +57 -57
- package/dist/src/classes/CollectionMatcher.d.ts +29 -29
- package/dist/src/classes/CollectionResourceService.d.ts +5 -5
- package/dist/src/classes/ColumnCache.d.ts +21 -21
- package/dist/src/classes/ColumnExpansion.d.ts +14 -14
- package/dist/src/classes/ColumnHandler.d.ts +21 -21
- package/dist/src/classes/ColumnInfo.d.ts +12 -12
- package/dist/src/classes/ColumnSet.d.ts +42 -42
- package/dist/src/classes/ColumnUtil.d.ts +76 -76
- package/dist/src/classes/CreateRequest.d.ts +20 -20
- package/dist/src/classes/ItemAdministrator.d.ts +94 -94
- package/dist/src/classes/ItemCache.d.ts +25 -25
- package/dist/src/classes/ItemEntryService.d.ts +23 -23
- package/dist/src/classes/ItemHandler.d.ts +76 -76
- package/dist/src/classes/ItemRequestService.d.ts +23 -23
- package/dist/src/classes/ItemResourceService.d.ts +5 -5
- package/dist/src/classes/KeyService.d.ts +16 -16
- package/dist/src/classes/LocalCache.d.ts +49 -49
- package/dist/src/classes/LockService.d.ts +23 -23
- package/dist/src/classes/ModuleChangesCompilation.d.ts +19 -19
- package/dist/src/classes/QueryMatcher.d.ts +14 -14
- package/dist/src/classes/QueryParser.d.ts +16 -16
- package/dist/src/classes/QueryService.d.ts +19 -19
- package/dist/src/classes/RequestColumnExpansion.d.ts +9 -9
- package/dist/src/classes/SocketMessageHandler.d.ts +32 -32
- package/dist/src/classes/Util.d.ts +25 -25
- package/dist/src/classes/index.d.ts +34 -34
- package/dist/src/constants.d.ts +16 -16
- package/dist/src/core.d.ts +48 -48
- package/dist/src/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/src/factories/BatchStatusFactory.d.ts +9 -9
- package/dist/src/factories/ChangesCompilationFactory.d.ts +8 -8
- package/dist/src/factories/ChangesProcessorFactory.d.ts +18 -18
- package/dist/src/factories/CollectionCacheFactory.d.ts +7 -7
- package/dist/src/factories/CollectionEntryFactory.d.ts +18 -18
- package/dist/src/factories/CollectionMatcherFactory.d.ts +7 -7
- package/dist/src/factories/CollectionResourceFactory.d.ts +14 -14
- package/dist/src/factories/ColumnExpansionFactory.d.ts +6 -6
- package/dist/src/factories/ColumnInfoFactory.d.ts +6 -6
- package/dist/src/factories/ColumnSetFactory.d.ts +11 -11
- package/dist/src/factories/CreateRequestFactory.d.ts +10 -10
- package/dist/src/factories/ItemCacheFactory.d.ts +7 -7
- package/dist/src/factories/ItemEntryFactory.d.ts +19 -19
- package/dist/src/factories/ItemResourceFactory.d.ts +15 -15
- package/dist/src/factories/LocalCacheFactory.d.ts +16 -16
- package/dist/src/factories/ModuleChangesCompilationFactory.d.ts +5 -5
- package/dist/src/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/src/factories/QueryParserFactory.d.ts +5 -5
- package/dist/src/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/src/factories/TemplateFactory.d.ts +10 -10
- package/dist/src/factories/index.d.ts +21 -21
- package/dist/src/index.d.ts +7 -7
- package/dist/src/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- package/dist/src/interfaces/AuthInterface.d.ts +9 -9
- package/dist/src/interfaces/ErrorHandlerInterface.d.ts +5 -5
- package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +5 -5
- package/dist/src/interfaces/PromiseLibraryInterface.d.ts +15 -15
- package/dist/src/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/src/interfaces/index.d.ts +6 -6
- package/dist/src/models/CollectionEditResource.d.ts +15 -15
- package/dist/src/models/CollectionEntry.d.ts +64 -63
- package/dist/src/models/CollectionResource.d.ts +40 -40
- package/dist/src/models/CollectionViewResource.d.ts +6 -6
- package/dist/src/models/EditResource.d.ts +18 -18
- package/dist/src/models/ItemEntry.d.ts +69 -69
- package/dist/src/models/ItemResource.d.ts +23 -23
- package/dist/src/models/Template.d.ts +11 -11
- package/dist/src/models/ViewResource.d.ts +4 -4
- package/dist/src/models/index.d.ts +9 -9
- package/dist/src/types/ItemTypesCollection.d.ts +130 -131
- package/dist/src/types/PromiseInterface.d.ts +2 -2
- package/dist/src/types/index.d.ts +2 -2
- package/package.json +35 -35
- package/readme.md +15 -15
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { CollectionCache, CollectionEntryService, CollectionHandler, CollectionMatcher, CollectionResourceService, ItemCache, ItemEntryService, ItemHandler, ItemRequestService, KeyService, LocalCache, QueryService } from '../classes';
|
|
2
|
-
import { CollectionMatcherFactory, ColumnSetFactory, LocalCacheFactory, ModuleChangesCompilationFactory } from '../factories';
|
|
3
|
-
import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LocalCacheManagerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
5
|
-
import { CollectionResourceParentIdMap, CreateRequestParameterMap, ItemId, ItemIdConversionMap, ItemOptions, ItemResourceItemTypeMap, ItemType, LocalCacheCallbackCondition, OnSaveCallback, PromiseInterface, TemplateItemResourceMap, TemplateLinkedItemEntryMap } from '../types';
|
|
6
|
-
export declare class ItemAdministrator {
|
|
7
|
-
private apiRequestService;
|
|
8
|
-
private authInterface;
|
|
9
|
-
private collectionEntryService;
|
|
10
|
-
private collectionHandler;
|
|
11
|
-
private collectionMatcherFactory;
|
|
12
|
-
private collectionResourceService;
|
|
13
|
-
private columnSetFactory;
|
|
14
|
-
private errorHandler;
|
|
15
|
-
private itemEntryService;
|
|
16
|
-
private itemHandler;
|
|
17
|
-
private itemRequestService;
|
|
18
|
-
private keyService;
|
|
19
|
-
private localCacheFactory;
|
|
20
|
-
private localCacheManager;
|
|
21
|
-
private moduleChangesCompilationFactory;
|
|
22
|
-
private promiseInterface;
|
|
23
|
-
private queryService;
|
|
24
|
-
constructor(apiRequestService: ApiRequestServiceInterface, authInterface: AuthInterface, collectionEntryService: CollectionEntryService, collectionHandler: CollectionHandler, collectionMatcherFactory: CollectionMatcherFactory, collectionResourceService: CollectionResourceService, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemEntryService: ItemEntryService, itemHandler: ItemHandler, itemRequestService: ItemRequestService, keyService: KeyService, localCacheFactory: LocalCacheFactory, localCacheManager: LocalCacheManagerInterface, moduleChangesCompilationFactory: ModuleChangesCompilationFactory, promiseInterface: PromiseLibraryInterface, queryService: QueryService);
|
|
25
|
-
invalidateCache(): void;
|
|
26
|
-
getCollectionMatcher(itemEntries: ItemEntry[], addToTab: boolean): CollectionMatcher;
|
|
27
|
-
fetchTitle(itemType: any, itemId: any, deferRequest: any): PromiseInterface<string>;
|
|
28
|
-
getItemById(itemType: ItemType, itemId: ItemId, options: ItemOptions, isRoot?: boolean): PromiseInterface<ItemResource>;
|
|
29
|
-
getItemsById(itemType: string, itemIds: number[], options: any): PromiseInterface<ItemResource[]>;
|
|
30
|
-
getItemsByQuery(itemType: string, query: any, options: any): PromiseInterface<ItemResource[]>;
|
|
31
|
-
/**
|
|
32
|
-
* The return value is depended on the return links boolean. true returns the TemplateResponseItemEntryMap.
|
|
33
|
-
* The type has to be asserted at use since you only know the type of the return value when the function is called
|
|
34
|
-
*
|
|
35
|
-
* @param {string} itemType
|
|
36
|
-
* @param options
|
|
37
|
-
* @param {boolean} returnLinks
|
|
38
|
-
* @param {boolean} isRoot
|
|
39
|
-
* @returns {PromiseInterface<ItemResource | TemplateItemEntryMap>}
|
|
40
|
-
*/
|
|
41
|
-
getNewResource(itemType: ItemType, options?: ItemOptions, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<ItemResource | TemplateItemResourceMap>;
|
|
42
|
-
getDuplicateById(itemType: ItemType, duplicateId: ItemId, options?: ItemOptions, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<ItemResource | TemplateItemResourceMap>;
|
|
43
|
-
getItemByState(itemType: ItemType, stateKey: ItemId | string, options?: ItemOptions, isRoot?: boolean): PromiseInterface<ItemResource>;
|
|
44
|
-
getCollectionDef(itemType: string, options: any): {
|
|
45
|
-
itemType: string;
|
|
46
|
-
options: {
|
|
47
|
-
entry: any;
|
|
48
|
-
resource: any;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
getLinkCollectionsDef(linkType: string, linkIdArray: number[], itemType: string, linkField: string, options: any): {
|
|
52
|
-
itemType: string;
|
|
53
|
-
linkType: string;
|
|
54
|
-
linkIdArray: number[];
|
|
55
|
-
linkField: string;
|
|
56
|
-
options: {
|
|
57
|
-
entry: any;
|
|
58
|
-
resource: any;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
getCollection(itemType: string, options: any): PromiseInterface<CollectionResource>;
|
|
62
|
-
getCollectionFromDef(definition: any): PromiseInterface<CollectionResource>;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated, use `parent` in options
|
|
65
|
-
*/
|
|
66
|
-
getLinkCollection(linkType: string, linkId: number, itemType: string, options: any): PromiseInterface<CollectionResource>;
|
|
67
|
-
getLinkCollections(linkType: string, linkIdArray: number[], itemType: string, options: any): PromiseInterface<CollectionResourceParentIdMap>;
|
|
68
|
-
getLinkCollectionsFromDef(definition: any): PromiseInterface<CollectionResourceParentIdMap>;
|
|
69
|
-
getAllLinkCollections(linkType: string, itemType: string, options: any): PromiseInterface<CollectionResourceParentIdMap>;
|
|
70
|
-
cloneItem(itemResource: ItemResource, options: any): ItemResource;
|
|
71
|
-
cloneCollection(collectionResource: CollectionResource, options: any, conversionMap: any): CollectionResource;
|
|
72
|
-
saveCurrentLocalCache(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakupByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void): any;
|
|
73
|
-
getCurrentCollections(): CollectionCache;
|
|
74
|
-
getCurrentItems(): ItemCache;
|
|
75
|
-
getModuleChanges(localCache?: LocalCache): {
|
|
76
|
-
itemType: string;
|
|
77
|
-
itemId: number;
|
|
78
|
-
items: any;
|
|
79
|
-
};
|
|
80
|
-
addSingleItem(itemEntry: ItemEntry, options: ItemOptions, isRoot?: boolean, localCache?: LocalCache): ItemResource;
|
|
81
|
-
addSingleItems(itemEntries: ItemEntry[], options: ItemOptions): ItemResource[];
|
|
82
|
-
addCollection(collectionEntry: CollectionEntry, options: any): CollectionResource;
|
|
83
|
-
processLinkedItems(linkedEntries: TemplateLinkedItemEntryMap[], options: ItemOptions, addToCollections: boolean): ItemResourceItemTypeMap;
|
|
84
|
-
getLocalCache(): LocalCache;
|
|
85
|
-
resetLocalCache(): void;
|
|
86
|
-
addToCollections(itemEntries: ItemEntry[], resultCollectionResource?: CollectionResource): ItemResource[] | null;
|
|
87
|
-
removeFromCollections(itemEntries: ItemEntry[], resultCollectionResource?: CollectionResource): ItemResource[] | null;
|
|
88
|
-
saveLocal(itemResource: ItemResource): PromiseInterface<ItemResource>;
|
|
89
|
-
updateItemIdMap(collectionMap: any, conversionMap: any): void;
|
|
90
|
-
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: any, processOptions?: boolean): CollectionResource;
|
|
91
|
-
createItemResource(itemEntry: ItemEntry, options: any, isRoot: boolean): ItemResource;
|
|
92
|
-
onBeforeSave(key: string, callback: (localCache: LocalCache) => any, condition?: LocalCacheCallbackCondition): () => void;
|
|
93
|
-
onSaveSuccess(key: string, callback: OnSaveCallback, condition?: LocalCacheCallbackCondition): () => void;
|
|
94
|
-
}
|
|
1
|
+
import { CollectionCache, CollectionEntryService, CollectionHandler, CollectionMatcher, CollectionResourceService, ItemCache, ItemEntryService, ItemHandler, ItemRequestService, KeyService, LocalCache, QueryService } from '../classes';
|
|
2
|
+
import { CollectionMatcherFactory, ColumnSetFactory, LocalCacheFactory, ModuleChangesCompilationFactory } from '../factories';
|
|
3
|
+
import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LocalCacheManagerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
5
|
+
import { CollectionResourceParentIdMap, CreateRequestParameterMap, ItemId, ItemIdConversionMap, ItemOptions, ItemResourceItemTypeMap, ItemType, LocalCacheCallbackCondition, OnSaveCallback, PromiseInterface, TemplateItemResourceMap, TemplateLinkedItemEntryMap } from '../types';
|
|
6
|
+
export declare class ItemAdministrator {
|
|
7
|
+
private apiRequestService;
|
|
8
|
+
private authInterface;
|
|
9
|
+
private collectionEntryService;
|
|
10
|
+
private collectionHandler;
|
|
11
|
+
private collectionMatcherFactory;
|
|
12
|
+
private collectionResourceService;
|
|
13
|
+
private columnSetFactory;
|
|
14
|
+
private errorHandler;
|
|
15
|
+
private itemEntryService;
|
|
16
|
+
private itemHandler;
|
|
17
|
+
private itemRequestService;
|
|
18
|
+
private keyService;
|
|
19
|
+
private localCacheFactory;
|
|
20
|
+
private localCacheManager;
|
|
21
|
+
private moduleChangesCompilationFactory;
|
|
22
|
+
private promiseInterface;
|
|
23
|
+
private queryService;
|
|
24
|
+
constructor(apiRequestService: ApiRequestServiceInterface, authInterface: AuthInterface, collectionEntryService: CollectionEntryService, collectionHandler: CollectionHandler, collectionMatcherFactory: CollectionMatcherFactory, collectionResourceService: CollectionResourceService, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemEntryService: ItemEntryService, itemHandler: ItemHandler, itemRequestService: ItemRequestService, keyService: KeyService, localCacheFactory: LocalCacheFactory, localCacheManager: LocalCacheManagerInterface, moduleChangesCompilationFactory: ModuleChangesCompilationFactory, promiseInterface: PromiseLibraryInterface, queryService: QueryService);
|
|
25
|
+
invalidateCache(): void;
|
|
26
|
+
getCollectionMatcher(itemEntries: ItemEntry[], addToTab: boolean): CollectionMatcher;
|
|
27
|
+
fetchTitle(itemType: any, itemId: any, deferRequest: any): PromiseInterface<string>;
|
|
28
|
+
getItemById(itemType: ItemType, itemId: ItemId, options: ItemOptions, isRoot?: boolean): PromiseInterface<ItemResource>;
|
|
29
|
+
getItemsById(itemType: string, itemIds: number[], options: any): PromiseInterface<ItemResource[]>;
|
|
30
|
+
getItemsByQuery(itemType: string, query: any, options: any): PromiseInterface<ItemResource[]>;
|
|
31
|
+
/**
|
|
32
|
+
* The return value is depended on the return links boolean. true returns the TemplateResponseItemEntryMap.
|
|
33
|
+
* The type has to be asserted at use since you only know the type of the return value when the function is called
|
|
34
|
+
*
|
|
35
|
+
* @param {string} itemType
|
|
36
|
+
* @param options
|
|
37
|
+
* @param {boolean} returnLinks
|
|
38
|
+
* @param {boolean} isRoot
|
|
39
|
+
* @returns {PromiseInterface<ItemResource | TemplateItemEntryMap>}
|
|
40
|
+
*/
|
|
41
|
+
getNewResource(itemType: ItemType, options?: ItemOptions, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<ItemResource | TemplateItemResourceMap>;
|
|
42
|
+
getDuplicateById(itemType: ItemType, duplicateId: ItemId, options?: ItemOptions, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<ItemResource | TemplateItemResourceMap>;
|
|
43
|
+
getItemByState(itemType: ItemType, stateKey: ItemId | string, options?: ItemOptions, isRoot?: boolean): PromiseInterface<ItemResource>;
|
|
44
|
+
getCollectionDef(itemType: string, options: any): {
|
|
45
|
+
itemType: string;
|
|
46
|
+
options: {
|
|
47
|
+
entry: any;
|
|
48
|
+
resource: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
getLinkCollectionsDef(linkType: string, linkIdArray: number[], itemType: string, linkField: string, options: any): {
|
|
52
|
+
itemType: string;
|
|
53
|
+
linkType: string;
|
|
54
|
+
linkIdArray: number[];
|
|
55
|
+
linkField: string;
|
|
56
|
+
options: {
|
|
57
|
+
entry: any;
|
|
58
|
+
resource: any;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
getCollection(itemType: string, options: any): PromiseInterface<CollectionResource>;
|
|
62
|
+
getCollectionFromDef(definition: any): PromiseInterface<CollectionResource>;
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated, use `parent` in options
|
|
65
|
+
*/
|
|
66
|
+
getLinkCollection(linkType: string, linkId: number, itemType: string, options: any): PromiseInterface<CollectionResource>;
|
|
67
|
+
getLinkCollections(linkType: string, linkIdArray: number[], itemType: string, options: any): PromiseInterface<CollectionResourceParentIdMap>;
|
|
68
|
+
getLinkCollectionsFromDef(definition: any): PromiseInterface<CollectionResourceParentIdMap>;
|
|
69
|
+
getAllLinkCollections(linkType: string, itemType: string, options: any): PromiseInterface<CollectionResourceParentIdMap>;
|
|
70
|
+
cloneItem(itemResource: ItemResource, options: any): ItemResource;
|
|
71
|
+
cloneCollection(collectionResource: CollectionResource, options: any, conversionMap: any): CollectionResource;
|
|
72
|
+
saveCurrentLocalCache(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakupByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void): any;
|
|
73
|
+
getCurrentCollections(): CollectionCache;
|
|
74
|
+
getCurrentItems(): ItemCache;
|
|
75
|
+
getModuleChanges(localCache?: LocalCache): {
|
|
76
|
+
itemType: string;
|
|
77
|
+
itemId: number;
|
|
78
|
+
items: any;
|
|
79
|
+
};
|
|
80
|
+
addSingleItem(itemEntry: ItemEntry, options: ItemOptions, isRoot?: boolean, localCache?: LocalCache): ItemResource;
|
|
81
|
+
addSingleItems(itemEntries: ItemEntry[], options: ItemOptions): ItemResource[];
|
|
82
|
+
addCollection(collectionEntry: CollectionEntry, options: any): CollectionResource;
|
|
83
|
+
processLinkedItems(linkedEntries: TemplateLinkedItemEntryMap[], options: ItemOptions, addToCollections: boolean): ItemResourceItemTypeMap;
|
|
84
|
+
getLocalCache(): LocalCache;
|
|
85
|
+
resetLocalCache(): void;
|
|
86
|
+
addToCollections(itemEntries: ItemEntry[], resultCollectionResource?: CollectionResource): ItemResource[] | null;
|
|
87
|
+
removeFromCollections(itemEntries: ItemEntry[], resultCollectionResource?: CollectionResource): ItemResource[] | null;
|
|
88
|
+
saveLocal(itemResource: ItemResource): PromiseInterface<ItemResource>;
|
|
89
|
+
updateItemIdMap(collectionMap: any, conversionMap: any): void;
|
|
90
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: any, processOptions?: boolean): CollectionResource;
|
|
91
|
+
createItemResource(itemEntry: ItemEntry, options: any, isRoot: boolean): ItemResource;
|
|
92
|
+
onBeforeSave(key: string, callback: (localCache: LocalCache) => any, condition?: LocalCacheCallbackCondition): () => void;
|
|
93
|
+
onSaveSuccess(key: string, callback: OnSaveCallback, condition?: LocalCacheCallbackCondition): () => void;
|
|
94
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { QueryMatcherFactory } from '../factories';
|
|
2
|
-
import { ItemEntry } from '../models';
|
|
3
|
-
import { ItemId, ItemType } from '../types';
|
|
4
|
-
export declare class ItemCache {
|
|
5
|
-
private queryMatcherFactory;
|
|
6
|
-
entries: {
|
|
7
|
-
[itemType: string]: {
|
|
8
|
-
[itemId: number]: ItemEntry;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
12
|
-
some(callback: (itemEntry: ItemEntry) => boolean): boolean;
|
|
13
|
-
getByItemType(itemType: ItemType): ItemEntry[];
|
|
14
|
-
getByQuery(itemType: ItemType, query: any): ItemEntry[];
|
|
15
|
-
getLocalByQuery(itemType: ItemType, query: any): ItemEntry[];
|
|
16
|
-
getByParent(parentType: ItemType, parentId: ItemId, itemType: ItemType): ItemEntry[];
|
|
17
|
-
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
18
|
-
toArray(): ItemEntry[];
|
|
19
|
-
add(itemEntry: ItemEntry): ItemEntry;
|
|
20
|
-
get(itemType: ItemType, itemId: ItemId | string): any;
|
|
21
|
-
contains(itemType: ItemType, itemId: ItemId | string): boolean;
|
|
22
|
-
updateItemId(itemEntry: ItemEntry, oldItemId: any): ItemEntry;
|
|
23
|
-
clear(itemEntry: ItemEntry): boolean;
|
|
24
|
-
matchQuery(itemEntry: ItemEntry, query: any): boolean;
|
|
25
|
-
}
|
|
1
|
+
import { QueryMatcherFactory } from '../factories';
|
|
2
|
+
import { ItemEntry } from '../models';
|
|
3
|
+
import { ItemId, ItemType } from '../types';
|
|
4
|
+
export declare class ItemCache {
|
|
5
|
+
private queryMatcherFactory;
|
|
6
|
+
entries: {
|
|
7
|
+
[itemType: string]: {
|
|
8
|
+
[itemId: number]: ItemEntry;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
12
|
+
some(callback: (itemEntry: ItemEntry) => boolean): boolean;
|
|
13
|
+
getByItemType(itemType: ItemType): ItemEntry[];
|
|
14
|
+
getByQuery(itemType: ItemType, query: any): ItemEntry[];
|
|
15
|
+
getLocalByQuery(itemType: ItemType, query: any): ItemEntry[];
|
|
16
|
+
getByParent(parentType: ItemType, parentId: ItemId, itemType: ItemType): ItemEntry[];
|
|
17
|
+
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
18
|
+
toArray(): ItemEntry[];
|
|
19
|
+
add(itemEntry: ItemEntry): ItemEntry;
|
|
20
|
+
get(itemType: ItemType, itemId: ItemId | string): any;
|
|
21
|
+
contains(itemType: ItemType, itemId: ItemId | string): boolean;
|
|
22
|
+
updateItemId(itemEntry: ItemEntry, oldItemId: any): ItemEntry;
|
|
23
|
+
clear(itemEntry: ItemEntry): boolean;
|
|
24
|
+
matchQuery(itemEntry: ItemEntry, query: any): boolean;
|
|
25
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { KeyService } from '../classes';
|
|
2
|
-
import { AuthInterface } from '../interfaces';
|
|
3
|
-
import { ItemEntry } from '../models';
|
|
4
|
-
import { ApiResponse, FieldMap, ItemId, ItemIdConversionMap, ItemType } from '../types';
|
|
5
|
-
export declare class ItemEntryService {
|
|
6
|
-
private authInterface;
|
|
7
|
-
private keyService;
|
|
8
|
-
undefinedItemError: string;
|
|
9
|
-
constructor(authInterface: AuthInterface, keyService: KeyService);
|
|
10
|
-
processOptions(options?: any): any;
|
|
11
|
-
createUnfoundLocalItemError(itemType: ItemType): {
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
createLocalConversionMap(itemType: ItemType, itemId: ItemId, doExtend: boolean | undefined, apiResponse: ApiResponse): ItemIdConversionMap;
|
|
15
|
-
expandLocalConversionMap(parentType: ItemType, parentId: ItemId, apiResponse: ApiResponse, conversionMap: ItemIdConversionMap): void;
|
|
16
|
-
expandConversionMap(itemEntry: ItemEntry, conversionMap: ItemIdConversionMap, newItemId?: ItemId): any;
|
|
17
|
-
batchExpandConversionMap(itemEntries: ItemEntry[], conversionMap: ItemIdConversionMap): ItemIdConversionMap;
|
|
18
|
-
getConversionValue(itemType: any, itemId: any, map: any): any;
|
|
19
|
-
batchClone(itemEntries: ItemEntry[], conversionMap?: ItemIdConversionMap): ItemEntry[];
|
|
20
|
-
getFullName(firstName: any, infix: any, lastName: any): any;
|
|
21
|
-
getTitleField(itemType: any): "serienummer" | "nummer" | "friendlyname" | "naamintern" | "omschrijving" | "code" | "naam" | "displayname";
|
|
22
|
-
getLocalDefaultValues(): FieldMap;
|
|
23
|
-
}
|
|
1
|
+
import { KeyService } from '../classes';
|
|
2
|
+
import { AuthInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from '../models';
|
|
4
|
+
import { ApiResponse, FieldMap, ItemId, ItemIdConversionMap, ItemType } from '../types';
|
|
5
|
+
export declare class ItemEntryService {
|
|
6
|
+
private authInterface;
|
|
7
|
+
private keyService;
|
|
8
|
+
undefinedItemError: string;
|
|
9
|
+
constructor(authInterface: AuthInterface, keyService: KeyService);
|
|
10
|
+
processOptions(options?: any): any;
|
|
11
|
+
createUnfoundLocalItemError(itemType: ItemType): {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
createLocalConversionMap(itemType: ItemType, itemId: ItemId, doExtend: boolean | undefined, apiResponse: ApiResponse): ItemIdConversionMap;
|
|
15
|
+
expandLocalConversionMap(parentType: ItemType, parentId: ItemId, apiResponse: ApiResponse, conversionMap: ItemIdConversionMap): void;
|
|
16
|
+
expandConversionMap(itemEntry: ItemEntry, conversionMap: ItemIdConversionMap, newItemId?: ItemId): any;
|
|
17
|
+
batchExpandConversionMap(itemEntries: ItemEntry[], conversionMap: ItemIdConversionMap): ItemIdConversionMap;
|
|
18
|
+
getConversionValue(itemType: any, itemId: any, map: any): any;
|
|
19
|
+
batchClone(itemEntries: ItemEntry[], conversionMap?: ItemIdConversionMap): ItemEntry[];
|
|
20
|
+
getFullName(firstName: any, infix: any, lastName: any): any;
|
|
21
|
+
getTitleField(itemType: any): "serienummer" | "nummer" | "friendlyname" | "naamintern" | "omschrijving" | "code" | "naam" | "displayname";
|
|
22
|
+
getLocalDefaultValues(): FieldMap;
|
|
23
|
+
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { ApiFormatter, ApiResponseProcessor, BatchStatus, ColumnExpansion, ColumnHandler, ColumnInfo, ColumnSet, ColumnUtil, ItemCache, ItemEntryService, KeyService } from '../classes';
|
|
2
|
-
import { ENTRY_STATUS } from '../constants';
|
|
3
|
-
import { BatchStatusFactory, ColumnExpansionFactory, ColumnSetFactory, ItemCacheFactory, ItemEntryFactory, TemplateFactory } from '../factories';
|
|
4
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
5
|
-
import { ItemEntry, Template } from '../models';
|
|
6
|
-
import { ApiResponse, EntryStatus, FieldMap, ItemId, ItemIdConversionMap, ItemOptions, ItemType, PromiseInterface, RequestColumns, TemplateItemEntryMap, TemplateLinkedItemEntryMap } from '../types';
|
|
7
|
-
export declare class ItemHandler {
|
|
8
|
-
private apiFormatter;
|
|
9
|
-
private apiRequestService;
|
|
10
|
-
private batchStatusFactory;
|
|
11
|
-
private columnExpansionFactory;
|
|
12
|
-
private columnHandler;
|
|
13
|
-
private columnSetFactory;
|
|
14
|
-
private columnUtil;
|
|
15
|
-
private errorHandler;
|
|
16
|
-
private itemCacheFactory;
|
|
17
|
-
private itemEntryFactory;
|
|
18
|
-
private itemEntryService;
|
|
19
|
-
private keyService;
|
|
20
|
-
private promiseService;
|
|
21
|
-
private templateFactory;
|
|
22
|
-
entries: ItemCache;
|
|
23
|
-
templates: {
|
|
24
|
-
[itemType: string]: Template;
|
|
25
|
-
};
|
|
26
|
-
constructor(apiFormatter: ApiFormatter, apiRequestService: ApiRequestServiceInterface, batchStatusFactory: BatchStatusFactory, columnExpansionFactory: ColumnExpansionFactory, columnHandler: ColumnHandler, columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil, errorHandler: ErrorHandlerInterface, itemCacheFactory: ItemCacheFactory, itemEntryFactory: ItemEntryFactory, itemEntryService: ItemEntryService, keyService: KeyService, promiseService: PromiseLibraryInterface, templateFactory: TemplateFactory);
|
|
27
|
-
fetchItem(itemType: ItemType, itemId: ItemId, options: any, localItemCache: ItemCache): PromiseInterface<ItemEntry>;
|
|
28
|
-
fetchNewItem(itemType: ItemType, options: ItemOptions, localItemCache: ItemCache): PromiseInterface<TemplateItemEntryMap>;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @param itemType
|
|
32
|
-
* @param itemIds
|
|
33
|
-
* @param options
|
|
34
|
-
* @returns {PromiseInterface<ItemEntry[]>}
|
|
35
|
-
*
|
|
36
|
-
* For every itemid find the status of the ItemEntry and resolve the promises so the result is
|
|
37
|
-
* a usable ItemEntry
|
|
38
|
-
*/
|
|
39
|
-
fetchItems(itemType: ItemType, itemIds: ItemId[], options: any, localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
40
|
-
resolveCached(itemEntry: ItemEntry, status: ENTRY_STATUS, options: any): PromiseInterface<ItemEntry>;
|
|
41
|
-
resolveLocal(itemEntry: ItemEntry, parent: any, template: any, localItemCache: ItemCache): TemplateItemEntryMap;
|
|
42
|
-
resolveExpansion(itemEntry: ItemEntry, columnExpansion: ColumnExpansion, response: ApiResponse): ItemEntry;
|
|
43
|
-
resolveRemote(itemEntry: ItemEntry, columnSet: ColumnSet, response: ApiResponse): ItemEntry | null;
|
|
44
|
-
resolveRemoteValues(itemEntry: ItemEntry, response: ApiResponse): ItemEntry | null;
|
|
45
|
-
getResponseFields(itemEntry: ItemEntry, columnSet: any, response: ApiResponse): {
|
|
46
|
-
initial: FieldMap;
|
|
47
|
-
derived: FieldMap;
|
|
48
|
-
} | null;
|
|
49
|
-
fetchTemplate(itemType: string, templateOptions?: any, templateColumns?: any): PromiseInterface<Template>;
|
|
50
|
-
getEntryStatus(itemType: ItemType, itemId: ItemId, options: any, localItemCache: ItemCache): EntryStatus<ItemEntry> | null;
|
|
51
|
-
isColumnSuperset(itemEntry: ItemEntry, columns: RequestColumns): any;
|
|
52
|
-
getCachedEntryStatus(itemEntry: ItemEntry, options: any): ENTRY_STATUS;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @param itemType
|
|
56
|
-
* @param {BatchStatus} batchStatus
|
|
57
|
-
* @param requestColumns
|
|
58
|
-
* @param resolved
|
|
59
|
-
* @returns {ItemEntry[]}
|
|
60
|
-
*
|
|
61
|
-
* for every type of entry status there is in this batch request make sure the entries get resolved.
|
|
62
|
-
* then return a array of the resulting ItemEntryArray
|
|
63
|
-
*/
|
|
64
|
-
batchResolve(itemType: ItemType, batchStatus: BatchStatus, requestColumns: RequestColumns, resolved: {
|
|
65
|
-
entries: ItemEntry[];
|
|
66
|
-
requests?: ApiResponseProcessor;
|
|
67
|
-
}): ItemEntry[] | PromiseInterface<any>;
|
|
68
|
-
createLocalEntries(parentType: ItemType, localParentId: ItemId, template: any, itemIdConversion: ItemIdConversionMap, localItemCache: ItemCache, excludeItemTypes?: ItemType[]): TemplateLinkedItemEntryMap[];
|
|
69
|
-
fetchTitle(itemType: ItemType, itemId: ItemId, deferRequest: boolean | undefined, localItemCache: ItemCache): PromiseInterface<string>;
|
|
70
|
-
resolveDerivedValues(itemEntries: ItemEntry[], columns: ColumnInfo[], localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
71
|
-
private getDefaultValuesByColumn(itemEntries, rootColumn);
|
|
72
|
-
private getItemIdByColumn(itemEntry, column);
|
|
73
|
-
private fetchDerivedValuesByColumn(itemEntries, rootColumn, localItemCache);
|
|
74
|
-
requestItem(itemEntry: ItemEntry, requestColumns?: RequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
75
|
-
requestItems(itemType: ItemType, itemIds: ItemId[], columns: RequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
76
|
-
}
|
|
1
|
+
import { ApiFormatter, ApiResponseProcessor, BatchStatus, ColumnExpansion, ColumnHandler, ColumnInfo, ColumnSet, ColumnUtil, ItemCache, ItemEntryService, KeyService } from '../classes';
|
|
2
|
+
import { ENTRY_STATUS } from '../constants';
|
|
3
|
+
import { BatchStatusFactory, ColumnExpansionFactory, ColumnSetFactory, ItemCacheFactory, ItemEntryFactory, TemplateFactory } from '../factories';
|
|
4
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
5
|
+
import { ItemEntry, Template } from '../models';
|
|
6
|
+
import { ApiResponse, EntryStatus, FieldMap, ItemId, ItemIdConversionMap, ItemOptions, ItemType, PromiseInterface, RequestColumns, TemplateItemEntryMap, TemplateLinkedItemEntryMap } from '../types';
|
|
7
|
+
export declare class ItemHandler {
|
|
8
|
+
private apiFormatter;
|
|
9
|
+
private apiRequestService;
|
|
10
|
+
private batchStatusFactory;
|
|
11
|
+
private columnExpansionFactory;
|
|
12
|
+
private columnHandler;
|
|
13
|
+
private columnSetFactory;
|
|
14
|
+
private columnUtil;
|
|
15
|
+
private errorHandler;
|
|
16
|
+
private itemCacheFactory;
|
|
17
|
+
private itemEntryFactory;
|
|
18
|
+
private itemEntryService;
|
|
19
|
+
private keyService;
|
|
20
|
+
private promiseService;
|
|
21
|
+
private templateFactory;
|
|
22
|
+
entries: ItemCache;
|
|
23
|
+
templates: {
|
|
24
|
+
[itemType: string]: Template;
|
|
25
|
+
};
|
|
26
|
+
constructor(apiFormatter: ApiFormatter, apiRequestService: ApiRequestServiceInterface, batchStatusFactory: BatchStatusFactory, columnExpansionFactory: ColumnExpansionFactory, columnHandler: ColumnHandler, columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil, errorHandler: ErrorHandlerInterface, itemCacheFactory: ItemCacheFactory, itemEntryFactory: ItemEntryFactory, itemEntryService: ItemEntryService, keyService: KeyService, promiseService: PromiseLibraryInterface, templateFactory: TemplateFactory);
|
|
27
|
+
fetchItem(itemType: ItemType, itemId: ItemId, options: any, localItemCache: ItemCache): PromiseInterface<ItemEntry>;
|
|
28
|
+
fetchNewItem(itemType: ItemType, options: ItemOptions, localItemCache: ItemCache): PromiseInterface<TemplateItemEntryMap>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param itemType
|
|
32
|
+
* @param itemIds
|
|
33
|
+
* @param options
|
|
34
|
+
* @returns {PromiseInterface<ItemEntry[]>}
|
|
35
|
+
*
|
|
36
|
+
* For every itemid find the status of the ItemEntry and resolve the promises so the result is
|
|
37
|
+
* a usable ItemEntry
|
|
38
|
+
*/
|
|
39
|
+
fetchItems(itemType: ItemType, itemIds: ItemId[], options: any, localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
40
|
+
resolveCached(itemEntry: ItemEntry, status: ENTRY_STATUS, options: any): PromiseInterface<ItemEntry>;
|
|
41
|
+
resolveLocal(itemEntry: ItemEntry, parent: any, template: any, localItemCache: ItemCache): TemplateItemEntryMap;
|
|
42
|
+
resolveExpansion(itemEntry: ItemEntry, columnExpansion: ColumnExpansion, response: ApiResponse): ItemEntry;
|
|
43
|
+
resolveRemote(itemEntry: ItemEntry, columnSet: ColumnSet, response: ApiResponse): ItemEntry | null;
|
|
44
|
+
resolveRemoteValues(itemEntry: ItemEntry, response: ApiResponse): ItemEntry | null;
|
|
45
|
+
getResponseFields(itemEntry: ItemEntry, columnSet: any, response: ApiResponse): {
|
|
46
|
+
initial: FieldMap;
|
|
47
|
+
derived: FieldMap;
|
|
48
|
+
} | null;
|
|
49
|
+
fetchTemplate(itemType: string, templateOptions?: any, templateColumns?: any): PromiseInterface<Template>;
|
|
50
|
+
getEntryStatus(itemType: ItemType, itemId: ItemId, options: any, localItemCache: ItemCache): EntryStatus<ItemEntry> | null;
|
|
51
|
+
isColumnSuperset(itemEntry: ItemEntry, columns: RequestColumns): any;
|
|
52
|
+
getCachedEntryStatus(itemEntry: ItemEntry, options: any): ENTRY_STATUS;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param itemType
|
|
56
|
+
* @param {BatchStatus} batchStatus
|
|
57
|
+
* @param requestColumns
|
|
58
|
+
* @param resolved
|
|
59
|
+
* @returns {ItemEntry[]}
|
|
60
|
+
*
|
|
61
|
+
* for every type of entry status there is in this batch request make sure the entries get resolved.
|
|
62
|
+
* then return a array of the resulting ItemEntryArray
|
|
63
|
+
*/
|
|
64
|
+
batchResolve(itemType: ItemType, batchStatus: BatchStatus, requestColumns: RequestColumns, resolved: {
|
|
65
|
+
entries: ItemEntry[];
|
|
66
|
+
requests?: ApiResponseProcessor;
|
|
67
|
+
}): ItemEntry[] | PromiseInterface<any>;
|
|
68
|
+
createLocalEntries(parentType: ItemType, localParentId: ItemId, template: any, itemIdConversion: ItemIdConversionMap, localItemCache: ItemCache, excludeItemTypes?: ItemType[]): TemplateLinkedItemEntryMap[];
|
|
69
|
+
fetchTitle(itemType: ItemType, itemId: ItemId, deferRequest: boolean | undefined, localItemCache: ItemCache): PromiseInterface<string>;
|
|
70
|
+
resolveDerivedValues(itemEntries: ItemEntry[], columns: ColumnInfo[], localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
71
|
+
private getDefaultValuesByColumn(itemEntries, rootColumn);
|
|
72
|
+
private getItemIdByColumn(itemEntry, column);
|
|
73
|
+
private fetchDerivedValuesByColumn(itemEntries, rootColumn, localItemCache);
|
|
74
|
+
requestItem(itemEntry: ItemEntry, requestColumns?: RequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
75
|
+
requestItems(itemType: ItemType, itemIds: ItemId[], columns: RequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
76
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ApiResponseProcessor, ColumnExpansion, ColumnSet, ItemHandler, QueryService } from '../classes';
|
|
2
|
-
import { ColumnExpansionFactory, ColumnSetFactory, ItemEntryFactory } from '../factories';
|
|
3
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry, ItemEntry } from '../models';
|
|
5
|
-
import { ApiResponse, EntryParentNull, ItemId, ItemType, PromiseInterface, RequestColumns } from '../types';
|
|
6
|
-
export declare class ItemRequestService {
|
|
7
|
-
private apiRequestService;
|
|
8
|
-
private errorHandler;
|
|
9
|
-
private itemHandler;
|
|
10
|
-
private columnExpansionFactory;
|
|
11
|
-
private columnSetFactory;
|
|
12
|
-
private itemEntryFactory;
|
|
13
|
-
private queryService;
|
|
14
|
-
private promiseService;
|
|
15
|
-
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, columnExpansionFactory: ColumnExpansionFactory, columnSetFactory: ColumnSetFactory, itemEntryFactory: ItemEntryFactory, queryService: QueryService, promiseService: PromiseLibraryInterface);
|
|
16
|
-
requestItem(itemType: any, itemId: any, columns: any): PromiseInterface<ApiResponseProcessor>;
|
|
17
|
-
requestItems(collectionEntry: CollectionEntry, query?: any, columns?: any): PromiseInterface<ApiResponseProcessor>;
|
|
18
|
-
requestLinkItems(parentType: any, parentIdArray: any, itemType: any, query: any, columns: any): PromiseInterface<ApiResponseProcessor>;
|
|
19
|
-
processExpansion(requestColumns: RequestColumns, response: ApiResponse, itemType: ItemType, itemEntries: ItemEntry[]): ColumnExpansion;
|
|
20
|
-
processResponse(response: ApiResponse, idArray: ItemId[], parent: EntryParentNull, columnSet: ColumnSet, columnExpansion?: ColumnExpansion): PromiseInterface<ItemEntry[]>;
|
|
21
|
-
handleCachedItem(itemEntry: ItemEntry, response: ApiResponse, columnExpansion: ColumnExpansion): ItemEntry;
|
|
22
|
-
processLinkResponse(response: ApiResponse, parentType: ItemType, parentIdArray: ItemId[], itemType: ItemType, options: any): Promise<any>;
|
|
23
|
-
}
|
|
1
|
+
import { ApiResponseProcessor, ColumnExpansion, ColumnSet, ItemHandler, QueryService } from '../classes';
|
|
2
|
+
import { ColumnExpansionFactory, ColumnSetFactory, ItemEntryFactory } from '../factories';
|
|
3
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry, ItemEntry } from '../models';
|
|
5
|
+
import { ApiResponse, EntryParentNull, ItemId, ItemType, PromiseInterface, RequestColumns } from '../types';
|
|
6
|
+
export declare class ItemRequestService {
|
|
7
|
+
private apiRequestService;
|
|
8
|
+
private errorHandler;
|
|
9
|
+
private itemHandler;
|
|
10
|
+
private columnExpansionFactory;
|
|
11
|
+
private columnSetFactory;
|
|
12
|
+
private itemEntryFactory;
|
|
13
|
+
private queryService;
|
|
14
|
+
private promiseService;
|
|
15
|
+
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, columnExpansionFactory: ColumnExpansionFactory, columnSetFactory: ColumnSetFactory, itemEntryFactory: ItemEntryFactory, queryService: QueryService, promiseService: PromiseLibraryInterface);
|
|
16
|
+
requestItem(itemType: any, itemId: any, columns: any): PromiseInterface<ApiResponseProcessor>;
|
|
17
|
+
requestItems(collectionEntry: CollectionEntry, query?: any, columns?: any): PromiseInterface<ApiResponseProcessor>;
|
|
18
|
+
requestLinkItems(parentType: any, parentIdArray: any, itemType: any, query: any, columns: any): PromiseInterface<ApiResponseProcessor>;
|
|
19
|
+
processExpansion(requestColumns: RequestColumns, response: ApiResponse, itemType: ItemType, itemEntries: ItemEntry[]): ColumnExpansion;
|
|
20
|
+
processResponse(response: ApiResponse, idArray: ItemId[], parent: EntryParentNull, columnSet: ColumnSet, columnExpansion?: ColumnExpansion): PromiseInterface<ItemEntry[]>;
|
|
21
|
+
handleCachedItem(itemEntry: ItemEntry, response: ApiResponse, columnExpansion: ColumnExpansion): ItemEntry;
|
|
22
|
+
processLinkResponse(response: ApiResponse, parentType: ItemType, parentIdArray: ItemId[], itemType: ItemType, options: any): Promise<any>;
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class ItemResourceService {
|
|
2
|
-
constructor();
|
|
3
|
-
processOptions(options: any): any;
|
|
4
|
-
compareOptions(first: any, second: any): boolean;
|
|
5
|
-
}
|
|
1
|
+
export declare class ItemResourceService {
|
|
2
|
+
constructor();
|
|
3
|
+
processOptions(options: any): any;
|
|
4
|
+
compareOptions(first: any, second: any): boolean;
|
|
5
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ItemId, StateKey } from '../types';
|
|
2
|
-
export declare class KeyService {
|
|
3
|
-
separator: string;
|
|
4
|
-
constructor();
|
|
5
|
-
getSingleKey(itemType: string, itemId: number | string): string;
|
|
6
|
-
getCssKey(): any;
|
|
7
|
-
parseStateKey(stateKey: string): StateKey | null;
|
|
8
|
-
getDuplicateStateKey(itemId: string | number): string;
|
|
9
|
-
getNewStateKey(templateType: string): string;
|
|
10
|
-
getLocalId(): ItemId;
|
|
11
|
-
getLocalDuplicateId(): ItemId;
|
|
12
|
-
getRandomString(): string;
|
|
13
|
-
isLocalId(itemId: ItemId | string): boolean;
|
|
14
|
-
isNewId(itemId: ItemId | string): boolean;
|
|
15
|
-
isDuplicateId(itemId: ItemId | string): boolean;
|
|
16
|
-
}
|
|
1
|
+
import { ItemId, StateKey } from '../types';
|
|
2
|
+
export declare class KeyService {
|
|
3
|
+
separator: string;
|
|
4
|
+
constructor();
|
|
5
|
+
getSingleKey(itemType: string, itemId: number | string): string;
|
|
6
|
+
getCssKey(): any;
|
|
7
|
+
parseStateKey(stateKey: string): StateKey | null;
|
|
8
|
+
getDuplicateStateKey(itemId: string | number): string;
|
|
9
|
+
getNewStateKey(templateType: string): string;
|
|
10
|
+
getLocalId(): ItemId;
|
|
11
|
+
getLocalDuplicateId(): ItemId;
|
|
12
|
+
getRandomString(): string;
|
|
13
|
+
isLocalId(itemId: ItemId | string): boolean;
|
|
14
|
+
isNewId(itemId: ItemId | string): boolean;
|
|
15
|
+
isDuplicateId(itemId: ItemId | string): boolean;
|
|
16
|
+
}
|