@rentman/rm-core 1.0.29 → 1.0.30
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 +6 -0
- package/dist/definitions/src/classes/ApiFormatter.d.ts +2 -2
- package/dist/definitions/src/classes/ApiRequestService.d.ts +4 -4
- package/dist/definitions/src/classes/ApiResponseProcessor.d.ts +2 -2
- package/dist/definitions/src/classes/BatchStatus.d.ts +4 -5
- package/dist/definitions/src/classes/ChangesCompiler.d.ts +3 -4
- package/dist/definitions/src/classes/ChangesProcessor.d.ts +9 -14
- package/dist/definitions/src/classes/CollectionCache.d.ts +3 -4
- package/dist/definitions/src/classes/CollectionEntryService.d.ts +4 -4
- package/dist/definitions/src/classes/CollectionHandler.d.ts +14 -21
- package/dist/definitions/src/classes/CollectionResourceService.d.ts +2 -2
- package/dist/definitions/src/classes/ColumnCache.d.ts +2 -2
- package/dist/definitions/src/classes/ColumnExpansion.d.ts +4 -4
- package/dist/definitions/src/classes/ColumnHandler.d.ts +4 -6
- package/dist/definitions/src/classes/ColumnSet.d.ts +3 -3
- package/dist/definitions/src/classes/ColumnUtil.d.ts +2 -2
- package/dist/definitions/src/classes/CreateRequest.d.ts +5 -5
- package/dist/definitions/src/classes/ItemAdministrator.d.ts +15 -22
- package/dist/definitions/src/classes/ItemCache.d.ts +4 -4
- package/dist/definitions/src/classes/ItemEntryService.d.ts +5 -5
- package/dist/definitions/src/classes/ItemHandler.d.ts +12 -19
- package/dist/definitions/src/classes/ItemRequestService.d.ts +10 -14
- package/dist/definitions/src/classes/ItemResourceService.d.ts +2 -2
- package/dist/definitions/src/classes/KeyService.d.ts +1 -1
- package/dist/definitions/src/classes/LocalCache.d.ts +12 -21
- package/dist/definitions/src/classes/LockService.d.ts +4 -6
- package/dist/definitions/src/classes/ModuleChangesCompiler.d.ts +5 -5
- package/dist/definitions/src/classes/QueryMatcher.d.ts +2 -2
- package/dist/definitions/src/classes/QueryParser.d.ts +1 -1
- package/dist/definitions/src/classes/QueryService.d.ts +1 -1
- package/dist/definitions/src/classes/RequestColumnExpansion.d.ts +2 -2
- package/dist/definitions/src/classes/SocketMessageHandler.d.ts +7 -11
- package/dist/definitions/src/classes/index.d.ts +32 -0
- package/dist/definitions/src/factories/ApiResponseProcessorFactory.d.ts +2 -3
- package/dist/definitions/src/factories/BatchStatusFactory.d.ts +4 -4
- package/dist/definitions/src/factories/ChangesCompilerFactory.d.ts +3 -5
- package/dist/definitions/src/factories/ChangesProcessorFactory.d.ts +7 -15
- package/dist/definitions/src/factories/CollectionCacheFactory.d.ts +3 -3
- package/dist/definitions/src/factories/CollectionEntryFactory.d.ts +4 -9
- package/dist/definitions/src/factories/CollectionResourceFactory.d.ts +6 -10
- package/dist/definitions/src/factories/ColumnExpansionFactory.d.ts +3 -5
- package/dist/definitions/src/factories/ColumnSetFactory.d.ts +2 -4
- package/dist/definitions/src/factories/CreateRequestFactory.d.ts +3 -6
- package/dist/definitions/src/factories/ItemCacheFactory.d.ts +3 -4
- package/dist/definitions/src/factories/ItemEntryFactory.d.ts +2 -3
- package/dist/definitions/src/factories/ItemResourceFactory.d.ts +5 -14
- package/dist/definitions/src/factories/LocalCacheFactory.d.ts +8 -16
- package/dist/definitions/src/factories/ModuleChangesCompilerFactory.d.ts +3 -6
- package/dist/definitions/src/factories/QueryMatcherFactory.d.ts +2 -3
- package/dist/definitions/src/factories/QueryParserFactory.d.ts +2 -2
- package/dist/definitions/src/factories/RequestColumnExpansionFactory.d.ts +2 -3
- package/dist/definitions/src/factories/index.d.ts +18 -0
- package/dist/definitions/src/index.d.ts +7 -81
- package/dist/definitions/src/interfaces/ApiRequestServiceInterface.d.ts +1 -1
- package/dist/definitions/src/interfaces/AuthInterface.d.ts +1 -1
- package/dist/definitions/src/interfaces/ErrorHandlerInterface.d.ts +1 -1
- package/dist/definitions/src/interfaces/LocalCacheManagerInterface.d.ts +2 -3
- package/dist/definitions/src/interfaces/PromiseInterface.d.ts +1 -1
- package/dist/definitions/src/interfaces/SocketMessageInterface.d.ts +1 -1
- package/dist/definitions/src/interfaces/index.d.ts +6 -0
- package/dist/definitions/src/main.d.ts +44 -0
- package/dist/definitions/src/models/CollectionEditResource.d.ts +6 -9
- package/dist/definitions/src/models/CollectionEntry.d.ts +6 -11
- package/dist/definitions/src/models/CollectionResource.d.ts +5 -5
- package/dist/definitions/src/models/CollectionViewResource.d.ts +6 -9
- package/dist/definitions/src/models/EditResource.d.ts +4 -9
- package/dist/definitions/src/models/ItemEntry.d.ts +2 -2
- package/dist/definitions/src/models/ItemResource.d.ts +3 -3
- package/dist/definitions/src/models/ViewResource.d.ts +3 -3
- package/dist/definitions/src/models/index.d.ts +8 -0
- package/dist/definitions/src/types/ItemTypesCollection.d.ts +1 -4
- package/dist/rm-core.js +5303 -5181
- package/dist/rm-core.min.js +1 -1
- package/package.json +3 -5
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import ChangesCompiler from "../classes
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import ItemEntry from "../models/ItemEntry";
|
|
5
|
-
export default class ChangesCompilerFactory {
|
|
1
|
+
import { ChangesCompiler, ItemEntryService } from "../classes";
|
|
2
|
+
import { CollectionEntry, ItemEntry } from "../models";
|
|
3
|
+
export declare class ChangesCompilerFactory {
|
|
6
4
|
private itemEntryService;
|
|
7
5
|
constructor(itemEntryService: ItemEntryService);
|
|
8
6
|
construct(singleItems: ItemEntry[], collections: CollectionEntry[], collectionOptions: any): ChangesCompiler;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import ApiFormatter from '../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import ApiRequestServiceInterface from '../interfaces/ApiRequestServiceInterface';
|
|
9
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
10
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
11
|
-
import ChangesCompilerFactory from "./ChangesCompilerFactory";
|
|
12
|
-
import ColumnExpansionFactory from "./ColumnExpansionFactory";
|
|
13
|
-
import CreateRequestFactory from "./CreateRequestFactory";
|
|
14
|
-
import RequestColumnExpansionFactory from "./RequestColumnExpansionFactory";
|
|
15
|
-
export default class ChangesProcessorFactory {
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, CollectionEntryService, CollectionHandler, ColumnHandler, ItemEntryService, ItemHandler } from '../classes';
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ChangesCompilerFactory } from './ChangesCompilerFactory';
|
|
4
|
+
import { ColumnExpansionFactory } from "./ColumnExpansionFactory";
|
|
5
|
+
import { CreateRequestFactory } from "./CreateRequestFactory";
|
|
6
|
+
import { RequestColumnExpansionFactory } from "./RequestColumnExpansionFactory";
|
|
7
|
+
export declare class ChangesProcessorFactory {
|
|
16
8
|
private apiRequestService;
|
|
17
9
|
private errorHandler;
|
|
18
10
|
private itemHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CollectionCache from "../classes
|
|
2
|
-
import QueryMatcherFactory from "./QueryMatcherFactory";
|
|
3
|
-
export
|
|
1
|
+
import { CollectionCache } from "../classes";
|
|
2
|
+
import { QueryMatcherFactory } from "./QueryMatcherFactory";
|
|
3
|
+
export declare class CollectionCacheFactory {
|
|
4
4
|
private queryMatcherFactory;
|
|
5
5
|
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
6
|
construct(): CollectionCache;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import CollectionEntryService from "../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import QueryService from '../classes/QueryService';
|
|
6
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
7
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
8
|
-
import CollectionEntry from "../models/CollectionEntry";
|
|
9
|
-
export default class CollectionEntryFactory {
|
|
1
|
+
import { CollectionEntryService, ItemEntryService, ItemRequestService, KeyService, QueryService } from "../classes";
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionEntry } from "../models/";
|
|
4
|
+
export declare class CollectionEntryFactory {
|
|
10
5
|
private errorHandler;
|
|
11
6
|
private collectionEntryService;
|
|
12
7
|
private itemRequestService;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import CollectionResourceService from '../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import CollectionResource from "../models/CollectionResource";
|
|
8
|
-
import ChangesProcessorFactory from './ChangesProcessorFactory';
|
|
9
|
-
import ItemResourceFactory from "./ItemResourceFactory";
|
|
10
|
-
export default class CollectionResourceFactory {
|
|
1
|
+
import { CollectionResourceService, ItemHandler, KeyService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionEntry, CollectionResource } from '../models';
|
|
4
|
+
import { ChangesProcessorFactory } from './ChangesProcessorFactory';
|
|
5
|
+
import { ItemResourceFactory } from "./ItemResourceFactory";
|
|
6
|
+
export declare class CollectionResourceFactory {
|
|
11
7
|
private errorHandler;
|
|
12
8
|
private itemHandler;
|
|
13
9
|
private itemResourceFactory;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import ColumnExpansion from "../classes
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import ColumnSetFactory from "./ColumnSetFactory";
|
|
5
|
-
export default class ColumnExpansionFactory {
|
|
1
|
+
import { ColumnExpansion, ColumnHandler, ColumnUtil } from "../classes";
|
|
2
|
+
import { ColumnSetFactory } from "./ColumnSetFactory";
|
|
3
|
+
export declare class ColumnExpansionFactory {
|
|
6
4
|
private columnHandler;
|
|
7
5
|
private columnSetFactory;
|
|
8
6
|
private columnUtil;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import ColumnHandler from "../classes
|
|
2
|
-
|
|
3
|
-
import ColumnUtil from '../classes/ColumnUtil';
|
|
4
|
-
export default class ColumnSetFactory {
|
|
1
|
+
import { ColumnHandler, ColumnSet, ColumnUtil } from "../classes";
|
|
2
|
+
export declare class ColumnSetFactory {
|
|
5
3
|
private columnHandler;
|
|
6
4
|
private columnUtil;
|
|
7
5
|
constructor(columnHandler: ColumnHandler, columnUtil: ColumnUtil);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import CollectionHandler from "../classes
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import KeyService from '../classes/KeyService';
|
|
5
|
-
import RequestColumnExpansionFactory from "./RequestColumnExpansionFactory";
|
|
6
|
-
export default class CreateRequestFactory {
|
|
1
|
+
import { CollectionHandler, CreateRequest, ItemEntryService, KeyService } from "../classes";
|
|
2
|
+
import { RequestColumnExpansionFactory } from "./RequestColumnExpansionFactory";
|
|
3
|
+
export declare class CreateRequestFactory {
|
|
7
4
|
private collectionHandler;
|
|
8
5
|
private requestColumnExpansionFactory;
|
|
9
6
|
private itemEntryService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import ItemCache from "../classes
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export default class ItemCacheFactory {
|
|
1
|
+
import { ItemCache, ItemEntryService } from "../classes";
|
|
2
|
+
import { QueryMatcherFactory } from "./QueryMatcherFactory";
|
|
3
|
+
export declare class ItemCacheFactory {
|
|
5
4
|
private queryMatcherFactory;
|
|
6
5
|
private itemEntryService;
|
|
7
6
|
constructor(queryMatcherFactory: QueryMatcherFactory, itemEntryService: ItemEntryService);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import ItemEntry from "../models
|
|
2
|
-
|
|
3
|
-
export default class ItemEntryFactory {
|
|
1
|
+
import { ItemEntry, ItemResource } from "../models";
|
|
2
|
+
export declare class ItemEntryFactory {
|
|
4
3
|
constructor();
|
|
5
4
|
construct(itemType: string, itemId: number, columns?: any, initial?: object, derived?: object, resources?: ItemResource[]): ItemEntry;
|
|
6
5
|
}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import ApiFormatter from '../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import ItemResourceService from "../classes/ItemResourceService";
|
|
6
|
-
import LockService from '../classes/LockService';
|
|
7
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
8
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
9
|
-
import { EditResource } from "../models/EditResource";
|
|
10
|
-
import ItemEntry from "../models/ItemEntry";
|
|
11
|
-
import ItemResource from "../models/ItemResource";
|
|
12
|
-
import { ViewResource } from "../models/ViewResource";
|
|
13
|
-
export default class ItemResourceFactory {
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, CollectionHandler, ItemEntryService, ItemResourceService, LockService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { EditResource, ItemEntry, ItemResource, ViewResource } from "../models";
|
|
4
|
+
export declare class ItemResourceFactory {
|
|
14
5
|
private itemEntryService;
|
|
15
6
|
private itemResourceService;
|
|
16
7
|
private apiFormatter;
|
|
@@ -20,6 +11,6 @@ export default class ItemResourceFactory {
|
|
|
20
11
|
private errorHandler;
|
|
21
12
|
private promiseService;
|
|
22
13
|
constructor(itemEntryService: ItemEntryService, itemResourceService: ItemResourceService, apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, collectionHandler: CollectionHandler, errorHandler: ErrorHandlerInterface, promiseService: PromiseInterface);
|
|
23
|
-
getConstructor(options: any): (itemEntry: any) =>
|
|
14
|
+
getConstructor(options: any): (itemEntry: any) => ViewResource | EditResource;
|
|
24
15
|
construct(itemEntry: ItemEntry, options: any): ItemResource;
|
|
25
16
|
}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import CollectionHandler from "../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
10
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
11
|
-
import ChangesProcessorFactory from "./ChangesProcessorFactory";
|
|
12
|
-
import CollectionCacheFactory from "./CollectionCacheFactory";
|
|
13
|
-
import CollectionResourceFactory from "./CollectionResourceFactory";
|
|
14
|
-
import ItemCacheFactory from "./ItemCacheFactory";
|
|
15
|
-
import ItemResourceFactory from "./ItemResourceFactory";
|
|
16
|
-
export default class LocalCacheFactory {
|
|
1
|
+
import { CollectionHandler, ColumnHandler, ItemEntryService, ItemHandler, ItemResourceService, LocalCache, LockService } from "../classes";
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ChangesProcessorFactory } from "./ChangesProcessorFactory";
|
|
4
|
+
import { CollectionCacheFactory } from "./CollectionCacheFactory";
|
|
5
|
+
import { CollectionResourceFactory } from "./CollectionResourceFactory";
|
|
6
|
+
import { ItemCacheFactory } from "./ItemCacheFactory";
|
|
7
|
+
import { ItemResourceFactory } from "./ItemResourceFactory";
|
|
8
|
+
export declare class LocalCacheFactory {
|
|
17
9
|
private apiRequestService;
|
|
18
10
|
private errorHandler;
|
|
19
11
|
private itemHandler;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import CollectionCache from "../classes
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import ModuleChangesCompiler from "../classes/ModuleChangesCompiler";
|
|
5
|
-
import ItemEntry from "../models/ItemEntry";
|
|
6
|
-
export default class ModuleChangesCompilerFactory {
|
|
1
|
+
import { CollectionCache, ItemCache, ItemEntryService, ModuleChangesCompiler } from "../classes";
|
|
2
|
+
import { ItemEntry } from "../models";
|
|
3
|
+
export declare class ModuleChangesCompilerFactory {
|
|
7
4
|
private itemEntryService;
|
|
8
5
|
constructor(itemEntryService: ItemEntryService);
|
|
9
6
|
construct(rootItem: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache): ModuleChangesCompiler;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import ApiFormatter from '../classes
|
|
2
|
-
|
|
3
|
-
export default class QueryMatcherFactory {
|
|
1
|
+
import { ApiFormatter, QueryMatcher } from '../classes';
|
|
2
|
+
export declare class QueryMatcherFactory {
|
|
4
3
|
private apiFormatter;
|
|
5
4
|
constructor(apiFormatter: ApiFormatter);
|
|
6
5
|
construct(parentType: string, parentId: number, fields: object, itemType?: string): QueryMatcher;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import ColumnUtil from '../classes
|
|
2
|
-
|
|
3
|
-
export default class RequestColumnExpansionFactory {
|
|
1
|
+
import { ColumnUtil, RequestColumnExpansion } from '../classes';
|
|
2
|
+
export declare class RequestColumnExpansionFactory {
|
|
4
3
|
private columnUtil;
|
|
5
4
|
constructor(columnUtil: ColumnUtil);
|
|
6
5
|
construct(): RequestColumnExpansion;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './ApiResponseProcessorFactory';
|
|
2
|
+
export * from './BatchStatusFactory';
|
|
3
|
+
export * from './ChangesCompilerFactory';
|
|
4
|
+
export * from './ChangesProcessorFactory';
|
|
5
|
+
export * from './CollectionCacheFactory';
|
|
6
|
+
export * from './CollectionEntryFactory';
|
|
7
|
+
export * from './CollectionResourceFactory';
|
|
8
|
+
export * from './ColumnExpansionFactory';
|
|
9
|
+
export * from './ColumnSetFactory';
|
|
10
|
+
export * from './CreateRequestFactory';
|
|
11
|
+
export * from './ItemCacheFactory';
|
|
12
|
+
export * from './ItemEntryFactory';
|
|
13
|
+
export * from './ItemResourceFactory';
|
|
14
|
+
export * from './LocalCacheFactory';
|
|
15
|
+
export * from './ModuleChangesCompilerFactory';
|
|
16
|
+
export * from './QueryMatcherFactory';
|
|
17
|
+
export * from './QueryParserFactory';
|
|
18
|
+
export * from './RequestColumnExpansionFactory';
|
|
@@ -1,81 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import ColumnUtil from './classes/ColumnUtil';
|
|
9
|
-
import ItemAdministrator from './classes/ItemAdministrator';
|
|
10
|
-
import ItemEntryService from './classes/ItemEntryService';
|
|
11
|
-
import ItemHandler from './classes/ItemHandler';
|
|
12
|
-
import ItemRequestService from "./classes/ItemRequestService";
|
|
13
|
-
import ItemResourceService from './classes/ItemResourceService';
|
|
14
|
-
import KeyService from './classes/KeyService';
|
|
15
|
-
import LockService from "./classes/LockService";
|
|
16
|
-
import QueryService from './classes/QueryService';
|
|
17
|
-
import SocketMessageHandler from './classes/SocketMessageHandler';
|
|
18
|
-
import ApiResponseProcessorFactory from './factories/ApiResponseProcessorFactory';
|
|
19
|
-
import BatchStatusFactory from "./factories/BatchStatusFactory";
|
|
20
|
-
import ChangesCompilerFactory from "./factories/ChangesCompilerFactory";
|
|
21
|
-
import ChangesProcessorFactory from "./factories/ChangesProcessorFactory";
|
|
22
|
-
import CollectionCacheFactory from "./factories/CollectionCacheFactory";
|
|
23
|
-
import CollectionEntryFactory from "./factories/CollectionEntryFactory";
|
|
24
|
-
import CollectionResourceFactory from "./factories/CollectionResourceFactory";
|
|
25
|
-
import ColumnExpansionFactory from "./factories/ColumnExpansionFactory";
|
|
26
|
-
import ColumnSetFactory from "./factories/ColumnSetFactory";
|
|
27
|
-
import CreateRequestFactory from "./factories/CreateRequestFactory";
|
|
28
|
-
import ItemCacheFactory from "./factories/ItemCacheFactory";
|
|
29
|
-
import ItemEntryFactory from "./factories/ItemEntryFactory";
|
|
30
|
-
import ItemResourceFactory from "./factories/ItemResourceFactory";
|
|
31
|
-
import ModuleChangesCompilerFactory from "./factories/ModuleChangesCompilerFactory";
|
|
32
|
-
import QueryMatcherFactory from "./factories/QueryMatcherFactory";
|
|
33
|
-
import QueryParserFactory from "./factories/QueryParserFactory";
|
|
34
|
-
import RequestColumnExpansionFactory from "./factories/RequestColumnExpansionFactory";
|
|
35
|
-
import LocalCacheFactory from "./factories/LocalCacheFactory";
|
|
36
|
-
import ApiRequestServiceInterface from './interfaces/ApiRequestServiceInterface';
|
|
37
|
-
import AuthInterface from './interfaces/AuthInterface';
|
|
38
|
-
import ErrorHandlerInterface from './interfaces/ErrorHandlerInterface';
|
|
39
|
-
import LocalCacheManagerInterface from './interfaces/LocalCacheManagerInterface';
|
|
40
|
-
import PromiseInterface from './interfaces/PromiseInterface';
|
|
41
|
-
export default class RmCore {
|
|
42
|
-
version: string;
|
|
43
|
-
apiFormatter: ApiFormatter;
|
|
44
|
-
keyService: KeyService;
|
|
45
|
-
queryService: QueryService;
|
|
46
|
-
columnUtil: ColumnUtil;
|
|
47
|
-
apiResponseProcessorFactory: ApiResponseProcessorFactory;
|
|
48
|
-
itemEntryService: ItemEntryService;
|
|
49
|
-
itemResourceService: ItemResourceService;
|
|
50
|
-
itemAdministrator: ItemAdministrator;
|
|
51
|
-
itemRequestService: ItemRequestService;
|
|
52
|
-
columnCache: ColumnCache;
|
|
53
|
-
columnHandler: ColumnHandler;
|
|
54
|
-
itemEntryFactory: ItemEntryFactory;
|
|
55
|
-
collectionEntryFactory: CollectionEntryFactory;
|
|
56
|
-
collectionCacheFactory: CollectionCacheFactory;
|
|
57
|
-
itemHandler: ItemHandler;
|
|
58
|
-
collectionHandler: CollectionHandler;
|
|
59
|
-
lockService: LockService;
|
|
60
|
-
collectionEntryService: CollectionEntryService;
|
|
61
|
-
collectionResourceService: CollectionResourceService;
|
|
62
|
-
collectionResourceFactory: CollectionResourceFactory;
|
|
63
|
-
queryMatcherFactory: QueryMatcherFactory;
|
|
64
|
-
itemCacheFactory: ItemCacheFactory;
|
|
65
|
-
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
66
|
-
changesCompilerFactory: ChangesCompilerFactory;
|
|
67
|
-
changesProcessorFactory: ChangesProcessorFactory;
|
|
68
|
-
columnExpansionFactory: ColumnExpansionFactory;
|
|
69
|
-
columnSetFactory: ColumnSetFactory;
|
|
70
|
-
createRequestFactory: CreateRequestFactory;
|
|
71
|
-
itemResourceFactory: ItemResourceFactory;
|
|
72
|
-
localCacheFactory: LocalCacheFactory;
|
|
73
|
-
moduleChangesCompilerFactory: ModuleChangesCompilerFactory;
|
|
74
|
-
queryParserFactory: QueryParserFactory;
|
|
75
|
-
batchStatusFactory: BatchStatusFactory;
|
|
76
|
-
socketMessageHandler: SocketMessageHandler;
|
|
77
|
-
apiRequestService: ApiRequestService;
|
|
78
|
-
constructor(externalApiRequestService: ApiRequestServiceInterface, localCacheManager: LocalCacheManagerInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface, promiseInterface: PromiseInterface);
|
|
79
|
-
}
|
|
80
|
-
export declare function noop(): void;
|
|
81
|
-
export declare function identity(value: any): any;
|
|
1
|
+
export * from './main';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './models';
|
|
4
|
+
export * from './interfaces';
|
|
5
|
+
export * from './classes';
|
|
6
|
+
export * from './factories';
|
|
7
|
+
export * from './types/ItemTypesCollection';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ApiRequestServiceInterface {
|
|
2
2
|
template(itemType: string, params: any): Promise<any>;
|
|
3
3
|
create(itemType: string, itemId: number, values: any, parentType?: string, parentId?: number): Promise<any>;
|
|
4
4
|
delete(itemType: string, itemIds: number[]): Promise<any>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import LocalCache from '../classes
|
|
2
|
-
export
|
|
3
|
-
updateTabParams(conversionMap: any, keepTabHeading: boolean): Promise<any>;
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
export interface LocalCacheManagerInterface {
|
|
4
3
|
getCacheManager(userId: string): LocalCache;
|
|
5
4
|
setCacheManager(userId: string, entry: LocalCache): any;
|
|
6
5
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApiFormatter, ApiRequestService, CollectionEntryService, CollectionHandler, CollectionResourceService, ColumnCache, ColumnHandler, ColumnUtil, ItemAdministrator, ItemEntryService, ItemHandler, ItemRequestService, ItemResourceService, KeyService, LockService, QueryService, SocketMessageHandler } from './classes';
|
|
2
|
+
import { ApiResponseProcessorFactory, BatchStatusFactory, ChangesCompilerFactory, ChangesProcessorFactory, CollectionCacheFactory, CollectionEntryFactory, CollectionResourceFactory, ColumnExpansionFactory, ColumnSetFactory, CreateRequestFactory, ItemCacheFactory, ItemEntryFactory, ItemResourceFactory, LocalCacheFactory, ModuleChangesCompilerFactory, QueryMatcherFactory, QueryParserFactory, RequestColumnExpansionFactory } from './factories';
|
|
3
|
+
import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LocalCacheManagerInterface, PromiseInterface } from './interfaces';
|
|
4
|
+
export declare class RmCore {
|
|
5
|
+
version: string;
|
|
6
|
+
apiFormatter: ApiFormatter;
|
|
7
|
+
keyService: KeyService;
|
|
8
|
+
queryService: QueryService;
|
|
9
|
+
columnUtil: ColumnUtil;
|
|
10
|
+
apiResponseProcessorFactory: ApiResponseProcessorFactory;
|
|
11
|
+
itemEntryService: ItemEntryService;
|
|
12
|
+
itemResourceService: ItemResourceService;
|
|
13
|
+
itemAdministrator: ItemAdministrator;
|
|
14
|
+
itemRequestService: ItemRequestService;
|
|
15
|
+
columnCache: ColumnCache;
|
|
16
|
+
columnHandler: ColumnHandler;
|
|
17
|
+
itemEntryFactory: ItemEntryFactory;
|
|
18
|
+
collectionEntryFactory: CollectionEntryFactory;
|
|
19
|
+
collectionCacheFactory: CollectionCacheFactory;
|
|
20
|
+
itemHandler: ItemHandler;
|
|
21
|
+
collectionHandler: CollectionHandler;
|
|
22
|
+
lockService: LockService;
|
|
23
|
+
collectionEntryService: CollectionEntryService;
|
|
24
|
+
collectionResourceService: CollectionResourceService;
|
|
25
|
+
collectionResourceFactory: CollectionResourceFactory;
|
|
26
|
+
queryMatcherFactory: QueryMatcherFactory;
|
|
27
|
+
itemCacheFactory: ItemCacheFactory;
|
|
28
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
29
|
+
changesCompilerFactory: ChangesCompilerFactory;
|
|
30
|
+
changesProcessorFactory: ChangesProcessorFactory;
|
|
31
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
32
|
+
columnSetFactory: ColumnSetFactory;
|
|
33
|
+
createRequestFactory: CreateRequestFactory;
|
|
34
|
+
itemResourceFactory: ItemResourceFactory;
|
|
35
|
+
localCacheFactory: LocalCacheFactory;
|
|
36
|
+
moduleChangesCompilerFactory: ModuleChangesCompilerFactory;
|
|
37
|
+
queryParserFactory: QueryParserFactory;
|
|
38
|
+
batchStatusFactory: BatchStatusFactory;
|
|
39
|
+
socketMessageHandler: SocketMessageHandler;
|
|
40
|
+
apiRequestService: ApiRequestService;
|
|
41
|
+
constructor(externalApiRequestService: ApiRequestServiceInterface, localCacheManager: LocalCacheManagerInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface, promiseInterface: PromiseInterface);
|
|
42
|
+
}
|
|
43
|
+
export declare function noop(): void;
|
|
44
|
+
export declare function identity(value: any): any;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import ItemHandler from "../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import CollectionEntry from "./CollectionEntry";
|
|
8
|
-
import CollectionResource from "./CollectionResource";
|
|
9
|
-
export default class CollectionEditResource extends CollectionResource {
|
|
1
|
+
import { ItemHandler, KeyService } from "../classes";
|
|
2
|
+
import { ChangesProcessorFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry } from './CollectionEntry';
|
|
5
|
+
import { CollectionResource } from './CollectionResource';
|
|
6
|
+
export declare class CollectionEditResource extends CollectionResource {
|
|
10
7
|
private errorHandler;
|
|
11
8
|
private itemHandler;
|
|
12
9
|
private changesProcessorFactory;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import CollectionEntryService from "../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
8
|
-
import CollectionResource from "./CollectionResource";
|
|
9
|
-
import ItemEntry from "./ItemEntry";
|
|
10
|
-
import ItemResource from './ItemResource';
|
|
11
|
-
export default class CollectionEntry {
|
|
1
|
+
import { CollectionEntryService, ItemEntryService, ItemRequestService, KeyService, QueryService } from "../classes";
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionResource } from "./CollectionResource";
|
|
4
|
+
import { ItemEntry } from "./ItemEntry";
|
|
5
|
+
import { ItemResource } from './ItemResource';
|
|
6
|
+
export declare class CollectionEntry {
|
|
12
7
|
private errorHandler;
|
|
13
8
|
private collectionEntryService;
|
|
14
9
|
private itemRequestService;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import ItemResourceFactory from "../factories
|
|
2
|
-
import CollectionEntry from './CollectionEntry';
|
|
3
|
-
import ItemEntry from "./ItemEntry";
|
|
4
|
-
import ItemResource from "./ItemResource";
|
|
1
|
+
import { ItemResourceFactory } from "../factories";
|
|
5
2
|
import { ItemResourceItemIdMap } from '../types/ItemTypesCollection';
|
|
6
|
-
|
|
3
|
+
import { CollectionEntry } from './CollectionEntry';
|
|
4
|
+
import { ItemEntry } from "./ItemEntry";
|
|
5
|
+
import { ItemResource } from "./ItemResource";
|
|
6
|
+
export declare class CollectionResource {
|
|
7
7
|
private itemResourceFactory;
|
|
8
8
|
entry: CollectionEntry;
|
|
9
9
|
options: any;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import ItemHandler from "../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import CollectionEntry from "./CollectionEntry";
|
|
8
|
-
import CollectionResource from "./CollectionResource";
|
|
9
|
-
export default class CollectionViewResource extends CollectionResource {
|
|
1
|
+
import { ItemHandler, KeyService } from "../classes";
|
|
2
|
+
import { ChangesProcessorFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry } from "./CollectionEntry";
|
|
5
|
+
import { CollectionResource } from "./CollectionResource";
|
|
6
|
+
export declare class CollectionViewResource extends CollectionResource {
|
|
10
7
|
private errorHandler;
|
|
11
8
|
private itemHandler;
|
|
12
9
|
private changesProcessorFactory;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import ApiFormatter from '../classes
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import LockService from '../classes/LockService';
|
|
6
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
7
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
8
|
-
import ItemEntry from "./ItemEntry";
|
|
9
|
-
import ItemResource from "./ItemResource";
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, CollectionHandler, ItemEntryService, LockService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from "./ItemEntry";
|
|
4
|
+
import { ItemResource } from "./ItemResource";
|
|
10
5
|
export declare class EditResource extends ItemResource {
|
|
11
6
|
private apiFormatter;
|
|
12
7
|
private lockService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ItemEntryService from '../classes
|
|
2
|
-
import ItemEntry from "./ItemEntry";
|
|
3
|
-
export
|
|
1
|
+
import { ItemEntryService } from '../classes';
|
|
2
|
+
import { ItemEntry } from "./ItemEntry";
|
|
3
|
+
export declare class ItemResource {
|
|
4
4
|
protected itemEntryService: ItemEntryService;
|
|
5
5
|
entry: ItemEntry;
|
|
6
6
|
options: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ItemEntryService from '../classes
|
|
2
|
-
import ItemEntry from "./ItemEntry";
|
|
3
|
-
import ItemResource from "./ItemResource";
|
|
1
|
+
import { ItemEntryService } from '../classes';
|
|
2
|
+
import { ItemEntry } from "./ItemEntry";
|
|
3
|
+
import { ItemResource } from "./ItemResource";
|
|
4
4
|
export declare class ViewResource extends ItemResource {
|
|
5
5
|
constructor(itemEntryService: ItemEntryService, entry: ItemEntry, options: any);
|
|
6
6
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ViewResource';
|
|
2
|
+
export * from './CollectionEditResource';
|
|
3
|
+
export * from './CollectionEntry';
|
|
4
|
+
export * from './CollectionResource';
|
|
5
|
+
export * from './CollectionViewResource';
|
|
6
|
+
export * from './ItemEntry';
|
|
7
|
+
export * from './ItemResource';
|
|
8
|
+
export * from './EditResource';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import ItemResource from '../models/ItemResource';
|
|
2
|
-
import CollectionResource from '../models/CollectionResource';
|
|
3
|
-
import ItemEntry from '../models/ItemEntry';
|
|
4
|
-
import CollectionEntry from '../models/CollectionEntry';
|
|
5
1
|
import { ENTRY_STATUS } from '../constants';
|
|
2
|
+
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
6
3
|
export declare type ItemResourceItemIdMap = {
|
|
7
4
|
[itemId: number]: ItemResource;
|
|
8
5
|
};
|