@rentman/rm-core 1.5.5 → 1.5.7-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +33 -0
- package/dist/rm-core.js +219 -253
- package/dist/rm-core.min.js +1 -1
- package/dist/src/classes/ApiFormatter.d.ts +20 -21
- package/dist/src/classes/ApiResponseProcessor.d.ts +24 -16
- package/dist/src/classes/ChangesCompilation.d.ts +3 -3
- package/dist/src/classes/ChangesProcessor.d.ts +15 -15
- package/dist/src/classes/CollectionCache.d.ts +9 -9
- package/dist/src/classes/CollectionEntryService.d.ts +4 -7
- package/dist/src/classes/CollectionHandler.d.ts +8 -8
- package/dist/src/classes/CollectionMatcher.d.ts +24 -13
- package/dist/src/classes/CollectionResourceService.d.ts +2 -1
- package/dist/src/classes/ColumnCache.d.ts +4 -4
- package/dist/src/classes/ColumnExpansion.d.ts +5 -4
- package/dist/src/classes/ColumnSet.d.ts +7 -7
- package/dist/src/classes/ColumnUtil.d.ts +36 -22
- package/dist/src/classes/CreateRequest.d.ts +1 -1
- package/dist/src/classes/ItemAdministrator.d.ts +123 -45
- package/dist/src/classes/ItemCache.d.ts +8 -7
- package/dist/src/classes/ItemEntryService.d.ts +2 -2
- package/dist/src/classes/ItemHandler.d.ts +8 -8
- package/dist/src/classes/ItemRequestService.d.ts +2 -2
- package/dist/src/classes/KeyService.d.ts +1 -1
- package/dist/src/classes/LocalCache.d.ts +40 -16
- package/dist/src/classes/LockService.d.ts +22 -13
- package/dist/src/classes/ModuleChangesCompilation.d.ts +4 -4
- package/dist/src/classes/QueryMatcher.d.ts +5 -5
- package/dist/src/classes/QueryParser.d.ts +14 -13
- package/dist/src/classes/QueryService.d.ts +5 -16
- package/dist/src/classes/RequestColumnExpansion.d.ts +5 -3
- package/dist/src/classes/SocketMessageHandler.d.ts +10 -9
- package/dist/src/classes/Util.d.ts +6 -5
- package/dist/src/constants.d.ts +1 -1
- package/dist/src/factories/ChangesCompilationFactory.d.ts +2 -2
- package/dist/src/factories/CollectionResourceFactory.d.ts +12 -2
- package/dist/src/factories/ColumnInfoFactory.d.ts +1 -1
- package/dist/src/factories/ColumnSetFactory.d.ts +1 -1
- package/dist/src/factories/ItemEntryFactory.d.ts +1 -1
- package/dist/src/factories/ItemResourceFactory.d.ts +9 -3
- package/dist/src/factories/QueryParserFactory.d.ts +2 -1
- package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +1 -0
- package/dist/src/interfaces/PromiseLibraryInterface.d.ts +19 -9
- package/dist/src/models/CollectionEditResource.d.ts +8 -8
- package/dist/src/models/CollectionEntry.d.ts +37 -23
- package/dist/src/models/CollectionEntryOptions.d.ts +9 -17
- package/dist/src/models/CollectionResource.d.ts +20 -20
- package/dist/src/models/CollectionResourceOptions.d.ts +17 -32
- package/dist/src/models/CollectionViewResource.d.ts +2 -2
- package/dist/src/models/EditResource.d.ts +1 -1
- package/dist/src/models/ItemEntry.d.ts +9 -7
- package/dist/src/models/ItemEntryOptions.d.ts +8 -15
- package/dist/src/models/ItemResource.d.ts +1 -1
- package/dist/src/models/ItemResourceOptions.d.ts +6 -10
- package/dist/src/types/ItemTypesCollection.d.ts +27 -34
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CollectionCache, CollectionHandler, CollectionMatcher, ItemCache, ItemHandler, ItemRequestService, KeyService, LocalCache, QueryService } from '../classes';
|
|
1
|
+
import { CollectionCache, CollectionHandler, CollectionMatcher, ItemCache, ItemHandler, ItemRequestService, KeyService, LocalCache, ModuleChangesCompilationResult, QueryService } from '../classes';
|
|
2
2
|
import { CollectionMatcherFactory, ColumnSetFactory, LocalCacheFactory, ModuleChangesCompilationFactory } from '../factories';
|
|
3
3
|
import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LocalCacheManagerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry, CollectionResource, CollectionResourceOptionsInterface, EditResource, ItemEntry, ItemResource, ItemResourceOptionsInterface } from '../models';
|
|
5
|
-
import { ApiQuery, CollectionDefinition, CollectionOptionsInterface, CollectionResourceParentIdMap, CreateRequestParameterMap, ItemId, ItemIdConversionMap, ItemOptionsInterface, ItemResourcesItemTypeMap, ItemType, LinkCollectionDefinition, LinkedItemEntryMap, LocalCacheCallbackCondition, OnSaveCallback, PromiseInterface
|
|
4
|
+
import { CollectionEditResource, CollectionEntry, CollectionResource, CollectionResourceOptionsInterface, CollectionViewResource, EditResource, ItemEntry, ItemResource, ItemResourceOptionsInterface, ViewResource } from '../models';
|
|
5
|
+
import { ApiQuery, CollectionDefinition, CollectionOptionsInterface, CollectionResourceParentIdMap, ConversionMap, CreateRequestParameterMap, ItemId, ItemIdConversionMap, ItemOptionsInterface, ItemResourcesItemTypeMap, ItemType, LinkCollectionDefinition, LinkedItemEntryMap, LocalCacheCallbackCondition, OnSaveCallback, PromiseInterface } from '../types';
|
|
6
6
|
export declare class ItemAdministrator {
|
|
7
7
|
private apiRequestService;
|
|
8
8
|
private authInterface;
|
|
@@ -24,60 +24,138 @@ export declare class ItemAdministrator {
|
|
|
24
24
|
fetchTitle(itemType: ItemType, itemId: ItemId, deferRequest?: boolean): PromiseInterface<string>;
|
|
25
25
|
getItemById(itemType: ItemType, itemId: ItemId, options?: ItemOptionsInterface, isRoot?: boolean): PromiseInterface<ItemResource>;
|
|
26
26
|
getItemsById(itemType: ItemType, itemIds: ItemId[], options?: ItemOptionsInterface): PromiseInterface<ItemResource[]>;
|
|
27
|
-
getItemsByQuery(itemType: ItemType, query: ApiQuery, options
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
getNewResource(itemType: ItemType, options
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
getItemsByQuery(itemType: ItemType, query: ApiQuery, options: ItemOptionsInterface & {
|
|
28
|
+
edit: true;
|
|
29
|
+
}): PromiseInterface<EditResource[]>;
|
|
30
|
+
getItemsByQuery(itemType: ItemType, query: ApiQuery, options: ItemOptionsInterface): PromiseInterface<ViewResource[]>;
|
|
31
|
+
getNewResource(itemType: ItemType, options: ItemOptionsInterface, returnLinks: true, isRoot?: boolean): PromiseInterface<{
|
|
32
|
+
main: EditResource;
|
|
33
|
+
linked: ItemResourcesItemTypeMap;
|
|
34
|
+
}>;
|
|
35
|
+
getNewResource(itemType: ItemType, options: ItemOptionsInterface, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<EditResource>;
|
|
36
|
+
getDuplicateById(itemType: ItemType, duplicateId: ItemId, options: ItemOptionsInterface & {
|
|
37
|
+
edit: true;
|
|
38
|
+
}, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<EditResource>;
|
|
39
|
+
getDuplicateById(itemType: ItemType, duplicateId: ItemId, options: ItemOptionsInterface, returnLinks?: boolean, isRoot?: boolean): PromiseInterface<ViewResource>;
|
|
40
|
+
getItemByState(itemType: ItemType, stateKey: ItemId | string, options: ItemOptionsInterface & {
|
|
41
|
+
edit: true;
|
|
42
|
+
}, isRoot?: boolean): PromiseInterface<EditResource>;
|
|
43
|
+
getItemByState(itemType: ItemType, stateKey: ItemId | string, options: ItemOptionsInterface, isRoot?: boolean): PromiseInterface<ViewResource>;
|
|
34
44
|
getCollectionDef(itemType: ItemType, options: CollectionOptionsInterface): CollectionDefinition;
|
|
35
45
|
getLinkCollectionsDef(linkType: ItemType, linkIdArray: ItemId[] | (() => ItemId[]), itemType: ItemType, linkField: string, options: CollectionOptionsInterface): LinkCollectionDefinition;
|
|
36
|
-
getCollection(itemType: ItemType, options: CollectionOptionsInterface
|
|
46
|
+
getCollection(itemType: ItemType, options: CollectionOptionsInterface & {
|
|
47
|
+
editCollection: true;
|
|
48
|
+
editItems: true;
|
|
49
|
+
}): PromiseInterface<CollectionEditResource<EditResource>>;
|
|
50
|
+
getCollection(itemType: ItemType, options: CollectionOptionsInterface & {
|
|
51
|
+
editItems: true;
|
|
52
|
+
}): PromiseInterface<CollectionViewResource<EditResource>>;
|
|
53
|
+
getCollection(itemType: ItemType, options: CollectionOptionsInterface & {
|
|
54
|
+
editCollection: true;
|
|
55
|
+
}): PromiseInterface<CollectionEditResource>;
|
|
56
|
+
getCollection(itemType: ItemType, options: CollectionOptionsInterface): PromiseInterface<CollectionViewResource>;
|
|
37
57
|
getCollectionFromDef(definition: CollectionDefinition): PromiseInterface<CollectionResource>;
|
|
38
58
|
/**
|
|
39
59
|
* @deprecated, use `parent` in options
|
|
40
60
|
*/
|
|
41
61
|
getLinkCollection(linkType: ItemType, linkId: ItemId, itemType: ItemType, options?: CollectionOptionsInterface): PromiseInterface<CollectionResource>;
|
|
42
|
-
getLinkCollections(linkType: ItemType, linkIdArray: ItemId[], itemType: ItemType, options: CollectionOptionsInterface
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
getLinkCollections(linkType: ItemType, linkIdArray: ItemId[], itemType: ItemType, options: CollectionOptionsInterface & {
|
|
63
|
+
editItems: true;
|
|
64
|
+
editCollection: true;
|
|
65
|
+
}): PromiseInterface<CollectionResourceParentIdMap<CollectionEditResource<EditResource>>>;
|
|
66
|
+
getLinkCollections(linkType: ItemType, linkIdArray: ItemId[], itemType: ItemType, options: CollectionOptionsInterface & {
|
|
67
|
+
editCollection: true;
|
|
68
|
+
}): PromiseInterface<CollectionResourceParentIdMap<CollectionEditResource<ViewResource>>>;
|
|
69
|
+
getLinkCollections(linkType: ItemType, linkIdArray: ItemId[], itemType: ItemType, options: CollectionOptionsInterface & {
|
|
70
|
+
editItems: true;
|
|
71
|
+
}): PromiseInterface<CollectionResourceParentIdMap<CollectionViewResource<EditResource>>>;
|
|
72
|
+
getLinkCollections(linkType: ItemType, linkIdArray: ItemId[], itemType: ItemType, options: CollectionOptionsInterface): PromiseInterface<CollectionResourceParentIdMap<CollectionViewResource<ViewResource>>>;
|
|
73
|
+
getLinkCollectionsFromDef(definition: LinkCollectionDefinition): PromiseInterface<CollectionResourceParentIdMap>;
|
|
74
|
+
getAllLinkCollections(linkType: ItemType, itemType: ItemType, options: CollectionOptionsInterface & {
|
|
75
|
+
editItems: true;
|
|
76
|
+
editCollection: true;
|
|
77
|
+
}): PromiseInterface<CollectionResourceParentIdMap<CollectionEditResource<EditResource>>>;
|
|
78
|
+
getAllLinkCollections(linkType: ItemType, itemType: ItemType, options: CollectionOptionsInterface & {
|
|
79
|
+
editCollection: true;
|
|
80
|
+
}): PromiseInterface<CollectionResourceParentIdMap<CollectionEditResource<ViewResource>>>;
|
|
81
|
+
getAllLinkCollections(linkType: ItemType, itemType: ItemType, options: CollectionOptionsInterface & {
|
|
82
|
+
editItems: true;
|
|
83
|
+
}): PromiseInterface<CollectionResourceParentIdMap<CollectionViewResource<EditResource>>>;
|
|
84
|
+
getAllLinkCollections(linkType: ItemType, itemType: ItemType, options: CollectionOptionsInterface): PromiseInterface<CollectionResourceParentIdMap<CollectionViewResource<ViewResource>>>;
|
|
85
|
+
cloneItem(itemResource: ItemResource, options: ItemOptionsInterface & {
|
|
86
|
+
edit: true;
|
|
87
|
+
}): EditResource;
|
|
88
|
+
cloneItem(itemResource: ItemResource, options: ItemOptionsInterface): ViewResource;
|
|
89
|
+
cloneCollection(collectionResource: CollectionResource, options: CollectionOptionsInterface & {
|
|
90
|
+
editItems: true;
|
|
91
|
+
editCollection: true;
|
|
92
|
+
}, conversionMap: ItemIdConversionMap): CollectionEditResource<EditResource>;
|
|
93
|
+
cloneCollection(collectionResource: CollectionResource, options: CollectionOptionsInterface & {
|
|
94
|
+
editItems: true;
|
|
95
|
+
}, conversionMap: ItemIdConversionMap): CollectionViewResource<EditResource>;
|
|
96
|
+
cloneCollection(collectionResource: CollectionResource, options: CollectionOptionsInterface & {
|
|
97
|
+
editCollection: true;
|
|
98
|
+
}, conversionMap: ItemIdConversionMap): CollectionEditResource<ViewResource>;
|
|
99
|
+
cloneCollection(collectionResource: CollectionResource, options: CollectionOptionsInterface, conversionMap: ItemIdConversionMap): CollectionViewResource<ViewResource>;
|
|
100
|
+
saveCurrentLocalCache(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakupByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void): PromiseInterface<ItemIdConversionMap>;
|
|
48
101
|
getCurrentCollections(): CollectionCache;
|
|
49
102
|
getCurrentItems(): ItemCache;
|
|
50
|
-
getModuleChanges(localCache?: LocalCache):
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
addCollection(collectionEntry: CollectionEntry, options: CollectionResourceOptionsInterface
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
private
|
|
71
|
-
|
|
72
|
-
|
|
103
|
+
getModuleChanges(localCache?: LocalCache): ModuleChangesCompilationResult;
|
|
104
|
+
addSingleItem(itemEntry: ItemEntry, options: ItemResourceOptionsInterface & {
|
|
105
|
+
edit: true;
|
|
106
|
+
}, isRoot?: boolean, localCache?: LocalCache): EditResource;
|
|
107
|
+
addSingleItem(itemEntry: ItemEntry, options: ItemResourceOptionsInterface, isRoot?: boolean, localCache?: LocalCache): ViewResource;
|
|
108
|
+
addSingleItems(itemEntries: ItemEntry[], options: ItemResourceOptionsInterface & {
|
|
109
|
+
edit: true;
|
|
110
|
+
}): EditResource[];
|
|
111
|
+
addSingleItems(itemEntries: ItemEntry[], options: ItemResourceOptionsInterface): ViewResource[];
|
|
112
|
+
addCollection(collectionEntry: CollectionEntry, options: CollectionResourceOptionsInterface & {
|
|
113
|
+
editCollection: true;
|
|
114
|
+
editItems: true;
|
|
115
|
+
}): CollectionEditResource<EditResource>;
|
|
116
|
+
addCollection(collectionEntry: CollectionEntry, options: CollectionResourceOptionsInterface & {
|
|
117
|
+
editItems: true;
|
|
118
|
+
}): CollectionViewResource<EditResource>;
|
|
119
|
+
addCollection(collectionEntry: CollectionEntry, options: CollectionResourceOptionsInterface & {
|
|
120
|
+
editCollection: true;
|
|
121
|
+
}): CollectionEditResource<ViewResource>;
|
|
122
|
+
addCollection(collectionEntry: CollectionEntry, options: CollectionResourceOptionsInterface): CollectionViewResource<ViewResource>;
|
|
123
|
+
private createItemResources;
|
|
124
|
+
processLinkedItems(linkedEntries: LinkedItemEntryMap[], options: ItemOptionsInterface & {
|
|
125
|
+
edit: true;
|
|
126
|
+
}, addToCollections: boolean): ItemResourcesItemTypeMap<EditResource>;
|
|
127
|
+
processLinkedItems(linkedEntries: LinkedItemEntryMap[], options: ItemOptionsInterface, addToCollections: boolean): ItemResourcesItemTypeMap<ViewResource>;
|
|
128
|
+
expandProcessLinkedItems(linkedEntries: LinkedItemEntryMap[], options: ItemOptionsInterface & {
|
|
129
|
+
edit: true;
|
|
130
|
+
}): PromiseInterface<ItemResourcesItemTypeMap<EditResource>>;
|
|
131
|
+
expandProcessLinkedItems(linkedEntries: LinkedItemEntryMap[], options: ItemOptionsInterface): PromiseInterface<ItemResourcesItemTypeMap<ViewResource>>;
|
|
132
|
+
private constructOnItemsExpanded;
|
|
133
|
+
private expandAddToCollections;
|
|
134
|
+
private getColumnSuperset;
|
|
73
135
|
getLocalCache(): LocalCache;
|
|
74
136
|
resetLocalCache(): void;
|
|
75
|
-
addToCollections(itemEntries: ItemEntry[], resultCollectionResource
|
|
76
|
-
|
|
137
|
+
addToCollections(itemEntries: ItemEntry[], resultCollectionResource: CollectionResource<EditResource>): EditResource[];
|
|
138
|
+
addToCollections(itemEntries: ItemEntry[], resultCollectionResource: CollectionResource<ViewResource>): ViewResource[];
|
|
139
|
+
addToCollections(itemEntries: ItemEntry[], resultCollectionResource?: null): null;
|
|
140
|
+
removeFromCollections<T extends CollectionResource = CollectionViewResource>(itemEntries: ItemEntry[], resultCollectionResource: T): T['items'];
|
|
141
|
+
removeFromCollections(itemEntries: ItemEntry[], resultCollectionResource?: null): null;
|
|
77
142
|
saveLocal(itemResource: ItemResource): PromiseInterface<ItemResource>;
|
|
78
|
-
updateItemIdMap(collectionMap: any, conversionMap:
|
|
79
|
-
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface
|
|
80
|
-
|
|
143
|
+
updateItemIdMap(collectionMap: any, conversionMap: ConversionMap): void;
|
|
144
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface & {
|
|
145
|
+
editItems: true;
|
|
146
|
+
editCollection: true;
|
|
147
|
+
}): CollectionEditResource<EditResource>;
|
|
148
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface & {
|
|
149
|
+
editItems: true;
|
|
150
|
+
}): CollectionViewResource<EditResource>;
|
|
151
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface & {
|
|
152
|
+
editCollection: true;
|
|
153
|
+
}): CollectionEditResource<ViewResource>;
|
|
154
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface): CollectionViewResource<ViewResource>;
|
|
155
|
+
createItemResource(itemEntry: ItemEntry, options: ItemResourceOptionsInterface & {
|
|
156
|
+
edit: true;
|
|
157
|
+
}, isRoot: boolean): EditResource;
|
|
158
|
+
createItemResource(itemEntry: ItemEntry, options: ItemResourceOptionsInterface, isRoot: boolean): ViewResource;
|
|
81
159
|
onBeforeSave(key: string, callback: (localCache: LocalCache) => any, condition?: LocalCacheCallbackCondition): () => void;
|
|
82
160
|
onSaveSuccess(key: string, callback: OnSaveCallback, condition?: LocalCacheCallbackCondition): () => void;
|
|
83
161
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { QueryMatcherFactory } from '../factories';
|
|
2
2
|
import { ItemEntry } from '../models';
|
|
3
|
-
import { ItemEntryParentIdMap, ItemId, ItemType } from '../types';
|
|
3
|
+
import { CollectionQuery, ItemEntryParentIdMap, ItemId, ItemType } from '../types';
|
|
4
4
|
export declare class ItemCache {
|
|
5
5
|
private queryMatcherFactory;
|
|
6
6
|
private entries;
|
|
7
7
|
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
8
8
|
some(callback: (itemEntry: ItemEntry) => boolean): boolean;
|
|
9
9
|
getByItemType(itemType: ItemType): ItemEntry[];
|
|
10
|
-
getByQuery(itemType: ItemType, query:
|
|
11
|
-
getLocalByQuery(itemType: ItemType, query:
|
|
10
|
+
getByQuery(itemType: ItemType, query: CollectionQuery): ItemEntry[];
|
|
11
|
+
getLocalByQuery(itemType: ItemType, query: CollectionQuery): ItemEntry[];
|
|
12
12
|
getByParent(parentType: ItemType, parentId: ItemId, itemType: ItemType): ItemEntry[];
|
|
13
13
|
batchGetLocalByParent(parentType: ItemType, parentIds: ItemId[], itemType: ItemType, additionalQuery: any): ItemEntryParentIdMap;
|
|
14
14
|
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
15
15
|
toArray(): ItemEntry[];
|
|
16
16
|
add(itemEntry: ItemEntry): ItemEntry;
|
|
17
|
-
get(itemType: ItemType, itemId:
|
|
18
|
-
contains(itemType: ItemType, itemId:
|
|
19
|
-
updateItemId(itemEntry: ItemEntry, oldItemId:
|
|
17
|
+
get(itemType: ItemType, itemId: string | ItemId): undefined | ItemEntry;
|
|
18
|
+
contains(itemType: ItemType, itemId: string | ItemId): boolean;
|
|
19
|
+
updateItemId(itemEntry: ItemEntry, oldItemId: string | ItemId): ItemEntry;
|
|
20
20
|
clear(itemEntry: ItemEntry): boolean;
|
|
21
|
-
|
|
21
|
+
clearByItemId(itemType: ItemType, itemId: ItemId): boolean;
|
|
22
|
+
matchQuery(itemEntry: ItemEntry, query: CollectionQuery): boolean;
|
|
22
23
|
}
|
|
@@ -17,8 +17,8 @@ export declare class ItemEntryService {
|
|
|
17
17
|
batchExpandConversionMap(itemEntries: ItemEntry[], conversionMap: ItemIdConversionMap): ItemIdConversionMap;
|
|
18
18
|
getConversionValue(itemType: ItemType, itemId: ItemId, map: ItemIdConversionMap): ItemId | undefined;
|
|
19
19
|
batchClone(itemEntries: ItemEntry[], conversionMap?: ItemIdConversionMap): ItemEntry[];
|
|
20
|
-
getFullName(firstName:
|
|
21
|
-
getTitleField(itemType:
|
|
20
|
+
getFullName(firstName: string, infix: string, lastName: string): string;
|
|
21
|
+
getTitleField(itemType: ItemType): string;
|
|
22
22
|
getLocalDefaultValues(): FieldMap;
|
|
23
23
|
hasLocalDefaultValue(columnId: string): boolean;
|
|
24
24
|
}
|
|
@@ -38,13 +38,13 @@ export declare class ItemHandler {
|
|
|
38
38
|
fetchItems(itemType: ItemType, itemIds: ItemId[], options: ItemEntryOptions, localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
39
39
|
handleBatchResponse(batchStatus: BatchStatus<ItemEntry>, localItemCache: ItemCache, requestColumns: ApiRequestColumns, response: ApiResponseProcessor | null, responseColumns: ResponseColumnMap | null, columnExpansion?: ColumnExpansion): PromiseInterface<boolean>;
|
|
40
40
|
resolveCached(itemEntry: ItemEntry, status: ENTRY_STATUS, options: ItemEntryOptions, localItemCache: ItemCache): PromiseInterface<ItemEntry>;
|
|
41
|
-
private getColumnDifference
|
|
41
|
+
private getColumnDifference;
|
|
42
42
|
resolveLocal(itemEntry: ItemEntry, parent: EntryParentNull, template: Template, localItemCache: ItemCache): TemplateItemEntryMap;
|
|
43
43
|
resolveExpansion(itemEntry: ItemEntry, columnExpansion: ColumnExpansion, response: ApiResponse): ItemEntry;
|
|
44
|
-
private clearItem
|
|
45
|
-
private resolveRemote
|
|
46
|
-
private resolveRemoteValues
|
|
47
|
-
private getResponseFields
|
|
44
|
+
private clearItem;
|
|
45
|
+
private resolveRemote;
|
|
46
|
+
private resolveRemoteValues;
|
|
47
|
+
private getResponseFields;
|
|
48
48
|
fetchTemplate(itemType: ItemType, templateOptions?: any, templateColumns?: any): PromiseInterface<Template>;
|
|
49
49
|
getEntryStatus(itemType: ItemType, itemId: ItemId, parent: EntryParentNull, deferRequest: boolean, localItemCache: ItemCache, addToLocalCache: boolean, columnSubsetCache: ColumnSubsetCache): EntryStatus<ItemEntry> | null;
|
|
50
50
|
getCachedEntryStatus(itemEntry: ItemEntry, columnSubsetCache: ColumnSubsetCache): ENTRY_STATUS;
|
|
@@ -52,9 +52,9 @@ export declare class ItemHandler {
|
|
|
52
52
|
createLocalEntries(parentType: ItemType, localParentId: ItemId, template: Template, itemIdConversion: ItemIdConversionMap, localItemCache: ItemCache, filterItemEntry?: (itemEntry: ItemEntry) => boolean): LinkedItemEntryMap[];
|
|
53
53
|
expandLocalEntries(itemType: ItemType, itemEntries: ItemEntry[], requestColumns: ApiRequestColumns, responseColumns: ResponseColumnMap, localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
54
54
|
resolveDerivedValues(itemEntries: ItemEntry[], columns: ColumnInfo[], localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
55
|
-
private setDefaultValuesByColumn
|
|
56
|
-
private getItemIdByColumn
|
|
57
|
-
private fetchDerivedValuesByColumn
|
|
55
|
+
private setDefaultValuesByColumn;
|
|
56
|
+
private getItemIdByColumn;
|
|
57
|
+
private fetchDerivedValuesByColumn;
|
|
58
58
|
requestItem(itemEntry: ItemEntry, requestColumns?: ApiRequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
59
59
|
requestItems(itemType: ItemType, itemIds: ItemId[], columns: ApiRequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
60
60
|
}
|
|
@@ -13,9 +13,9 @@ export declare class ItemRequestService {
|
|
|
13
13
|
private queryService;
|
|
14
14
|
private promiseService;
|
|
15
15
|
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, columnExpansionFactory: ColumnExpansionFactory, columnSetFactory: ColumnSetFactory, itemEntryFactory: ItemEntryFactory, queryService: QueryService, promiseService: PromiseLibraryInterface);
|
|
16
|
-
requestItem(itemType:
|
|
16
|
+
requestItem(itemType: ItemType, itemId: ItemId, columns: ApiRequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
17
17
|
requestItems(collectionEntry: CollectionEntry, query?: ApiQuery, columns?: ApiRequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
18
|
-
requestLinkItems(parentType:
|
|
18
|
+
requestLinkItems(parentType: ItemType, parentIdArray: ItemId[], itemType: ItemType, query: ApiQuery, columns: ApiRequestColumns): PromiseInterface<ApiResponseProcessor>;
|
|
19
19
|
processExpansion(requestColumns: ApiRequestColumns, response: ApiResponse, itemType: ItemType, itemEntries: ItemEntry[]): ColumnExpansion;
|
|
20
20
|
processResponse(response: ApiResponse, idArray: ItemId[], parent: EntryParentNull, columnSet: ColumnSet, columnExpansion?: ColumnExpansion): PromiseInterface<ItemEntry[]>;
|
|
21
21
|
handleCachedItem(itemEntry: ItemEntry, response: ApiResponse, columnExpansion: ColumnExpansion): ItemEntry;
|
|
@@ -3,7 +3,7 @@ export declare class KeyService {
|
|
|
3
3
|
separator: string;
|
|
4
4
|
constructor();
|
|
5
5
|
getSingleKey(itemType: string, itemId: number | string): string;
|
|
6
|
-
getCssKey():
|
|
6
|
+
getCssKey(): string;
|
|
7
7
|
parseStateKey(stateKey: string): StateKey | null;
|
|
8
8
|
getDuplicateStateKey(itemId: string | number): string;
|
|
9
9
|
getNewStateKey(templateType: string): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CollectionCache, ItemCache, LockService } from '../classes';
|
|
2
2
|
import { ChangesProcessorFactory, CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from '../factories';
|
|
3
3
|
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry, CollectionResource, CollectionResourceOptionsInterface, ItemEntry, ItemResource } from '../models';
|
|
5
|
-
import { CollectionEntryParentIdMap, CreateRequestParameterMap, ItemIdConversionMap, ItemOptionsInterface, LocalCacheCallbackCondition, OnSaveCallback } from '../types';
|
|
4
|
+
import { CollectionEditResource, CollectionEntry, CollectionResource, CollectionResourceOptionsInterface, CollectionViewResource, EditResource, ItemEntry, ItemResource, ViewResource } from '../models';
|
|
5
|
+
import { CollectionEntryParentIdMap, CollectionResourceParentIdMap, CreateRequestParameterMap, ItemIdConversionMap, ItemOptionsInterface, LocalCacheCallbackCondition, OnSaveCallback, PromiseInterface } from '../types';
|
|
6
6
|
export declare class LocalCache {
|
|
7
7
|
private errorHandler;
|
|
8
8
|
private lockService;
|
|
@@ -23,29 +23,53 @@ export declare class LocalCache {
|
|
|
23
23
|
private changesInterval;
|
|
24
24
|
hasChanges: boolean;
|
|
25
25
|
constructor(errorHandler: ErrorHandlerInterface, lockService: LockService, itemResourceFactory: ItemResourceFactory, collectionCacheFactory: CollectionCacheFactory, changesProcessorFactory: ChangesProcessorFactory, itemCacheFactory: ItemCacheFactory, collectionResourceFactory: CollectionResourceFactory, promiseService: PromiseLibraryInterface, id?: string);
|
|
26
|
-
createItemResource(itemEntry: ItemEntry, options: ItemOptionsInterface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
createItemResource(itemEntry: ItemEntry, options: ItemOptionsInterface & {
|
|
27
|
+
edit: true;
|
|
28
|
+
}, isRoot?: boolean, isNew?: boolean): EditResource;
|
|
29
|
+
createItemResource(itemEntry: ItemEntry, options: ItemOptionsInterface, isRoot?: boolean, isNew?: boolean): ViewResource;
|
|
30
|
+
createItemResources(itemEntries: ItemEntry[], options: ItemOptionsInterface & {
|
|
31
|
+
edit: true;
|
|
32
|
+
}): EditResource[];
|
|
33
|
+
createItemResources(itemEntries: ItemEntry[], options: ItemOptionsInterface): ViewResource[];
|
|
34
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface & {
|
|
35
|
+
editItems: true;
|
|
36
|
+
editCollection: true;
|
|
37
|
+
}): CollectionEditResource<EditResource>;
|
|
38
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface & {
|
|
39
|
+
editCollection: true;
|
|
40
|
+
}): CollectionEditResource<ViewResource>;
|
|
41
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface & {
|
|
42
|
+
editItems: true;
|
|
43
|
+
}): CollectionViewResource<EditResource>;
|
|
44
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: CollectionResourceOptionsInterface): CollectionViewResource<ViewResource>;
|
|
45
|
+
createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: CollectionResourceOptionsInterface & {
|
|
46
|
+
editItems: true;
|
|
47
|
+
editCollection: true;
|
|
48
|
+
}): CollectionResourceParentIdMap<CollectionEditResource<EditResource>>;
|
|
49
|
+
createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: CollectionResourceOptionsInterface & {
|
|
50
|
+
editCollection: true;
|
|
51
|
+
}): CollectionResourceParentIdMap<CollectionEditResource<ViewResource>>;
|
|
52
|
+
createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: CollectionResourceOptionsInterface & {
|
|
53
|
+
editItems: true;
|
|
54
|
+
}): CollectionResourceParentIdMap<CollectionViewResource<EditResource>>;
|
|
55
|
+
createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: CollectionResourceOptionsInterface): CollectionResourceParentIdMap<CollectionViewResource<ViewResource>>;
|
|
32
56
|
clearItem(itemResource: ItemResource): void;
|
|
33
57
|
clearItemEntry(itemEntry: ItemEntry): void;
|
|
34
58
|
clearCollection(collectionResource: CollectionResource): void;
|
|
35
59
|
clearResources(isSubTabChange?: boolean): void;
|
|
36
|
-
updateSingleItems(conversionMap:
|
|
37
|
-
revertChanges():
|
|
60
|
+
updateSingleItems(conversionMap: ItemIdConversionMap): void;
|
|
61
|
+
revertChanges(): PromiseInterface<void>;
|
|
38
62
|
resetCollection(collectionEntry: CollectionEntry): void;
|
|
39
63
|
detectChanges(): boolean;
|
|
40
|
-
private collectionHasChanges
|
|
64
|
+
private collectionHasChanges;
|
|
41
65
|
isLockable(): boolean;
|
|
42
|
-
save(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakUpByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void):
|
|
66
|
+
save(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakUpByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void): PromiseInterface<ItemIdConversionMap>;
|
|
43
67
|
onBeforeSave(key: string, callback: (localCache: LocalCache) => any, condition?: LocalCacheCallbackCondition): () => void;
|
|
44
68
|
onSaveSuccess(key: string, callback: OnSaveCallback, condition?: LocalCacheCallbackCondition): () => void;
|
|
45
|
-
private executeCallbackEvent
|
|
46
|
-
private executeCallbacks
|
|
69
|
+
private executeCallbackEvent;
|
|
70
|
+
private executeCallbacks;
|
|
47
71
|
enableChangesWatcher(): void;
|
|
48
72
|
disableChangesWatcher(): void;
|
|
49
|
-
onDeactivateItem(itemEntry:
|
|
50
|
-
onActivateItem(itemEntry:
|
|
73
|
+
onDeactivateItem(itemEntry: ItemEntry): void;
|
|
74
|
+
onActivateItem(itemEntry: ItemEntry): void;
|
|
51
75
|
}
|
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { KeyService } from '../classes';
|
|
2
2
|
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
3
|
import { ItemEntry } from '../models';
|
|
4
|
+
import { ItemId, ItemMap, 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
|
+
};
|
|
4
13
|
export declare class LockService {
|
|
5
14
|
private apiRequestService;
|
|
6
15
|
private errorHandler;
|
|
7
16
|
private keyService;
|
|
8
17
|
private promiseService;
|
|
9
|
-
lockItems:
|
|
10
|
-
promises:
|
|
18
|
+
lockItems: ItemMap<LockToken>;
|
|
19
|
+
promises: ItemMap<PromiseInterface<LockToken>>;
|
|
11
20
|
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
12
|
-
getValue
|
|
13
|
-
setValue
|
|
14
|
-
getLocks():
|
|
15
|
-
hasLock(lockTokenId:
|
|
16
|
-
isLocked(itemEntry: ItemEntry):
|
|
17
|
-
getMessage(itemEntry:
|
|
18
|
-
fetchCachedLock(itemEntry: ItemEntry):
|
|
19
|
-
fetchLock(itemEntry: ItemEntry):
|
|
20
|
-
requestLock(itemEntry: ItemEntry):
|
|
21
|
-
deleteLock(itemEntry:
|
|
22
|
-
clearLock(itemEntry:
|
|
21
|
+
private getValue;
|
|
22
|
+
private setValue;
|
|
23
|
+
getLocks(): this['lockItems'];
|
|
24
|
+
hasLock(lockTokenId: ItemId): boolean;
|
|
25
|
+
isLocked(itemEntry: ItemEntry): boolean;
|
|
26
|
+
getMessage(itemEntry: ItemEntry): undefined | string;
|
|
27
|
+
fetchCachedLock(itemEntry: ItemEntry): PromiseInterface<undefined | LockToken>;
|
|
28
|
+
fetchLock(itemEntry: ItemEntry): PromiseInterface<string>;
|
|
29
|
+
requestLock(itemEntry: ItemEntry): PromiseInterface<LockToken>;
|
|
30
|
+
deleteLock(itemEntry: ItemEntry): PromiseInterface<void>;
|
|
31
|
+
clearLock(itemEntry: ItemEntry): boolean;
|
|
23
32
|
}
|
|
@@ -14,8 +14,8 @@ export declare class ModuleChangesCompilation {
|
|
|
14
14
|
destination: ApiRequestItemMap;
|
|
15
15
|
constructor(rootItemEntry: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache);
|
|
16
16
|
process(): ModuleChangesCompilationResult;
|
|
17
|
-
private createParentMap
|
|
18
|
-
private processItems
|
|
19
|
-
private processItem
|
|
20
|
-
private getItemsByParent
|
|
17
|
+
private createParentMap;
|
|
18
|
+
private processItems;
|
|
19
|
+
private processItem;
|
|
20
|
+
private getItemsByParent;
|
|
21
21
|
}
|
|
@@ -6,9 +6,9 @@ export declare class QueryMatcher {
|
|
|
6
6
|
fields: FieldMap;
|
|
7
7
|
parent: EntryParentNull;
|
|
8
8
|
constructor(apiFormatter: ApiFormatter, itemType: ItemType, fields: FieldMap, parent?: EntryParentNull);
|
|
9
|
-
private compareValues
|
|
10
|
-
matchQuery(query: any): boolean |
|
|
11
|
-
private matchLinkedToQuery
|
|
12
|
-
private matchComplexQuery
|
|
13
|
-
private matchSimpleQuery
|
|
9
|
+
private compareValues;
|
|
10
|
+
matchQuery(query: any): boolean | 'maybe';
|
|
11
|
+
private matchLinkedToQuery;
|
|
12
|
+
private matchComplexQuery;
|
|
13
|
+
private matchSimpleQuery;
|
|
14
14
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { ApiQuery } from '../types';
|
|
1
2
|
export declare class QueryParser {
|
|
2
|
-
query:
|
|
3
|
+
query: ApiQuery;
|
|
3
4
|
parameters: any;
|
|
4
|
-
constructor(query:
|
|
5
|
-
private
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
5
|
+
constructor(query: ApiQuery, parameters?: object);
|
|
6
|
+
private compareParsedQueries;
|
|
7
|
+
parse(query?: ApiQuery): [object, string];
|
|
8
|
+
private parseSearchQuery;
|
|
9
|
+
private parseCustomQuery;
|
|
10
|
+
private parseCustomParameters;
|
|
11
|
+
private parseSimpleQuery;
|
|
12
|
+
private parseLinkedToQuery;
|
|
13
|
+
private parseComplexQuery;
|
|
14
|
+
private parseConditions;
|
|
15
|
+
private formatValue;
|
|
16
|
+
private processValue;
|
|
16
17
|
}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
+
import { ApiQuery, EntryParentNull, ItemId } from '../types';
|
|
1
2
|
export declare class QueryService {
|
|
2
3
|
constructor();
|
|
3
|
-
addAndCondition(query:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
conditions: any;
|
|
8
|
-
operator?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
conditions: any[];
|
|
11
|
-
operator: string;
|
|
12
|
-
};
|
|
13
|
-
addParentCondition(query: any, parent: any): any;
|
|
14
|
-
createNotIn(idArray: any): {
|
|
15
|
-
comparator: string;
|
|
16
|
-
key: string;
|
|
17
|
-
value: any;
|
|
18
|
-
};
|
|
4
|
+
addAndCondition(query: ApiQuery, condition: ApiQuery): ApiQuery;
|
|
5
|
+
addOrCondition(query: ApiQuery, condition: ApiQuery): ApiQuery;
|
|
6
|
+
addParentCondition(query: ApiQuery, parent: EntryParentNull): ApiQuery;
|
|
7
|
+
createNotIn(idArray: ItemId[]): ApiQuery;
|
|
19
8
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ColumnSet, ColumnUtil } from '../classes';
|
|
2
2
|
import { ApiRequestColumns } from '../types';
|
|
3
|
+
declare type RequestColumnMap = {
|
|
4
|
+
[itemType: string]: ApiRequestColumns;
|
|
5
|
+
};
|
|
3
6
|
export declare class RequestColumnExpansion {
|
|
4
7
|
private columnUtil;
|
|
5
8
|
private columns;
|
|
6
9
|
private columnSetIdMap;
|
|
7
10
|
constructor(columnUtil: ColumnUtil);
|
|
8
11
|
expand(columnSet: ColumnSet): void;
|
|
9
|
-
get():
|
|
10
|
-
[itemType: string]: ApiRequestColumns;
|
|
11
|
-
};
|
|
12
|
+
get(): RequestColumnMap;
|
|
12
13
|
}
|
|
14
|
+
export {};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { ApiFormatter, CollectionHandler, ItemHandler } from '../classes';
|
|
2
2
|
import { ColumnExpansionFactory, ColumnSetFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, LocalCacheManagerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
4
|
import { ItemEntry, ItemResource } from '../models';
|
|
5
5
|
import { ApiRequestColumns, ApiResponse, CollectionMatchResult, FieldMap, FunctionChangesResolveSocketMessage, GroupedExtendedCollectionMatchResult, ItemId, ItemType, PromiseInterface, ResponseColumn, SocketMessage } from '../types';
|
|
6
6
|
export declare type SocketCollectionMap = {
|
|
7
7
|
[itemId: number]: CollectionMatchResult;
|
|
8
8
|
};
|
|
9
9
|
export declare class SocketMessageHandler {
|
|
10
|
-
private
|
|
10
|
+
private apiFormatter;
|
|
11
11
|
private apiRequestService;
|
|
12
|
-
private itemHandler;
|
|
13
|
-
private itemEntryFactory;
|
|
14
12
|
private collectionHandler;
|
|
15
|
-
private columnSetFactory;
|
|
16
13
|
private columnExpansionFactory;
|
|
17
|
-
private
|
|
18
|
-
private apiFormatter;
|
|
14
|
+
private columnSetFactory;
|
|
19
15
|
private errorHandler;
|
|
20
|
-
|
|
16
|
+
private itemEntryFactory;
|
|
17
|
+
private itemHandler;
|
|
18
|
+
private localCacheManager;
|
|
19
|
+
private promiseService;
|
|
20
|
+
private requestColumnExpansionFactory;
|
|
21
|
+
constructor(apiFormatter: ApiFormatter, apiRequestService: ApiRequestServiceInterface, collectionHandler: CollectionHandler, columnExpansionFactory: ColumnExpansionFactory, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemEntryFactory: ItemEntryFactory, itemHandler: ItemHandler, localCacheManager: LocalCacheManagerInterface, promiseService: PromiseLibraryInterface, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
21
22
|
onMessageReceived(message: SocketMessage): any;
|
|
22
23
|
formatMessageValues(values: any, columns: ResponseColumn[]): FieldMap;
|
|
23
24
|
createCollectionMap(itemType: ItemType, items: {
|
|
@@ -31,7 +32,7 @@ export declare class SocketMessageHandler {
|
|
|
31
32
|
processMessage(body: any): PromiseInterface<GroupedExtendedCollectionMatchResult>;
|
|
32
33
|
processFunctionChangesResolve(body: any): PromiseInterface<void>;
|
|
33
34
|
handleResponse(itemType: ItemType, requestIds: ItemId[], requestColumns: ApiRequestColumns, response: ApiResponse, collectionMap: SocketCollectionMap): GroupedExtendedCollectionMatchResult;
|
|
34
|
-
private isFunctionChangesResolveMessage
|
|
35
|
+
private isFunctionChangesResolveMessage;
|
|
35
36
|
handleCreate(message: FunctionChangesResolveSocketMessage): PromiseInterface<void>;
|
|
36
37
|
handleCreate(message: SocketMessage): PromiseInterface<ItemResource[]>;
|
|
37
38
|
handleUpdate(message: SocketMessage): PromiseInterface<void>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare function instantiateOptions(options: {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}, values: object): void;
|
|
3
4
|
export declare function shallowMerge(object: any, defaults: any): any;
|
|
4
5
|
export declare function hasProperties(object: any): boolean;
|
|
5
6
|
export declare function getFirstProperty(object: any): string | null;
|
|
6
7
|
export declare function inArray(needle: any, haystack: any): boolean;
|
|
7
|
-
export declare function filterArray<T>(source: T[], callback: (T) => boolean): boolean;
|
|
8
|
+
export declare function filterArray<T>(source: T[], callback: (T: any) => boolean): boolean;
|
|
8
9
|
export declare function emptyArray(array: any): void;
|
|
9
10
|
export declare function pathExists(source: any, path: any): boolean;
|
|
10
|
-
export declare function createPath(object:
|
|
11
|
+
export declare function createPath<T>(object: any, path: Array<number | string>, defaults: any[]): T;
|
|
11
12
|
export declare function getPath(object: {}, path: Array<number | string>, create?: boolean): any;
|
|
12
13
|
export declare function extend(dst: any, ...args: any[]): any;
|
|
13
14
|
export declare function merge(dst: any, ...args: any[]): any;
|
|
@@ -17,7 +18,7 @@ export declare function isString(value: any): boolean;
|
|
|
17
18
|
export declare function isNumber(value: any): boolean;
|
|
18
19
|
export declare function isDate(value: any): boolean;
|
|
19
20
|
export declare const isArray: (arg: any) => arg is any[];
|
|
20
|
-
export declare function isFunction(value: any):
|
|
21
|
+
export declare function isFunction<T>(value: any): value is T;
|
|
21
22
|
export declare function isRegExp(value: any): boolean;
|
|
22
23
|
export declare function isBoolean(value: any): boolean;
|
|
23
24
|
export declare function isElement(node: any): boolean;
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare enum ENTRY_STATUS {
|
|
|
7
7
|
EXPAND_LOCAL = "expand-local",
|
|
8
8
|
PROMISED_EXPAND_LOCAL = "promised-expand-local",
|
|
9
9
|
RESOLVE = "resolve",
|
|
10
|
-
RESOLVE_VALUES = "resolve-values"
|
|
10
|
+
RESOLVE_VALUES = "resolve-values"
|
|
11
11
|
}
|
|
12
12
|
export declare const ALL_PERMISSIONS = "7";
|
|
13
13
|
export declare const COLUMN_SEPERATOR = ">";
|