@rentman/rm-core 1.2.3 → 1.2.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 +13 -1
- package/dist/dist/classes/ApiFormatter.d.ts +40 -40
- package/dist/dist/classes/ApiRequestService.d.ts +18 -18
- package/dist/dist/classes/ApiResponseProcessor.d.ts +33 -33
- package/dist/dist/classes/BatchStatus.d.ts +19 -19
- package/dist/dist/classes/ChangesCompilation.d.ts +26 -26
- package/dist/dist/classes/ChangesProcessor.d.ts +37 -37
- package/dist/dist/classes/CollectionCache.d.ts +37 -37
- package/dist/dist/classes/CollectionEntryService.d.ts +26 -26
- package/dist/dist/classes/CollectionHandler.d.ts +56 -56
- package/dist/dist/classes/CollectionMatcher.d.ts +29 -29
- package/dist/dist/classes/CollectionResourceService.d.ts +5 -5
- package/dist/dist/classes/ColumnCache.d.ts +21 -21
- package/dist/dist/classes/ColumnExpansion.d.ts +14 -14
- package/dist/dist/classes/ColumnHandler.d.ts +21 -21
- package/dist/dist/classes/ColumnInfo.d.ts +12 -12
- package/dist/dist/classes/ColumnSet.d.ts +38 -38
- package/dist/dist/classes/ColumnUtil.d.ts +81 -81
- package/dist/dist/classes/CreateRequest.d.ts +20 -20
- package/dist/dist/classes/ItemAdministrator.d.ts +94 -95
- package/dist/dist/classes/ItemCache.d.ts +25 -25
- package/dist/dist/classes/ItemEntryService.d.ts +23 -21
- package/dist/dist/classes/ItemHandler.d.ts +76 -72
- package/dist/dist/classes/ItemRequestService.d.ts +23 -23
- package/dist/dist/classes/ItemResourceService.d.ts +5 -5
- package/dist/dist/classes/KeyService.d.ts +16 -17
- package/dist/dist/classes/LocalCache.d.ts +49 -49
- package/dist/dist/classes/LockService.d.ts +23 -23
- package/dist/dist/classes/ModuleChangesCompilation.d.ts +19 -19
- package/dist/dist/classes/QueryMatcher.d.ts +14 -14
- package/dist/dist/classes/QueryParser.d.ts +16 -16
- package/dist/dist/classes/QueryService.d.ts +19 -19
- package/dist/dist/classes/RequestColumnExpansion.d.ts +9 -9
- package/dist/dist/classes/SocketMessageHandler.d.ts +32 -32
- package/dist/dist/classes/Util.d.ts +25 -25
- package/dist/dist/classes/index.d.ts +34 -34
- package/dist/dist/constants.d.ts +16 -16
- package/dist/dist/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/dist/factories/BatchStatusFactory.d.ts +9 -9
- package/dist/dist/factories/ChangesCompilationFactory.d.ts +8 -8
- package/dist/dist/factories/ChangesProcessorFactory.d.ts +18 -18
- package/dist/dist/factories/CollectionCacheFactory.d.ts +7 -7
- package/dist/dist/factories/CollectionEntryFactory.d.ts +18 -18
- package/dist/dist/factories/CollectionMatcherFactory.d.ts +7 -7
- package/dist/dist/factories/CollectionResourceFactory.d.ts +14 -14
- package/dist/dist/factories/ColumnExpansionFactory.d.ts +6 -6
- package/dist/dist/factories/ColumnInfoFactory.d.ts +6 -6
- package/dist/dist/factories/ColumnSetFactory.d.ts +11 -11
- package/dist/dist/factories/CreateRequestFactory.d.ts +10 -10
- package/dist/dist/factories/ItemCacheFactory.d.ts +7 -7
- package/dist/dist/factories/ItemEntryFactory.d.ts +19 -19
- package/dist/dist/factories/ItemResourceFactory.d.ts +15 -15
- package/dist/dist/factories/LocalCacheFactory.d.ts +16 -16
- package/dist/dist/factories/ModuleChangesCompilationFactory.d.ts +5 -5
- package/dist/dist/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/dist/factories/QueryParserFactory.d.ts +5 -5
- package/dist/dist/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/dist/factories/TemplateFactory.d.ts +10 -10
- package/dist/dist/factories/index.d.ts +21 -21
- package/dist/dist/index.d.ts +7 -7
- package/dist/dist/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- package/dist/dist/interfaces/AuthInterface.d.ts +9 -9
- package/dist/dist/interfaces/ErrorHandlerInterface.d.ts +4 -4
- package/dist/dist/interfaces/LocalCacheManagerInterface.d.ts +5 -5
- package/dist/dist/interfaces/PromiseInterface.d.ts +14 -14
- package/dist/dist/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/dist/interfaces/index.d.ts +6 -6
- package/dist/dist/main.d.ts +48 -48
- package/dist/dist/models/CollectionEditResource.d.ts +15 -15
- package/dist/dist/models/CollectionEntry.d.ts +63 -63
- package/dist/dist/models/CollectionResource.d.ts +40 -40
- package/dist/dist/models/CollectionViewResource.d.ts +6 -6
- package/dist/dist/models/EditResource.d.ts +18 -18
- package/dist/dist/models/ItemEntry.d.ts +61 -61
- package/dist/dist/models/ItemResource.d.ts +17 -17
- package/dist/dist/models/Template.d.ts +11 -11
- package/dist/dist/models/ViewResource.d.ts +4 -4
- package/dist/dist/models/index.d.ts +9 -9
- package/dist/dist/types/ItemTypesCollection.d.ts +119 -125
- package/dist/dist/types/index.d.ts +1 -1
- package/dist/rm-core.js +6912 -6941
- package/dist/rm-core.min.js +1 -1
- package/package.json +1 -1
- package/readme.md +15 -15
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { CollectionCache, ItemCache, ItemResourceService, LockService } from '../classes';
|
|
2
|
-
import { ChangesProcessorFactory, CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
5
|
-
import { CollectionEntryParentIdMap, CreateRequestParameterMap, ItemIdConversionMap, ItemOptions, OnSaveCallback, LocalCacheCallbackCondition } from '../types';
|
|
6
|
-
export declare class LocalCache {
|
|
7
|
-
private errorHandler;
|
|
8
|
-
private lockService;
|
|
9
|
-
private itemResourceFactory;
|
|
10
|
-
private collectionCacheFactory;
|
|
11
|
-
private changesProcessorFactory;
|
|
12
|
-
private itemCacheFactory;
|
|
13
|
-
private collectionResourceFactory;
|
|
14
|
-
private itemResourceService;
|
|
15
|
-
private promiseService;
|
|
16
|
-
id: string;
|
|
17
|
-
items: ItemCache;
|
|
18
|
-
rootItem: ItemEntry | undefined;
|
|
19
|
-
collections: CollectionCache;
|
|
20
|
-
deferredCollections: CollectionCache;
|
|
21
|
-
tabRequestParameters: {};
|
|
22
|
-
private callbacks;
|
|
23
|
-
private changesInterval;
|
|
24
|
-
hasChanges: boolean;
|
|
25
|
-
constructor(errorHandler: ErrorHandlerInterface, lockService: LockService, itemResourceFactory: ItemResourceFactory, collectionCacheFactory: CollectionCacheFactory, changesProcessorFactory: ChangesProcessorFactory, itemCacheFactory: ItemCacheFactory, collectionResourceFactory: CollectionResourceFactory, itemResourceService: ItemResourceService, promiseService: PromiseInterface, id?: string);
|
|
26
|
-
createItemResource(itemEntry: ItemEntry, options: ItemOptions, isRoot?: boolean, isNew?: boolean): ItemResource;
|
|
27
|
-
createItemResources(itemEntries: ItemEntry[], options: ItemOptions): ItemResource[];
|
|
28
|
-
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: any): CollectionResource;
|
|
29
|
-
createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: any): {};
|
|
30
|
-
clearItem(itemResource: ItemResource): void;
|
|
31
|
-
clearItemEntry(itemEntry: ItemEntry): void;
|
|
32
|
-
clearCollection(collectionResource: CollectionResource): void;
|
|
33
|
-
clearResources(isSubTabChange?: boolean): void;
|
|
34
|
-
updateSingleItems(conversionMap: any): void;
|
|
35
|
-
revertChanges(): any;
|
|
36
|
-
resetCollection(collectionEntry: CollectionEntry): void;
|
|
37
|
-
detectChanges(): boolean;
|
|
38
|
-
private collectionHasChanges(collectionEntry);
|
|
39
|
-
isLockable(): boolean;
|
|
40
|
-
save(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakUpByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void): any;
|
|
41
|
-
onBeforeSave(key: string, callback: (localCache: LocalCache) => any, condition?: LocalCacheCallbackCondition): () => void;
|
|
42
|
-
onSaveSuccess(key: string, callback: OnSaveCallback, condition?: LocalCacheCallbackCondition): () => void;
|
|
43
|
-
private executeCallbackEvent<T>(callbacks, execute, closeTab);
|
|
44
|
-
private executeCallbacks<T>(callbacks, execute);
|
|
45
|
-
enableChangesWatcher(): void;
|
|
46
|
-
disableChangesWatcher(): void;
|
|
47
|
-
onDeactivateItem(itemEntry: any): void;
|
|
48
|
-
onActivateItem(itemEntry: any): void;
|
|
49
|
-
}
|
|
1
|
+
import { CollectionCache, ItemCache, ItemResourceService, LockService } from '../classes';
|
|
2
|
+
import { ChangesProcessorFactory, CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
5
|
+
import { CollectionEntryParentIdMap, CreateRequestParameterMap, ItemIdConversionMap, ItemOptions, OnSaveCallback, LocalCacheCallbackCondition } from '../types';
|
|
6
|
+
export declare class LocalCache {
|
|
7
|
+
private errorHandler;
|
|
8
|
+
private lockService;
|
|
9
|
+
private itemResourceFactory;
|
|
10
|
+
private collectionCacheFactory;
|
|
11
|
+
private changesProcessorFactory;
|
|
12
|
+
private itemCacheFactory;
|
|
13
|
+
private collectionResourceFactory;
|
|
14
|
+
private itemResourceService;
|
|
15
|
+
private promiseService;
|
|
16
|
+
id: string;
|
|
17
|
+
items: ItemCache;
|
|
18
|
+
rootItem: ItemEntry | undefined;
|
|
19
|
+
collections: CollectionCache;
|
|
20
|
+
deferredCollections: CollectionCache;
|
|
21
|
+
tabRequestParameters: {};
|
|
22
|
+
private callbacks;
|
|
23
|
+
private changesInterval;
|
|
24
|
+
hasChanges: boolean;
|
|
25
|
+
constructor(errorHandler: ErrorHandlerInterface, lockService: LockService, itemResourceFactory: ItemResourceFactory, collectionCacheFactory: CollectionCacheFactory, changesProcessorFactory: ChangesProcessorFactory, itemCacheFactory: ItemCacheFactory, collectionResourceFactory: CollectionResourceFactory, itemResourceService: ItemResourceService, promiseService: PromiseInterface, id?: string);
|
|
26
|
+
createItemResource(itemEntry: ItemEntry, options: ItemOptions, isRoot?: boolean, isNew?: boolean): ItemResource;
|
|
27
|
+
createItemResources(itemEntries: ItemEntry[], options: ItemOptions): ItemResource[];
|
|
28
|
+
createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: any): CollectionResource;
|
|
29
|
+
createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: any): {};
|
|
30
|
+
clearItem(itemResource: ItemResource): void;
|
|
31
|
+
clearItemEntry(itemEntry: ItemEntry): void;
|
|
32
|
+
clearCollection(collectionResource: CollectionResource): void;
|
|
33
|
+
clearResources(isSubTabChange?: boolean): void;
|
|
34
|
+
updateSingleItems(conversionMap: any): void;
|
|
35
|
+
revertChanges(): any;
|
|
36
|
+
resetCollection(collectionEntry: CollectionEntry): void;
|
|
37
|
+
detectChanges(): boolean;
|
|
38
|
+
private collectionHasChanges(collectionEntry);
|
|
39
|
+
isLockable(): boolean;
|
|
40
|
+
save(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakUpByParent?: boolean, onAfterCreateCallback?: (conversionMap: ItemIdConversionMap) => void): any;
|
|
41
|
+
onBeforeSave(key: string, callback: (localCache: LocalCache) => any, condition?: LocalCacheCallbackCondition): () => void;
|
|
42
|
+
onSaveSuccess(key: string, callback: OnSaveCallback, condition?: LocalCacheCallbackCondition): () => void;
|
|
43
|
+
private executeCallbackEvent<T>(callbacks, execute, closeTab);
|
|
44
|
+
private executeCallbacks<T>(callbacks, execute);
|
|
45
|
+
enableChangesWatcher(): void;
|
|
46
|
+
disableChangesWatcher(): void;
|
|
47
|
+
onDeactivateItem(itemEntry: any): void;
|
|
48
|
+
onActivateItem(itemEntry: any): void;
|
|
49
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { KeyService } from '../classes';
|
|
2
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
-
import { ItemEntry } from '../models';
|
|
4
|
-
export declare class LockService {
|
|
5
|
-
private apiRequestService;
|
|
6
|
-
private errorHandler;
|
|
7
|
-
private keyService;
|
|
8
|
-
private promiseService;
|
|
9
|
-
lockItems: {};
|
|
10
|
-
promises: {};
|
|
11
|
-
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseInterface);
|
|
12
|
-
getValue(itemEntry: ItemEntry, map: any): any;
|
|
13
|
-
setValue(itemEntry: ItemEntry, value: any, map: any): any;
|
|
14
|
-
getLocks(): {};
|
|
15
|
-
hasLock(lockTokenId: any): boolean;
|
|
16
|
-
isLocked(itemEntry: ItemEntry): any;
|
|
17
|
-
getMessage(itemEntry: any): any;
|
|
18
|
-
fetchCachedLock(itemEntry: ItemEntry): any;
|
|
19
|
-
fetchLock(itemEntry: ItemEntry): any;
|
|
20
|
-
requestLock(itemEntry: ItemEntry): any;
|
|
21
|
-
deleteLock(itemEntry: any): any;
|
|
22
|
-
clearLock(itemEntry: any): boolean;
|
|
23
|
-
}
|
|
1
|
+
import { KeyService } from '../classes';
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from '../models';
|
|
4
|
+
export declare class LockService {
|
|
5
|
+
private apiRequestService;
|
|
6
|
+
private errorHandler;
|
|
7
|
+
private keyService;
|
|
8
|
+
private promiseService;
|
|
9
|
+
lockItems: {};
|
|
10
|
+
promises: {};
|
|
11
|
+
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, keyService: KeyService, promiseService: PromiseInterface);
|
|
12
|
+
getValue(itemEntry: ItemEntry, map: any): any;
|
|
13
|
+
setValue(itemEntry: ItemEntry, value: any, map: any): any;
|
|
14
|
+
getLocks(): {};
|
|
15
|
+
hasLock(lockTokenId: any): boolean;
|
|
16
|
+
isLocked(itemEntry: ItemEntry): any;
|
|
17
|
+
getMessage(itemEntry: any): any;
|
|
18
|
+
fetchCachedLock(itemEntry: ItemEntry): any;
|
|
19
|
+
fetchLock(itemEntry: ItemEntry): any;
|
|
20
|
+
requestLock(itemEntry: ItemEntry): any;
|
|
21
|
+
deleteLock(itemEntry: any): any;
|
|
22
|
+
clearLock(itemEntry: any): boolean;
|
|
23
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { CollectionCache, ItemCache } from '../classes';
|
|
2
|
-
import { ItemEntry } from '../models';
|
|
3
|
-
export declare class ModuleChangesCompilation {
|
|
4
|
-
private rootItemEntry;
|
|
5
|
-
private singleItemCache;
|
|
6
|
-
private collectionCache;
|
|
7
|
-
parentMap: any;
|
|
8
|
-
destination: any;
|
|
9
|
-
constructor(rootItemEntry: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache);
|
|
10
|
-
process(): {
|
|
11
|
-
itemType: string;
|
|
12
|
-
itemId: number;
|
|
13
|
-
items: any;
|
|
14
|
-
};
|
|
15
|
-
private createParentMap(itemCache);
|
|
16
|
-
private processItems(itemType, itemEntries, linkAccumulator);
|
|
17
|
-
private processItem(itemEntry);
|
|
18
|
-
private getItemsByParent(parentType, parentId);
|
|
19
|
-
}
|
|
1
|
+
import { CollectionCache, ItemCache } from '../classes';
|
|
2
|
+
import { ItemEntry } from '../models';
|
|
3
|
+
export declare class ModuleChangesCompilation {
|
|
4
|
+
private rootItemEntry;
|
|
5
|
+
private singleItemCache;
|
|
6
|
+
private collectionCache;
|
|
7
|
+
parentMap: any;
|
|
8
|
+
destination: any;
|
|
9
|
+
constructor(rootItemEntry: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache);
|
|
10
|
+
process(): {
|
|
11
|
+
itemType: string;
|
|
12
|
+
itemId: number;
|
|
13
|
+
items: any;
|
|
14
|
+
};
|
|
15
|
+
private createParentMap(itemCache);
|
|
16
|
+
private processItems(itemType, itemEntries, linkAccumulator);
|
|
17
|
+
private processItem(itemEntry);
|
|
18
|
+
private getItemsByParent(parentType, parentId);
|
|
19
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ApiFormatter } from '../classes';
|
|
2
|
-
import { EntryParentNull, FieldMap, ItemType } from '../types';
|
|
3
|
-
export declare class QueryMatcher {
|
|
4
|
-
private apiFormatter;
|
|
5
|
-
itemType: ItemType;
|
|
6
|
-
fields: FieldMap;
|
|
7
|
-
parent: EntryParentNull;
|
|
8
|
-
constructor(apiFormatter: ApiFormatter, itemType: ItemType, fields: FieldMap, parent?: EntryParentNull);
|
|
9
|
-
private compareValues(value, queryValue);
|
|
10
|
-
matchQuery(query: any): boolean | string;
|
|
11
|
-
private matchLinkedToQuery(query);
|
|
12
|
-
private matchComplexQuery(query);
|
|
13
|
-
private matchSimpleQuery(value, query);
|
|
14
|
-
}
|
|
1
|
+
import { ApiFormatter } from '../classes';
|
|
2
|
+
import { EntryParentNull, FieldMap, ItemType } from '../types';
|
|
3
|
+
export declare class QueryMatcher {
|
|
4
|
+
private apiFormatter;
|
|
5
|
+
itemType: ItemType;
|
|
6
|
+
fields: FieldMap;
|
|
7
|
+
parent: EntryParentNull;
|
|
8
|
+
constructor(apiFormatter: ApiFormatter, itemType: ItemType, fields: FieldMap, parent?: EntryParentNull);
|
|
9
|
+
private compareValues(value, queryValue);
|
|
10
|
+
matchQuery(query: any): boolean | string;
|
|
11
|
+
private matchLinkedToQuery(query);
|
|
12
|
+
private matchComplexQuery(query);
|
|
13
|
+
private matchSimpleQuery(value, query);
|
|
14
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare class QueryParser {
|
|
2
|
-
query: any;
|
|
3
|
-
parameters: any;
|
|
4
|
-
constructor(query: any, parameters?: any);
|
|
5
|
-
private processValue(value);
|
|
6
|
-
private compareParsedQueries(a, b);
|
|
7
|
-
parse(query?: any): any;
|
|
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
|
-
}
|
|
1
|
+
export declare class QueryParser {
|
|
2
|
+
query: any;
|
|
3
|
+
parameters: any;
|
|
4
|
+
constructor(query: any, parameters?: any);
|
|
5
|
+
private processValue(value);
|
|
6
|
+
private compareParsedQueries(a, b);
|
|
7
|
+
parse(query?: any): any;
|
|
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
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export declare class QueryService {
|
|
2
|
-
constructor();
|
|
3
|
-
addAndCondition(query: any, condition: any): {
|
|
4
|
-
conditions: any;
|
|
5
|
-
};
|
|
6
|
-
addOrCondition(query: any, condition: any): {
|
|
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
|
-
};
|
|
19
|
-
}
|
|
1
|
+
export declare class QueryService {
|
|
2
|
+
constructor();
|
|
3
|
+
addAndCondition(query: any, condition: any): {
|
|
4
|
+
conditions: any;
|
|
5
|
+
};
|
|
6
|
+
addOrCondition(query: any, condition: any): {
|
|
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
|
+
};
|
|
19
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ColumnUtil } from './ColumnUtil';
|
|
2
|
-
export declare class RequestColumnExpansion {
|
|
3
|
-
private columnUtil;
|
|
4
|
-
private columns;
|
|
5
|
-
private columnInfoIdMap;
|
|
6
|
-
constructor(columnUtil: ColumnUtil);
|
|
7
|
-
expand(columnInfo: any): void;
|
|
8
|
-
get(): {};
|
|
9
|
-
}
|
|
1
|
+
import { ColumnUtil } from './ColumnUtil';
|
|
2
|
+
export declare class RequestColumnExpansion {
|
|
3
|
+
private columnUtil;
|
|
4
|
+
private columns;
|
|
5
|
+
private columnInfoIdMap;
|
|
6
|
+
constructor(columnUtil: ColumnUtil);
|
|
7
|
+
expand(columnInfo: any): void;
|
|
8
|
+
get(): {};
|
|
9
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ApiFormatter, CollectionHandler, ItemHandler } from '../classes';
|
|
2
|
-
import { ColumnExpansionFactory, ColumnSetFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
import { CollectionMatchResult, FieldMap } from '../types';
|
|
5
|
-
export declare class SocketMessageHandler {
|
|
6
|
-
private promiseService;
|
|
7
|
-
private apiRequestService;
|
|
8
|
-
private itemHandler;
|
|
9
|
-
private itemEntryFactory;
|
|
10
|
-
private collectionHandler;
|
|
11
|
-
private columnSetFactory;
|
|
12
|
-
private columnExpansionFactory;
|
|
13
|
-
private requestColumnExpansionFactory;
|
|
14
|
-
private apiFormatter;
|
|
15
|
-
private errorHandler;
|
|
16
|
-
constructor(promiseService: PromiseInterface, apiRequestService: ApiRequestServiceInterface, itemHandler: ItemHandler, itemEntryFactory: ItemEntryFactory, collectionHandler: CollectionHandler, columnSetFactory: ColumnSetFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface);
|
|
17
|
-
onMessageReceived(message: any): any;
|
|
18
|
-
formatMessageValues(values: any, columns: any): FieldMap;
|
|
19
|
-
createCollectionMap(itemType: any, items: any, columns: any): {
|
|
20
|
-
[itemId: number]: CollectionMatchResult;
|
|
21
|
-
};
|
|
22
|
-
groupByCollectionId(itemType: any, collectionMap: any): {};
|
|
23
|
-
getRequestColumns(itemType: any, collectionMap: any): {};
|
|
24
|
-
deferEntry(itemEntry: any): any;
|
|
25
|
-
processMessage(body: any): Promise<any>;
|
|
26
|
-
processFunctionChangesResolve(body: any): Promise<any> | undefined;
|
|
27
|
-
handleResponse(itemType: any, requestIds: any, requestColumns: any, response: any, collectionMap: any): {};
|
|
28
|
-
handleCreate(message: any): Promise<any> | undefined;
|
|
29
|
-
handleUpdate(message: any): Promise<any>;
|
|
30
|
-
handleDelete(message: any): Promise<{}>;
|
|
31
|
-
handleLinkMove(): void;
|
|
32
|
-
}
|
|
1
|
+
import { ApiFormatter, CollectionHandler, ItemHandler } from '../classes';
|
|
2
|
+
import { ColumnExpansionFactory, ColumnSetFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionMatchResult, FieldMap } from '../types';
|
|
5
|
+
export declare class SocketMessageHandler {
|
|
6
|
+
private promiseService;
|
|
7
|
+
private apiRequestService;
|
|
8
|
+
private itemHandler;
|
|
9
|
+
private itemEntryFactory;
|
|
10
|
+
private collectionHandler;
|
|
11
|
+
private columnSetFactory;
|
|
12
|
+
private columnExpansionFactory;
|
|
13
|
+
private requestColumnExpansionFactory;
|
|
14
|
+
private apiFormatter;
|
|
15
|
+
private errorHandler;
|
|
16
|
+
constructor(promiseService: PromiseInterface, apiRequestService: ApiRequestServiceInterface, itemHandler: ItemHandler, itemEntryFactory: ItemEntryFactory, collectionHandler: CollectionHandler, columnSetFactory: ColumnSetFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface);
|
|
17
|
+
onMessageReceived(message: any): any;
|
|
18
|
+
formatMessageValues(values: any, columns: any): FieldMap;
|
|
19
|
+
createCollectionMap(itemType: any, items: any, columns: any): {
|
|
20
|
+
[itemId: number]: CollectionMatchResult;
|
|
21
|
+
};
|
|
22
|
+
groupByCollectionId(itemType: any, collectionMap: any): {};
|
|
23
|
+
getRequestColumns(itemType: any, collectionMap: any): {};
|
|
24
|
+
deferEntry(itemEntry: any): any;
|
|
25
|
+
processMessage(body: any): Promise<any>;
|
|
26
|
+
processFunctionChangesResolve(body: any): Promise<any> | undefined;
|
|
27
|
+
handleResponse(itemType: any, requestIds: any, requestColumns: any, response: any, collectionMap: any): {};
|
|
28
|
+
handleCreate(message: any): Promise<any> | undefined;
|
|
29
|
+
handleUpdate(message: any): Promise<any>;
|
|
30
|
+
handleDelete(message: any): Promise<{}>;
|
|
31
|
+
handleLinkMove(): void;
|
|
32
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export declare function shallowMerge(object: any, defaults: any): any;
|
|
2
|
-
export declare function hasProperties(object: any): boolean;
|
|
3
|
-
export declare function getFirstProperty(object: any): string | null;
|
|
4
|
-
export declare function inArray(needle: any, haystack: any): boolean;
|
|
5
|
-
export declare function filterArray<T>(source: T[], callback: (T) => boolean): boolean;
|
|
6
|
-
export declare function emptyArray(array: any): void;
|
|
7
|
-
export declare function pathExists(source: any, path: any): boolean;
|
|
8
|
-
export declare function createPath(object: any, path: any, defaults: any): any;
|
|
9
|
-
export declare function getPath(object: any, path: any, create?: boolean): any;
|
|
10
|
-
export declare function extend(dst: any, ...args: any[]): any;
|
|
11
|
-
export declare function merge(dst: any, ...args: any[]): any;
|
|
12
|
-
export declare function isObject(value: any): boolean;
|
|
13
|
-
export declare function isBlankObject(value: any): boolean;
|
|
14
|
-
export declare function isString(value: any): boolean;
|
|
15
|
-
export declare function isNumber(value: any): boolean;
|
|
16
|
-
export declare function isDate(value: any): boolean;
|
|
17
|
-
export declare const isArray: (arg: any) => arg is any[];
|
|
18
|
-
export declare function isFunction(value: any): boolean;
|
|
19
|
-
export declare function isRegExp(value: any): boolean;
|
|
20
|
-
export declare function isBoolean(value: any): boolean;
|
|
21
|
-
export declare function isElement(node: any): boolean;
|
|
22
|
-
export declare function isWindow(obj: any): boolean;
|
|
23
|
-
export declare function isDefined(value: any): boolean;
|
|
24
|
-
export declare function equals(o1: any, o2: any): boolean;
|
|
25
|
-
export declare function copy(source: any, destination?: any, maxDepth?: any): any;
|
|
1
|
+
export declare function shallowMerge(object: any, defaults: any): any;
|
|
2
|
+
export declare function hasProperties(object: any): boolean;
|
|
3
|
+
export declare function getFirstProperty(object: any): string | null;
|
|
4
|
+
export declare function inArray(needle: any, haystack: any): boolean;
|
|
5
|
+
export declare function filterArray<T>(source: T[], callback: (T) => boolean): boolean;
|
|
6
|
+
export declare function emptyArray(array: any): void;
|
|
7
|
+
export declare function pathExists(source: any, path: any): boolean;
|
|
8
|
+
export declare function createPath(object: any, path: any, defaults: any): any;
|
|
9
|
+
export declare function getPath(object: any, path: any, create?: boolean): any;
|
|
10
|
+
export declare function extend(dst: any, ...args: any[]): any;
|
|
11
|
+
export declare function merge(dst: any, ...args: any[]): any;
|
|
12
|
+
export declare function isObject(value: any): boolean;
|
|
13
|
+
export declare function isBlankObject(value: any): boolean;
|
|
14
|
+
export declare function isString(value: any): boolean;
|
|
15
|
+
export declare function isNumber(value: any): boolean;
|
|
16
|
+
export declare function isDate(value: any): boolean;
|
|
17
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
18
|
+
export declare function isFunction(value: any): boolean;
|
|
19
|
+
export declare function isRegExp(value: any): boolean;
|
|
20
|
+
export declare function isBoolean(value: any): boolean;
|
|
21
|
+
export declare function isElement(node: any): boolean;
|
|
22
|
+
export declare function isWindow(obj: any): boolean;
|
|
23
|
+
export declare function isDefined(value: any): boolean;
|
|
24
|
+
export declare function equals(o1: any, o2: any): boolean;
|
|
25
|
+
export declare function copy(source: any, destination?: any, maxDepth?: any): any;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export * from './ApiFormatter';
|
|
2
|
-
export * from './ApiRequestService';
|
|
3
|
-
export * from './ApiResponseProcessor';
|
|
4
|
-
export * from './BatchStatus';
|
|
5
|
-
export * from './ChangesCompilation';
|
|
6
|
-
export * from './ChangesProcessor';
|
|
7
|
-
export * from './CollectionCache';
|
|
8
|
-
export * from './CollectionEntryService';
|
|
9
|
-
export * from './CollectionHandler';
|
|
10
|
-
export * from './CollectionMatcher';
|
|
11
|
-
export * from './CollectionResourceService';
|
|
12
|
-
export * from './ColumnCache';
|
|
13
|
-
export * from './ColumnExpansion';
|
|
14
|
-
export * from './ColumnHandler';
|
|
15
|
-
export * from './ColumnInfo';
|
|
16
|
-
export * from './ColumnSet';
|
|
17
|
-
export * from './ColumnUtil';
|
|
18
|
-
export * from './CreateRequest';
|
|
19
|
-
export * from './ItemAdministrator';
|
|
20
|
-
export * from './ItemCache';
|
|
21
|
-
export * from './ItemEntryService';
|
|
22
|
-
export * from './ItemHandler';
|
|
23
|
-
export * from './ItemRequestService';
|
|
24
|
-
export * from './ItemResourceService';
|
|
25
|
-
export * from './KeyService';
|
|
26
|
-
export * from './LocalCache';
|
|
27
|
-
export * from './LockService';
|
|
28
|
-
export * from './ModuleChangesCompilation';
|
|
29
|
-
export * from './QueryMatcher';
|
|
30
|
-
export * from './QueryParser';
|
|
31
|
-
export * from './QueryService';
|
|
32
|
-
export * from './RequestColumnExpansion';
|
|
33
|
-
export * from './SocketMessageHandler';
|
|
34
|
-
export * from './Util';
|
|
1
|
+
export * from './ApiFormatter';
|
|
2
|
+
export * from './ApiRequestService';
|
|
3
|
+
export * from './ApiResponseProcessor';
|
|
4
|
+
export * from './BatchStatus';
|
|
5
|
+
export * from './ChangesCompilation';
|
|
6
|
+
export * from './ChangesProcessor';
|
|
7
|
+
export * from './CollectionCache';
|
|
8
|
+
export * from './CollectionEntryService';
|
|
9
|
+
export * from './CollectionHandler';
|
|
10
|
+
export * from './CollectionMatcher';
|
|
11
|
+
export * from './CollectionResourceService';
|
|
12
|
+
export * from './ColumnCache';
|
|
13
|
+
export * from './ColumnExpansion';
|
|
14
|
+
export * from './ColumnHandler';
|
|
15
|
+
export * from './ColumnInfo';
|
|
16
|
+
export * from './ColumnSet';
|
|
17
|
+
export * from './ColumnUtil';
|
|
18
|
+
export * from './CreateRequest';
|
|
19
|
+
export * from './ItemAdministrator';
|
|
20
|
+
export * from './ItemCache';
|
|
21
|
+
export * from './ItemEntryService';
|
|
22
|
+
export * from './ItemHandler';
|
|
23
|
+
export * from './ItemRequestService';
|
|
24
|
+
export * from './ItemResourceService';
|
|
25
|
+
export * from './KeyService';
|
|
26
|
+
export * from './LocalCache';
|
|
27
|
+
export * from './LockService';
|
|
28
|
+
export * from './ModuleChangesCompilation';
|
|
29
|
+
export * from './QueryMatcher';
|
|
30
|
+
export * from './QueryParser';
|
|
31
|
+
export * from './QueryService';
|
|
32
|
+
export * from './RequestColumnExpansion';
|
|
33
|
+
export * from './SocketMessageHandler';
|
|
34
|
+
export * from './Util';
|
package/dist/dist/constants.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare enum ENTRY_STATUS {
|
|
2
|
-
CACHED = "cached",
|
|
3
|
-
PROMISED = "promised",
|
|
4
|
-
EXPAND = "expand",
|
|
5
|
-
PROMISED_EXPAND = "promised-expand",
|
|
6
|
-
RESOLVE = "resolve",
|
|
7
|
-
RESOLVE_VALUES = "resolve-values",
|
|
8
|
-
LOCAL = "local",
|
|
9
|
-
}
|
|
10
|
-
export declare const ALL_PERMISSIONS = "7";
|
|
11
|
-
export declare const COLUMN_SEPERATOR = ">";
|
|
12
|
-
export declare const RENDER_AS_SEPERATOR = ":";
|
|
13
|
-
export declare const NEW_PREFIX: string;
|
|
14
|
-
export declare const DUPLICATE_PREFIX: string;
|
|
15
|
-
export declare const NEW_KEYWORD: string;
|
|
16
|
-
export declare const DUPLICATE_KEYWORD: string;
|
|
1
|
+
export declare enum ENTRY_STATUS {
|
|
2
|
+
CACHED = "cached",
|
|
3
|
+
PROMISED = "promised",
|
|
4
|
+
EXPAND = "expand",
|
|
5
|
+
PROMISED_EXPAND = "promised-expand",
|
|
6
|
+
RESOLVE = "resolve",
|
|
7
|
+
RESOLVE_VALUES = "resolve-values",
|
|
8
|
+
LOCAL = "local",
|
|
9
|
+
}
|
|
10
|
+
export declare const ALL_PERMISSIONS = "7";
|
|
11
|
+
export declare const COLUMN_SEPERATOR = ">";
|
|
12
|
+
export declare const RENDER_AS_SEPERATOR = ":";
|
|
13
|
+
export declare const NEW_PREFIX: string;
|
|
14
|
+
export declare const DUPLICATE_PREFIX: string;
|
|
15
|
+
export declare const NEW_KEYWORD: string;
|
|
16
|
+
export declare const DUPLICATE_KEYWORD: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiFormatter, ApiResponseProcessor } from '../classes';
|
|
2
|
-
export declare class ApiResponseProcessorFactory {
|
|
3
|
-
private apiFormatter;
|
|
4
|
-
constructor(apiFormatter: ApiFormatter);
|
|
5
|
-
construct(response: any): ApiResponseProcessor;
|
|
6
|
-
}
|
|
1
|
+
import { ApiFormatter, ApiResponseProcessor } from '../classes';
|
|
2
|
+
export declare class ApiResponseProcessorFactory {
|
|
3
|
+
private apiFormatter;
|
|
4
|
+
constructor(apiFormatter: ApiFormatter);
|
|
5
|
+
construct(response: any): ApiResponseProcessor;
|
|
6
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BatchStatus } from '../classes';
|
|
2
|
-
import { PromiseInterface } from '../interfaces';
|
|
3
|
-
import { ItemEntry } from '../models';
|
|
4
|
-
import { ItemId } from '../types';
|
|
5
|
-
export declare class BatchStatusFactory {
|
|
6
|
-
private promiseService;
|
|
7
|
-
constructor(promiseService: PromiseInterface);
|
|
8
|
-
construct(getItemId: (itemEntry: ItemEntry) => ItemId, getPromise: (itemEntry: ItemEntry) => Promise<ItemEntry>): BatchStatus;
|
|
9
|
-
}
|
|
1
|
+
import { BatchStatus } from '../classes';
|
|
2
|
+
import { PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from '../models';
|
|
4
|
+
import { ItemId } from '../types';
|
|
5
|
+
export declare class BatchStatusFactory {
|
|
6
|
+
private promiseService;
|
|
7
|
+
constructor(promiseService: PromiseInterface);
|
|
8
|
+
construct(getItemId: (itemEntry: ItemEntry) => ItemId, getPromise: (itemEntry: ItemEntry) => Promise<ItemEntry>): BatchStatus;
|
|
9
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChangesCompilation } from '../classes';
|
|
2
|
-
import { CollectionEntry, ItemEntry } from '../models';
|
|
3
|
-
import { CollectionCacheFactory } from './';
|
|
4
|
-
export declare class ChangesCompilationFactory {
|
|
5
|
-
private collectionCacheFactory;
|
|
6
|
-
constructor(collectionCacheFactory: CollectionCacheFactory);
|
|
7
|
-
construct(singleItems: ItemEntry[], collections: CollectionEntry[]): ChangesCompilation;
|
|
8
|
-
}
|
|
1
|
+
import { ChangesCompilation } from '../classes';
|
|
2
|
+
import { CollectionEntry, ItemEntry } from '../models';
|
|
3
|
+
import { CollectionCacheFactory } from './';
|
|
4
|
+
export declare class ChangesCompilationFactory {
|
|
5
|
+
private collectionCacheFactory;
|
|
6
|
+
constructor(collectionCacheFactory: CollectionCacheFactory);
|
|
7
|
+
construct(singleItems: ItemEntry[], collections: CollectionEntry[]): ChangesCompilation;
|
|
8
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ApiFormatter, ChangesProcessor, CollectionEntryService, CollectionHandler, ItemHandler } from '../classes';
|
|
2
|
-
import { ChangesCompilationFactory, ColumnExpansionFactory, CreateRequestFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
export declare class ChangesProcessorFactory {
|
|
5
|
-
private apiRequestService;
|
|
6
|
-
private errorHandler;
|
|
7
|
-
private itemHandler;
|
|
8
|
-
private collectionHandler;
|
|
9
|
-
private changesCompilationFactory;
|
|
10
|
-
private createRequestFactory;
|
|
11
|
-
private columnExpansionFactory;
|
|
12
|
-
private requestColumnExpansionFactory;
|
|
13
|
-
private collectionEntryService;
|
|
14
|
-
private apiFormatter;
|
|
15
|
-
private promiseService;
|
|
16
|
-
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, collectionHandler: CollectionHandler, changesCompilationFactory: ChangesCompilationFactory, createRequestFactory: CreateRequestFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, collectionEntryService: CollectionEntryService, apiFormatter: ApiFormatter, promiseService: PromiseInterface);
|
|
17
|
-
construct(): ChangesProcessor;
|
|
18
|
-
}
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, CollectionEntryService, CollectionHandler, ItemHandler } from '../classes';
|
|
2
|
+
import { ChangesCompilationFactory, ColumnExpansionFactory, CreateRequestFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
export declare class ChangesProcessorFactory {
|
|
5
|
+
private apiRequestService;
|
|
6
|
+
private errorHandler;
|
|
7
|
+
private itemHandler;
|
|
8
|
+
private collectionHandler;
|
|
9
|
+
private changesCompilationFactory;
|
|
10
|
+
private createRequestFactory;
|
|
11
|
+
private columnExpansionFactory;
|
|
12
|
+
private requestColumnExpansionFactory;
|
|
13
|
+
private collectionEntryService;
|
|
14
|
+
private apiFormatter;
|
|
15
|
+
private promiseService;
|
|
16
|
+
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, collectionHandler: CollectionHandler, changesCompilationFactory: ChangesCompilationFactory, createRequestFactory: CreateRequestFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, collectionEntryService: CollectionEntryService, apiFormatter: ApiFormatter, promiseService: PromiseInterface);
|
|
17
|
+
construct(): ChangesProcessor;
|
|
18
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CollectionCache } from '../classes';
|
|
2
|
-
import { QueryMatcherFactory } from '../factories';
|
|
3
|
-
export declare class CollectionCacheFactory {
|
|
4
|
-
private queryMatcherFactory;
|
|
5
|
-
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
-
construct(): CollectionCache;
|
|
7
|
-
}
|
|
1
|
+
import { CollectionCache } from '../classes';
|
|
2
|
+
import { QueryMatcherFactory } from '../factories';
|
|
3
|
+
export declare class CollectionCacheFactory {
|
|
4
|
+
private queryMatcherFactory;
|
|
5
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
+
construct(): CollectionCache;
|
|
7
|
+
}
|