@rentman/rm-core 1.0.5 → 1.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/dist/definitions/src/classes/ApiFormatter.d.ts +1 -0
- package/dist/definitions/src/classes/ChangesCompiler.d.ts +4 -4
- package/dist/definitions/src/classes/ChangesProcessor.d.ts +13 -13
- package/dist/definitions/src/classes/ColumnCache.d.ts +3 -3
- package/dist/definitions/src/classes/ColumnExpansion.d.ts +1 -1
- package/dist/definitions/src/classes/CreateRequest.d.ts +2 -10
- package/dist/definitions/src/classes/ItemAdministrator.d.ts +12 -8
- package/dist/definitions/src/classes/ItemHandler.d.ts +1 -1
- package/dist/definitions/src/classes/ModuleChangesCompiler.d.ts +4 -4
- package/dist/definitions/src/classes/PromiseService.d.ts +2 -2
- package/dist/definitions/src/classes/QueryMatcher.d.ts +5 -5
- package/dist/definitions/src/classes/QueryParser.d.ts +10 -10
- package/dist/definitions/src/models/ItemEntry.d.ts +1 -1
- package/dist/rm-core.js +1 -1
- package/dist/rm-core.js.map +1 -1
- package/package.json +3 -3
|
@@ -27,8 +27,8 @@ export default class ChangesCompiler {
|
|
|
27
27
|
addUpdateEntry(itemEntry: any): void;
|
|
28
28
|
addCreateEntry(itemEntry: any): void;
|
|
29
29
|
postProcess(): void;
|
|
30
|
-
private processSingleItems;
|
|
31
|
-
private isEditableCollection;
|
|
32
|
-
private hasEditableItems;
|
|
33
|
-
private processCollections;
|
|
30
|
+
private processSingleItems();
|
|
31
|
+
private isEditableCollection(collectionEntry);
|
|
32
|
+
private hasEditableItems(collectionEntry);
|
|
33
|
+
private processCollections();
|
|
34
34
|
}
|
|
@@ -30,17 +30,17 @@ export default class ChangesProcessor {
|
|
|
30
30
|
buildMoveRequest(compilationEntries: any): {};
|
|
31
31
|
getMapValue(itemType: any, itemId: any, map: any): any;
|
|
32
32
|
execute(singleItems: any, collections: any, breakupByParent?: boolean, parameters?: any, collectionOptions?: any, onAfterCreateCallback?: any): any;
|
|
33
|
-
private executeCreateRequests;
|
|
34
|
-
private executeCreateRequest;
|
|
35
|
-
private prioritizeUpdateRequests;
|
|
36
|
-
private executeUpdateRequests;
|
|
37
|
-
private executeUpdateRequest;
|
|
38
|
-
private executeDeleteRequests;
|
|
39
|
-
private executeDeleteRequest;
|
|
40
|
-
private executeMoveRequests;
|
|
41
|
-
private processMoveResponse;
|
|
42
|
-
private addCollectionMapEntry;
|
|
43
|
-
private forEachCollection;
|
|
44
|
-
private onItemsCreated;
|
|
45
|
-
private executeRequests;
|
|
33
|
+
private executeCreateRequests(compilation, parameters, conversionMap, breakupByParent, onAfterCreateCallback);
|
|
34
|
+
private executeCreateRequest(requestResource, conversionMap);
|
|
35
|
+
private prioritizeUpdateRequests(compilation, parameters);
|
|
36
|
+
private executeUpdateRequests(itemTypes, compilation, parameters);
|
|
37
|
+
private executeUpdateRequest(itemType, itemEntries, parameterMap);
|
|
38
|
+
private executeDeleteRequests(compilation);
|
|
39
|
+
private executeDeleteRequest(itemType, itemEntries);
|
|
40
|
+
private executeMoveRequests(compilation, conversionMap);
|
|
41
|
+
private processMoveResponse(response, compilationEntries);
|
|
42
|
+
private addCollectionMapEntry(collectionMap, parentId, itemEntry, value);
|
|
43
|
+
private forEachCollection(collectionMap, method);
|
|
44
|
+
private onItemsCreated(conversionMap, singleItems, collections);
|
|
45
|
+
private executeRequests(changes, parameters, breakupByParent, onAfterCreateCallback);
|
|
46
46
|
}
|
|
@@ -12,7 +12,7 @@ export default class ColumnCache {
|
|
|
12
12
|
};
|
|
13
13
|
containsAll(itemType: any): boolean;
|
|
14
14
|
getColumns(itemType: any): {};
|
|
15
|
-
private retrieveColumns;
|
|
16
|
-
private retrieveColumn;
|
|
17
|
-
private getColumn;
|
|
15
|
+
private retrieveColumns(itemType, requestColumns, requestAccumulator, responseAccumulator);
|
|
16
|
+
private retrieveColumn(itemType, requestColumn, requestAccumulator, responseAccumulator);
|
|
17
|
+
private getColumn(itemType, columnId);
|
|
18
18
|
}
|
|
@@ -12,5 +12,5 @@ export default class ColumnExpansion {
|
|
|
12
12
|
requestColumnsTrue: boolean;
|
|
13
13
|
constructor(columnHandler: ColumnHandler, columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil, itemType: string, requestColumns: any | boolean, responseColumns: any);
|
|
14
14
|
run(columnInfo: any, returnExpansionResult: boolean): any;
|
|
15
|
-
private expandColumnInfo;
|
|
15
|
+
private expandColumnInfo(columnInfo);
|
|
16
16
|
}
|
|
@@ -15,14 +15,6 @@ export default class CreateRequest {
|
|
|
15
15
|
finalizeRequest(requestResource: any): any;
|
|
16
16
|
setRequestParent(parentType: any, requestResource: any): boolean;
|
|
17
17
|
run(): any[];
|
|
18
|
-
initializeRequest():
|
|
19
|
-
|
|
20
|
-
requestType: string;
|
|
21
|
-
items: {};
|
|
22
|
-
};
|
|
23
|
-
columns: import("./RequestColumnExpansion").default;
|
|
24
|
-
items: {};
|
|
25
|
-
collections: {};
|
|
26
|
-
};
|
|
27
|
-
private extendRequest;
|
|
18
|
+
initializeRequest(): any;
|
|
19
|
+
private extendRequest(itemEntries, requestParentId, destination);
|
|
28
20
|
}
|
|
@@ -5,9 +5,13 @@ import ApiRequestServiceInterface from '../interfaces/ApiRequestServiceInterface
|
|
|
5
5
|
import AuthInterface from '../interfaces/AuthInterface';
|
|
6
6
|
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
7
7
|
import ResourceCacheInterface from '../interfaces/ResourceCacheInterface';
|
|
8
|
+
import CollectionResource from '../models/CollectionResource';
|
|
9
|
+
import ItemResource from '../models/ItemResource';
|
|
10
|
+
import CollectionCache from './CollectionCache';
|
|
8
11
|
import CollectionEntryService from "./CollectionEntryService";
|
|
9
12
|
import CollectionHandler from "./CollectionHandler";
|
|
10
13
|
import CollectionResourceService from './CollectionResourceService';
|
|
14
|
+
import ItemCache from './ItemCache';
|
|
11
15
|
import ItemEntryService from './ItemEntryService';
|
|
12
16
|
import ItemHandler from './ItemHandler';
|
|
13
17
|
import ItemRequestService from "./ItemRequestService";
|
|
@@ -68,19 +72,19 @@ export default class ItemAdministrator {
|
|
|
68
72
|
getLinkCollectionsFromDef(definition: any): any;
|
|
69
73
|
getAllLinkCollections(linkType: string, itemType: string, options: any): Promise<any>;
|
|
70
74
|
getItemByDef(definition: any, isRoot: boolean): any;
|
|
71
|
-
cloneItem(newItemId: number, itemResource: any, options: any):
|
|
72
|
-
cloneCollection(collectionResource: any, options: any, conversionMap: any):
|
|
75
|
+
cloneItem(newItemId: number, itemResource: any, options: any): ItemResource;
|
|
76
|
+
cloneCollection(collectionResource: any, options: any, conversionMap: any): CollectionResource;
|
|
73
77
|
/**
|
|
74
78
|
* @deprecated
|
|
75
79
|
*/
|
|
76
80
|
saveCurrentTab(closeTab: any, parameters: any, breakupByParent: any, onAfterCreateCallback: any, keepTabHeading: any): any;
|
|
77
81
|
saveCurrentResourceCache(closeTab: boolean, parameters: any, breakupByParent: boolean, onAfterCreateCallback: any, keepTabHeading?: boolean): any;
|
|
78
|
-
getCurrentCollections():
|
|
79
|
-
getCurrentItems():
|
|
82
|
+
getCurrentCollections(): CollectionCache;
|
|
83
|
+
getCurrentItems(): ItemCache;
|
|
80
84
|
getCurrentChanges(): void;
|
|
81
|
-
addSingleItem(itemEntry: any, options: any, isRoot?: boolean):
|
|
85
|
+
addSingleItem(itemEntry: any, options: any, isRoot?: boolean): ItemResource;
|
|
82
86
|
addSingleItems(itemEntries: any[], options: any): any[];
|
|
83
|
-
addCollection(collectionEntry: any, resourceOptions: any, processOptions?: any):
|
|
87
|
+
addCollection(collectionEntry: any, resourceOptions: any, processOptions?: any): CollectionResource;
|
|
84
88
|
addCollections(collectionEntries: any[], resourceOptions: any): {};
|
|
85
89
|
processLinkedItems(linkedEntries: any[], options: any, addToCollections: boolean): {};
|
|
86
90
|
/**
|
|
@@ -96,8 +100,8 @@ export default class ItemAdministrator {
|
|
|
96
100
|
addToCollections(itemEntries: any[], resultCollectionResource: any): any;
|
|
97
101
|
removeFromCollections(itemEntries: any[], resultCollectionResource: any): any;
|
|
98
102
|
updateItemIdMap(collectionMap: any, conversionMap: any): void;
|
|
99
|
-
createCollectionResource(collectionEntry: any, resourceOptions: any, processOptions?: any):
|
|
100
|
-
createItemResource(itemEntry: any, options: any, isRoot: boolean):
|
|
103
|
+
createCollectionResource(collectionEntry: any, resourceOptions: any, processOptions?: any): CollectionResource;
|
|
104
|
+
createItemResource(itemEntry: any, options: any, isRoot: boolean): ItemResource;
|
|
101
105
|
createItemResources(itemEntries: any[], options: any): any[];
|
|
102
106
|
/**
|
|
103
107
|
* @deprecated
|
|
@@ -66,5 +66,5 @@ export default class ItemHandler {
|
|
|
66
66
|
fetchTitle(itemType: string, itemId: number, deferRequest?: boolean): any;
|
|
67
67
|
requestItem(itemType: string, itemId: number | number[], columns: any): Promise<any>;
|
|
68
68
|
updateItemId(itemEntry: any, itemId: any): ItemEntry;
|
|
69
|
-
private setCreator;
|
|
69
|
+
private setCreator(itemEntry);
|
|
70
70
|
}
|
|
@@ -11,8 +11,8 @@ export default class ModuleChangesCompiler {
|
|
|
11
11
|
destination: any;
|
|
12
12
|
constructor(itemEntryService: ItemEntryService, rootItemEntry: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache);
|
|
13
13
|
process(): void;
|
|
14
|
-
private createParentMap;
|
|
15
|
-
private processItems;
|
|
16
|
-
private processItem;
|
|
17
|
-
private getItemsByParent;
|
|
14
|
+
private createParentMap(itemCache);
|
|
15
|
+
private processItems(itemType, itemEntries, linkAccumulator);
|
|
16
|
+
private processItem(itemEntry);
|
|
17
|
+
private getItemsByParent(parentType, parentId);
|
|
18
18
|
}
|
|
@@ -4,11 +4,11 @@ export default class QueryMatcher {
|
|
|
4
4
|
parentType: string;
|
|
5
5
|
parentId: number;
|
|
6
6
|
fields: object;
|
|
7
|
-
itemType
|
|
7
|
+
itemType: string;
|
|
8
8
|
constructor(apiFormatter: ApiFormatter, parentType: string, parentId: number, fields: object, itemType?: string);
|
|
9
|
-
private compareValues;
|
|
9
|
+
private compareValues(value, queryValue);
|
|
10
10
|
matchQuery(query: any): boolean | string;
|
|
11
|
-
private matchLinkedToQuery;
|
|
12
|
-
private matchComplexQuery;
|
|
13
|
-
private matchSimpleQuery;
|
|
11
|
+
private matchLinkedToQuery(query);
|
|
12
|
+
private matchComplexQuery(query);
|
|
13
|
+
private matchSimpleQuery(value, query);
|
|
14
14
|
}
|
|
@@ -2,15 +2,15 @@ export default class QueryParser {
|
|
|
2
2
|
query: any;
|
|
3
3
|
parameters: any;
|
|
4
4
|
constructor(query: any, parameters: any);
|
|
5
|
-
private processValue;
|
|
6
|
-
private compareParsedQueries;
|
|
5
|
+
private processValue(value);
|
|
6
|
+
private compareParsedQueries(a, b);
|
|
7
7
|
parse(query?: any): any;
|
|
8
|
-
private parseSearchQuery;
|
|
9
|
-
private parseCustomQuery;
|
|
10
|
-
private parseCustomParameters;
|
|
11
|
-
private parseSimpleQuery;
|
|
12
|
-
private parseLinkedToQuery;
|
|
13
|
-
private parseComplexQuery;
|
|
14
|
-
private parseConditions;
|
|
15
|
-
private formatValue;
|
|
8
|
+
private parseSearchQuery(value);
|
|
9
|
+
private parseCustomQuery(custom, parameters);
|
|
10
|
+
private parseCustomParameters(parameters);
|
|
11
|
+
private parseSimpleQuery(key, value, comparator?);
|
|
12
|
+
private parseLinkedToQuery(linkedTo, query, reverse, not);
|
|
13
|
+
private parseComplexQuery(conditions, operator);
|
|
14
|
+
private parseConditions(conditions);
|
|
15
|
+
private formatValue(value);
|
|
16
16
|
}
|