@rentman/rm-core 1.0.28 → 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 +10 -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
package/changelog.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
#Changelog
|
|
2
2
|
Contains new features, breaking changes and their reasoning
|
|
3
3
|
|
|
4
|
+
##v1.0.30
|
|
5
|
+
- Remove `updateTabParams` from LocalCacheManagerInterface
|
|
6
|
+
> The function wasn't used
|
|
7
|
+
- Reworked class export
|
|
8
|
+
> Imports are now done from @rentman/rm-core, old imports are broken. This is because the old export structure didn't always work
|
|
9
|
+
|
|
10
|
+
##v1.0.29
|
|
11
|
+
- Fix inverted inArray check in CollectionEntry.removeItems
|
|
12
|
+
> A delete message from the socket deleted all BUT the deleted items, this should now be fixed
|
|
13
|
+
|
|
4
14
|
##v1.0.28
|
|
5
15
|
Bug fixes only
|
|
6
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="moment" />
|
|
2
2
|
import * as moment from 'moment';
|
|
3
|
-
export
|
|
3
|
+
export declare class ApiFormatter {
|
|
4
4
|
MOMENT_INVALID: string;
|
|
5
5
|
SERVER_DATETIME_FORMAT: string;
|
|
6
6
|
SERVER_TIME_FORMAT: string;
|
|
@@ -27,7 +27,7 @@ export default class ApiFormatter {
|
|
|
27
27
|
formatRequestDate(value: any): any;
|
|
28
28
|
formatRequestDuration(value: any): any;
|
|
29
29
|
formatRequestColor(value: any): any;
|
|
30
|
-
getDefaultValue(columnType: any): false |
|
|
30
|
+
getDefaultValue(columnType: any): false | 0 | "" | moment.Moment | moment.Duration | "0" | "#000000";
|
|
31
31
|
isDefaultValue(columnType: any, value: any): any;
|
|
32
32
|
clone(columnType: any, value: any): any;
|
|
33
33
|
getCloneFunction(columnType: any): (date: any) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ApiResponseProcessorFactory from '../factories
|
|
2
|
-
import ApiRequestServiceInterface from '../interfaces
|
|
3
|
-
import ApiResponseProcessor from './ApiResponseProcessor';
|
|
4
|
-
export
|
|
1
|
+
import { ApiResponseProcessorFactory } from '../factories';
|
|
2
|
+
import { ApiRequestServiceInterface } from '../interfaces';
|
|
3
|
+
import { ApiResponseProcessor } from './ApiResponseProcessor';
|
|
4
|
+
export declare class ApiRequestService {
|
|
5
5
|
private externalApiRequestService;
|
|
6
6
|
private apiResponseProcessorFactory;
|
|
7
7
|
constructor(externalApiRequestService: ApiRequestServiceInterface, apiResponseProcessorFactory: ApiResponseProcessorFactory);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ApiFormatter from './ApiFormatter';
|
|
2
1
|
import { ItemTypeMap } from '../types/ItemTypesCollection';
|
|
3
|
-
|
|
2
|
+
import { ApiFormatter } from './ApiFormatter';
|
|
3
|
+
export declare class ApiResponseProcessor {
|
|
4
4
|
apiFormatter: ApiFormatter;
|
|
5
5
|
response: any;
|
|
6
6
|
columns: ItemTypeMap;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ENTRY_STATUS } from "../constants";
|
|
2
|
-
import PromiseInterface from '../interfaces
|
|
3
|
-
import ItemEntry from "../models
|
|
4
|
-
import { EntryStatus } from '../types/ItemTypesCollection';
|
|
5
|
-
|
|
6
|
-
export default class BatchStatus {
|
|
2
|
+
import { PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from "../models";
|
|
4
|
+
import { EntryStatus, ItemEntryEntryStatusMap } from '../types/ItemTypesCollection';
|
|
5
|
+
export declare class BatchStatus {
|
|
7
6
|
private promiseService;
|
|
8
7
|
getItemId: (itemEntry: ItemEntry) => number;
|
|
9
8
|
getPromise: (itemEntry: ItemEntry) => Promise<ItemEntry>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import CollectionEntry from "../models
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export default class ChangesCompiler {
|
|
1
|
+
import { CollectionEntry, ItemEntry } from "../models";
|
|
2
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
3
|
+
export declare class ChangesCompiler {
|
|
5
4
|
private itemEntryService;
|
|
6
5
|
singleItems: ItemEntry[];
|
|
7
6
|
collections: CollectionEntry[];
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import ChangesCompilerFactory from "../factories
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import CollectionHandler from "./CollectionHandler";
|
|
11
|
-
import ColumnHandler from "./ColumnHandler";
|
|
12
|
-
import ItemEntryService from "./ItemEntryService";
|
|
13
|
-
import ItemHandler from "./ItemHandler";
|
|
14
|
-
export default class ChangesProcessor {
|
|
1
|
+
import { ChangesCompilerFactory, ColumnExpansionFactory, CreateRequestFactory, RequestColumnExpansionFactory } from "../factories";
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ApiFormatter } from "./ApiFormatter";
|
|
4
|
+
import { CollectionEntryService } from "./CollectionEntryService";
|
|
5
|
+
import { CollectionHandler } from "./CollectionHandler";
|
|
6
|
+
import { ColumnHandler } from "./ColumnHandler";
|
|
7
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
8
|
+
import { ItemHandler } from "./ItemHandler";
|
|
9
|
+
export declare class ChangesProcessor {
|
|
15
10
|
private apiRequestService;
|
|
16
11
|
private itemHandler;
|
|
17
12
|
private errorHandler;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import QueryMatcherFactory from "../factories
|
|
2
|
-
import CollectionEntry from "../models
|
|
3
|
-
import CollectionResource from '../models/CollectionResource';
|
|
1
|
+
import { QueryMatcherFactory } from "../factories";
|
|
2
|
+
import { CollectionEntry, CollectionResource } from "../models";
|
|
4
3
|
import { CollectionEntryItemTypeMap } from '../types/ItemTypesCollection';
|
|
5
|
-
export
|
|
4
|
+
export declare class CollectionCache {
|
|
6
5
|
private queryMatcherFactory;
|
|
7
6
|
entries: CollectionEntryItemTypeMap;
|
|
8
7
|
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import QueryParserFactory from "../factories
|
|
2
|
-
import ItemEntry from "../models
|
|
3
|
-
import QueryService from './QueryService';
|
|
4
|
-
export
|
|
1
|
+
import { QueryParserFactory } from "../factories";
|
|
2
|
+
import { ItemEntry } from "../models";
|
|
3
|
+
import { QueryService } from './QueryService';
|
|
4
|
+
export declare class CollectionEntryService {
|
|
5
5
|
private queryParserFactory;
|
|
6
6
|
private queryService;
|
|
7
7
|
constructor(queryParserFactory: QueryParserFactory, queryService: QueryService);
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import CollectionCacheFactory from "../factories
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import QueryParserFactory from "../factories/QueryParserFactory";
|
|
5
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
6
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
7
|
-
import CollectionEntry from "../models/CollectionEntry";
|
|
8
|
-
import CollectionResource from "../models/CollectionResource";
|
|
9
|
-
import ItemEntry from "../models/ItemEntry";
|
|
10
|
-
import ItemResource from "../models/ItemResource";
|
|
11
|
-
import CollectionCache from "./CollectionCache";
|
|
12
|
-
import CollectionEntryService from "./CollectionEntryService";
|
|
13
|
-
import ColumnHandler from "./ColumnHandler";
|
|
14
|
-
import ColumnUtil from "./ColumnUtil";
|
|
15
|
-
import ItemCache from "./ItemCache";
|
|
16
|
-
import ItemEntryService from "./ItemEntryService";
|
|
17
|
-
import ItemHandler from "./ItemHandler";
|
|
18
|
-
import ItemRequestService from "./ItemRequestService";
|
|
19
|
-
import KeyService from "./KeyService";
|
|
20
|
-
import QueryService from "./QueryService";
|
|
1
|
+
import { CollectionCacheFactory, CollectionEntryFactory, ColumnSetFactory, QueryParserFactory } from "../factories";
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from "../models";
|
|
21
4
|
import { CollectionEntryBatchStatusMap, CollectionEntryParentIdMap, EntryStatus, ItemResourceItemIdMap } from '../types/ItemTypesCollection';
|
|
22
|
-
|
|
5
|
+
import { CollectionCache } from "./CollectionCache";
|
|
6
|
+
import { CollectionEntryService } from "./CollectionEntryService";
|
|
7
|
+
import { ColumnHandler } from "./ColumnHandler";
|
|
8
|
+
import { ColumnUtil } from "./ColumnUtil";
|
|
9
|
+
import { ItemCache } from "./ItemCache";
|
|
10
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
11
|
+
import { ItemHandler } from "./ItemHandler";
|
|
12
|
+
import { ItemRequestService } from "./ItemRequestService";
|
|
13
|
+
import { KeyService } from "./KeyService";
|
|
14
|
+
import { QueryService } from "./QueryService";
|
|
15
|
+
export declare class CollectionHandler {
|
|
23
16
|
private errorHandler;
|
|
24
17
|
private itemRequestService;
|
|
25
18
|
private itemHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ItemResource from "../models
|
|
2
|
-
export
|
|
1
|
+
import { ItemResource } from "../models";
|
|
2
|
+
export declare class CollectionResourceService {
|
|
3
3
|
processOptions(options: any): any;
|
|
4
4
|
getIdArray(itemResources: ItemResource[]): any[];
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ColumnSetFactory from "../factories
|
|
2
|
-
import ColumnHandler from "./ColumnHandler";
|
|
3
|
-
import ColumnUtil from "./ColumnUtil";
|
|
4
|
-
export
|
|
1
|
+
import { ColumnSetFactory } from "../factories";
|
|
2
|
+
import { ColumnHandler } from "./ColumnHandler";
|
|
3
|
+
import { ColumnUtil } from "./ColumnUtil";
|
|
4
|
+
export declare class ColumnExpansion {
|
|
5
5
|
private columnHandler;
|
|
6
6
|
private columnSetFactory;
|
|
7
7
|
private columnUtil;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import ApiRequestServiceInterface from '../interfaces
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import ColumnUtil from './ColumnUtil';
|
|
6
|
-
export default class ColumnHandler {
|
|
1
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
2
|
+
import { ColumnCache } from './ColumnCache';
|
|
3
|
+
import { ColumnUtil } from './ColumnUtil';
|
|
4
|
+
export declare class ColumnHandler {
|
|
7
5
|
private apiRequestService;
|
|
8
6
|
private errorHandler;
|
|
9
7
|
private promiseService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ColumnHandler from './ColumnHandler';
|
|
2
|
-
import ColumnUtil from './ColumnUtil';
|
|
3
|
-
export
|
|
1
|
+
import { ColumnHandler } from './ColumnHandler';
|
|
2
|
+
import { ColumnUtil } from './ColumnUtil';
|
|
3
|
+
export declare class ColumnSet {
|
|
4
4
|
private columnHandler;
|
|
5
5
|
private columnUtil;
|
|
6
6
|
itemType: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare class ColumnUtil {
|
|
2
2
|
constructor();
|
|
3
3
|
getColumnPath(columns: any, renderAs: any): string;
|
|
4
4
|
getDateFormatOptions(columnType: any): {
|
|
@@ -25,7 +25,7 @@ export default class ColumnUtil {
|
|
|
25
25
|
hasLocationProperty(column: any, location: any): boolean;
|
|
26
26
|
isEditableColumn(column: any): boolean;
|
|
27
27
|
isSearchableColumn(column: any): boolean;
|
|
28
|
-
getDefaultWeight(column: any): 1 | 0.5 | 1.5
|
|
28
|
+
getDefaultWeight(column: any): 1 | 2 | 0.5 | 1.5;
|
|
29
29
|
getComparators(column: any): string[];
|
|
30
30
|
isColumnSubset(first: any, second: any, secondTrue: any): any;
|
|
31
31
|
containsColumn(requestColumn: any, destination: any): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import RequestColumnExpansionFactory from "../factories
|
|
2
|
-
import CollectionHandler from "./CollectionHandler";
|
|
3
|
-
import ItemEntryService from "./ItemEntryService";
|
|
4
|
-
import KeyService from "./KeyService";
|
|
5
|
-
export
|
|
1
|
+
import { RequestColumnExpansionFactory } from "../factories";
|
|
2
|
+
import { CollectionHandler } from "./CollectionHandler";
|
|
3
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
4
|
+
import { KeyService } from "./KeyService";
|
|
5
|
+
export declare class CreateRequest {
|
|
6
6
|
private collectionHandler;
|
|
7
7
|
private requestColumnExpansionFactory;
|
|
8
8
|
private itemEntryService;
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import ColumnSetFactory from "../factories
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import ApiRequestServiceInterface from '../interfaces/ApiRequestServiceInterface';
|
|
5
|
-
import AuthInterface from '../interfaces/AuthInterface';
|
|
6
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
7
|
-
import LocalCacheManagerInterface from '../interfaces/LocalCacheManagerInterface';
|
|
8
|
-
import CollectionResource from '../models/CollectionResource';
|
|
9
|
-
import ItemResource from '../models/ItemResource';
|
|
10
|
-
import CollectionCache from './CollectionCache';
|
|
11
|
-
import CollectionEntryService from "./CollectionEntryService";
|
|
12
|
-
import CollectionHandler from "./CollectionHandler";
|
|
13
|
-
import CollectionResourceService from './CollectionResourceService';
|
|
14
|
-
import ItemCache from './ItemCache';
|
|
15
|
-
import ItemEntryService from './ItemEntryService';
|
|
16
|
-
import ItemHandler from './ItemHandler';
|
|
17
|
-
import ItemRequestService from "./ItemRequestService";
|
|
18
|
-
import KeyService from "./KeyService";
|
|
19
|
-
import QueryService from "./QueryService";
|
|
20
|
-
import LocalCache from "./LocalCache";
|
|
21
|
-
import ItemEntry from '../models/ItemEntry';
|
|
1
|
+
import { ColumnSetFactory, LocalCacheFactory, ModuleChangesCompilerFactory } from "../factories";
|
|
2
|
+
import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LocalCacheManagerInterface } from '../interfaces';
|
|
3
|
+
import { CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
22
4
|
import { CollectionEntryParentIdMap, CollectionResourceParentIdMap, ItemResourceItemTypeMap, TemplateResponseItemEntryMap } from '../types/ItemTypesCollection';
|
|
23
|
-
|
|
5
|
+
import { CollectionCache } from './CollectionCache';
|
|
6
|
+
import { CollectionEntryService } from "./CollectionEntryService";
|
|
7
|
+
import { CollectionHandler } from "./CollectionHandler";
|
|
8
|
+
import { CollectionResourceService } from './CollectionResourceService';
|
|
9
|
+
import { ItemCache } from './ItemCache';
|
|
10
|
+
import { ItemEntryService } from './ItemEntryService';
|
|
11
|
+
import { ItemHandler } from './ItemHandler';
|
|
12
|
+
import { ItemRequestService } from "./ItemRequestService";
|
|
13
|
+
import { KeyService } from "./KeyService";
|
|
14
|
+
import { LocalCache } from "./LocalCache";
|
|
15
|
+
import { QueryService } from "./QueryService";
|
|
16
|
+
export declare class ItemAdministrator {
|
|
24
17
|
private apiRequestService;
|
|
25
18
|
private localCacheManager;
|
|
26
19
|
private authInterface;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import QueryMatcherFactory from "../factories
|
|
2
|
-
import ItemEntry from "../models
|
|
3
|
-
import ItemEntryService from "./ItemEntryService";
|
|
4
|
-
export
|
|
1
|
+
import { QueryMatcherFactory } from "../factories";
|
|
2
|
+
import { ItemEntry } from "../models";
|
|
3
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
4
|
+
export declare class ItemCache {
|
|
5
5
|
private queryMatcherFactory;
|
|
6
6
|
private itemEntryService;
|
|
7
7
|
entries: {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import PromiseInterface from '../interfaces
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
export
|
|
1
|
+
import { PromiseInterface } from '../interfaces';
|
|
2
|
+
import { ItemEntry } from '../models/';
|
|
3
|
+
import { ApiFormatter } from './ApiFormatter';
|
|
4
|
+
import { KeyService } from './KeyService';
|
|
5
|
+
export declare class ItemEntryService {
|
|
6
6
|
private apiFormatter;
|
|
7
7
|
private keyService;
|
|
8
8
|
private promiseService;
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { ENTRY_STATUS } from "../constants";
|
|
2
|
-
import BatchStatusFactory from "../factories
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import ItemCacheFactory from "../factories/ItemCacheFactory";
|
|
6
|
-
import ItemEntryFactory from "../factories/ItemEntryFactory";
|
|
7
|
-
import ApiRequestServiceInterface from '../interfaces/ApiRequestServiceInterface';
|
|
8
|
-
import AuthInterface from '../interfaces/AuthInterface';
|
|
9
|
-
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
10
|
-
import PromiseInterface from '../interfaces/PromiseInterface';
|
|
11
|
-
import ItemEntry from "../models/ItemEntry";
|
|
12
|
-
import ApiFormatter from "./ApiFormatter";
|
|
13
|
-
import ColumnHandler from './ColumnHandler';
|
|
14
|
-
import ColumnUtil from './ColumnUtil';
|
|
15
|
-
import ItemCache from "./ItemCache";
|
|
16
|
-
import ItemEntryService from "./ItemEntryService";
|
|
17
|
-
import KeyService from "./KeyService";
|
|
18
|
-
import BatchStatus from './BatchStatus';
|
|
19
|
-
import ApiResponseProcessor from './ApiResponseProcessor';
|
|
2
|
+
import { BatchStatusFactory, ColumnExpansionFactory, ColumnSetFactory, ItemCacheFactory, ItemEntryFactory } from "../factories";
|
|
3
|
+
import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { ItemEntry } from "../models";
|
|
20
5
|
import { ApiTemplateItemTypeMap, EntryStatus, TemplateResponseItemEntryMap, TemplateResponseLinkedItemEntryMap } from '../types/ItemTypesCollection';
|
|
21
|
-
|
|
6
|
+
import { ApiFormatter } from "./ApiFormatter";
|
|
7
|
+
import { ApiResponseProcessor } from './ApiResponseProcessor';
|
|
8
|
+
import { BatchStatus } from './BatchStatus';
|
|
9
|
+
import { ColumnHandler } from './ColumnHandler';
|
|
10
|
+
import { ColumnUtil } from './ColumnUtil';
|
|
11
|
+
import { ItemCache } from "./ItemCache";
|
|
12
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
13
|
+
import { KeyService } from "./KeyService";
|
|
14
|
+
export declare class ItemHandler {
|
|
22
15
|
private apiRequestService;
|
|
23
16
|
private authInterface;
|
|
24
17
|
private errorHandler;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import ColumnExpansionFactory from "../factories
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import ItemHandler from "./ItemHandler";
|
|
12
|
-
import QueryService from "./QueryService";
|
|
13
|
-
import ApiResponseProcessor from './ApiResponseProcessor';
|
|
14
|
-
export default class ItemRequestService {
|
|
1
|
+
import { ColumnExpansionFactory, ColumnSetFactory } from "../factories";
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionEntry, ItemEntry } from "../models";
|
|
4
|
+
import { ApiResponseProcessor } from './ApiResponseProcessor';
|
|
5
|
+
import { ColumnExpansion } from "./ColumnExpansion";
|
|
6
|
+
import { ColumnHandler } from "./ColumnHandler";
|
|
7
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
8
|
+
import { ItemHandler } from "./ItemHandler";
|
|
9
|
+
import { QueryService } from "./QueryService";
|
|
10
|
+
export declare class ItemRequestService {
|
|
15
11
|
private apiRequestService;
|
|
16
12
|
private errorHandler;
|
|
17
13
|
private itemHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditResource } from '../models
|
|
2
|
-
export
|
|
1
|
+
import { EditResource } from '../models';
|
|
2
|
+
export declare class ItemResourceService {
|
|
3
3
|
constructor();
|
|
4
4
|
processOptions(options: any): any;
|
|
5
5
|
compareOptions(first: any, second: any): boolean;
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import ChangesProcessorFactory from "../factories
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import CollectionCache from "./CollectionCache";
|
|
14
|
-
import CollectionHandler from "./CollectionHandler";
|
|
15
|
-
import ColumnHandler from "./ColumnHandler";
|
|
16
|
-
import ItemCache from './ItemCache';
|
|
17
|
-
import ItemEntryService from './ItemEntryService';
|
|
18
|
-
import ItemHandler from "./ItemHandler";
|
|
19
|
-
import ItemResourceService from './ItemResourceService';
|
|
20
|
-
import LockService from "./LockService";
|
|
21
|
-
export default class LocalCache {
|
|
1
|
+
import { ChangesProcessorFactory, CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from "../factories";
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from "../models";
|
|
4
|
+
import { CollectionCache } from "./CollectionCache";
|
|
5
|
+
import { CollectionHandler } from "./CollectionHandler";
|
|
6
|
+
import { ColumnHandler } from "./ColumnHandler";
|
|
7
|
+
import { ItemCache } from './ItemCache';
|
|
8
|
+
import { ItemEntryService } from './ItemEntryService';
|
|
9
|
+
import { ItemHandler } from "./ItemHandler";
|
|
10
|
+
import { ItemResourceService } from './ItemResourceService';
|
|
11
|
+
import { LockService } from "./LockService";
|
|
12
|
+
export declare class LocalCache {
|
|
22
13
|
private apiRequestService;
|
|
23
14
|
private errorHandler;
|
|
24
15
|
private itemHandler;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import ApiRequestServiceInterface from '../interfaces
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import KeyService from "./KeyService";
|
|
6
|
-
export default class LockService {
|
|
1
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
2
|
+
import { ItemEntry } from "../models";
|
|
3
|
+
import { KeyService } from "./KeyService";
|
|
4
|
+
export declare class LockService {
|
|
7
5
|
private apiRequestService;
|
|
8
6
|
private errorHandler;
|
|
9
7
|
private keyService;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import ItemEntry from "../models/ItemEntry";
|
|
2
|
-
import CollectionCache from "./CollectionCache";
|
|
3
|
-
import ItemCache from "./ItemCache";
|
|
4
|
-
import ItemEntryService from "./ItemEntryService";
|
|
5
|
-
export
|
|
1
|
+
import { ItemEntry } from "../models/ItemEntry";
|
|
2
|
+
import { CollectionCache } from "./CollectionCache";
|
|
3
|
+
import { ItemCache } from "./ItemCache";
|
|
4
|
+
import { ItemEntryService } from "./ItemEntryService";
|
|
5
|
+
export declare class ModuleChangesCompiler {
|
|
6
6
|
private itemEntryService;
|
|
7
7
|
private rootItemEntry;
|
|
8
8
|
private singleItemCache;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import ColumnExpansionFactory from '../factories
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import CollectionHandler from './CollectionHandler';
|
|
9
|
-
import ItemEntryService from './ItemEntryService';
|
|
10
|
-
import ItemHandler from './ItemHandler';
|
|
11
|
-
export default class SocketMessageHandler {
|
|
1
|
+
import { ColumnExpansionFactory, ColumnSetFactory, RequestColumnExpansionFactory } from '../factories';
|
|
2
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ApiFormatter } from './ApiFormatter';
|
|
4
|
+
import { CollectionHandler } from './CollectionHandler';
|
|
5
|
+
import { ItemEntryService } from './ItemEntryService';
|
|
6
|
+
import { ItemHandler } from './ItemHandler';
|
|
7
|
+
export declare class SocketMessageHandler {
|
|
12
8
|
private promiseService;
|
|
13
9
|
private apiRequestService;
|
|
14
10
|
private itemHandler;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from './ApiFormatter';
|
|
2
|
+
export * from './ApiRequestService';
|
|
3
|
+
export * from './ApiResponseProcessor';
|
|
4
|
+
export * from './BatchStatus';
|
|
5
|
+
export * from './ChangesCompiler';
|
|
6
|
+
export * from './ChangesProcessor';
|
|
7
|
+
export * from './CollectionCache';
|
|
8
|
+
export * from './CollectionEntryService';
|
|
9
|
+
export * from './CollectionHandler';
|
|
10
|
+
export * from './CollectionResourceService';
|
|
11
|
+
export * from './ColumnCache';
|
|
12
|
+
export * from './ColumnExpansion';
|
|
13
|
+
export * from './ColumnHandler';
|
|
14
|
+
export * from './ColumnSet';
|
|
15
|
+
export * from './ColumnUtil';
|
|
16
|
+
export * from './CreateRequest';
|
|
17
|
+
export * from './ItemAdministrator';
|
|
18
|
+
export * from './ItemCache';
|
|
19
|
+
export * from './ItemEntryService';
|
|
20
|
+
export * from './ItemHandler';
|
|
21
|
+
export * from './ItemRequestService';
|
|
22
|
+
export * from './ItemResourceService';
|
|
23
|
+
export * from './KeyService';
|
|
24
|
+
export * from './LocalCache';
|
|
25
|
+
export * from './LockService';
|
|
26
|
+
export * from './ModuleChangesCompiler';
|
|
27
|
+
export * from './QueryMatcher';
|
|
28
|
+
export * from './QueryParser';
|
|
29
|
+
export * from './QueryService';
|
|
30
|
+
export * from './RequestColumnExpansion';
|
|
31
|
+
export * from './SocketMessageHandler';
|
|
32
|
+
export * from './Util';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import ApiFormatter from '../classes
|
|
2
|
-
|
|
3
|
-
export default class ApiResponseProcessorFactory {
|
|
1
|
+
import { ApiFormatter, ApiResponseProcessor } from '../classes';
|
|
2
|
+
export declare class ApiResponseProcessorFactory {
|
|
4
3
|
private apiFormatter;
|
|
5
4
|
constructor(apiFormatter: ApiFormatter);
|
|
6
5
|
construct(response: any): ApiResponseProcessor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import BatchStatus from "../classes
|
|
2
|
-
import PromiseInterface from '../interfaces
|
|
3
|
-
import ItemEntry from "../models
|
|
4
|
-
export
|
|
1
|
+
import { BatchStatus } from "../classes";
|
|
2
|
+
import { PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry } from "../models";
|
|
4
|
+
export declare class BatchStatusFactory {
|
|
5
5
|
private promiseService;
|
|
6
6
|
constructor(promiseService: PromiseInterface);
|
|
7
7
|
construct(getItemId: (itemEntry: ItemEntry) => number, getPromise: (itemEntry: ItemEntry) => Promise<any>): BatchStatus;
|