@rentman/rm-core 1.7.1 → 1.7.3
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 +522 -512
- package/dist/rm-core.js +7481 -7473
- package/dist/rm-core.min.js +1 -1
- package/dist/src/classes/ApiFormatter.d.ts +39 -39
- package/dist/src/classes/ApiRequestService.d.ts +20 -20
- package/dist/src/classes/ApiResponseProcessor.d.ts +41 -41
- package/dist/src/classes/BatchStatus.d.ts +28 -27
- package/dist/src/classes/ChangesCompilation.d.ts +51 -51
- package/dist/src/classes/ChangesProcessor.d.ts +33 -33
- package/dist/src/classes/CollectionCache.d.ts +34 -34
- package/dist/src/classes/CollectionEntryService.d.ts +23 -23
- package/dist/src/classes/CollectionHandler.d.ts +54 -54
- package/dist/src/classes/CollectionMatcher.d.ts +42 -42
- package/dist/src/classes/CollectionResourceService.d.ts +6 -6
- package/dist/src/classes/ColumnCache.d.ts +21 -21
- package/dist/src/classes/ColumnExpansion.d.ts +18 -18
- package/dist/src/classes/ColumnHandler.d.ts +21 -21
- package/dist/src/classes/ColumnInfo.d.ts +14 -14
- package/dist/src/classes/ColumnSet.d.ts +46 -46
- package/dist/src/classes/ColumnSubsetCache.d.ts +8 -8
- package/dist/src/classes/ColumnUtil.d.ts +89 -89
- package/dist/src/classes/CreateRequest.d.ts +20 -20
- package/dist/src/classes/ItemAdministrator.d.ts +238 -238
- package/dist/src/classes/ItemCache.d.ts +23 -23
- package/dist/src/classes/ItemEntryService.d.ts +24 -24
- package/dist/src/classes/ItemHandler.d.ts +60 -60
- package/dist/src/classes/ItemRequestService.d.ts +23 -23
- package/dist/src/classes/KeyService.d.ts +16 -16
- package/dist/src/classes/LocalCache.d.ts +97 -97
- package/dist/src/classes/LockService.d.ts +32 -32
- package/dist/src/classes/ModuleChangesCompilation.d.ts +21 -21
- package/dist/src/classes/QueryMatcher.d.ts +14 -14
- package/dist/src/classes/QueryParser.d.ts +34 -34
- package/dist/src/classes/QueryService.d.ts +14 -14
- package/dist/src/classes/RequestColumnExpansion.d.ts +14 -14
- package/dist/src/classes/ResourceCache.d.ts +25 -25
- package/dist/src/classes/SocketMessageHandler.d.ts +41 -41
- package/dist/src/classes/Util.d.ts +28 -28
- package/dist/src/classes/index.d.ts +35 -35
- package/dist/src/constants.d.ts +18 -18
- package/dist/src/core.d.ts +48 -48
- package/dist/src/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/src/factories/BatchStatusFactory.d.ts +9 -8
- package/dist/src/factories/ChangesCompilationFactory.d.ts +10 -9
- package/dist/src/factories/CollectionCacheFactory.d.ts +8 -8
- package/dist/src/factories/CollectionEntryFactory.d.ts +23 -23
- package/dist/src/factories/CollectionMatcherFactory.d.ts +8 -7
- package/dist/src/factories/CollectionResourceFactory.d.ts +33 -32
- package/dist/src/factories/ColumnExpansionFactory.d.ts +8 -8
- package/dist/src/factories/ColumnInfoFactory.d.ts +7 -7
- package/dist/src/factories/ColumnSetFactory.d.ts +11 -11
- package/dist/src/factories/ColumnSubsetCacheFactory.d.ts +6 -6
- package/dist/src/factories/CreateRequestFactory.d.ts +11 -11
- package/dist/src/factories/ItemCacheFactory.d.ts +7 -7
- package/dist/src/factories/ItemEntryFactory.d.ts +21 -21
- package/dist/src/factories/ItemResourceFactory.d.ts +29 -29
- package/dist/src/factories/LocalCacheFactory.d.ts +16 -16
- package/dist/src/factories/ModuleChangesCompilationFactory.d.ts +6 -5
- package/dist/src/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/src/factories/QueryParserFactory.d.ts +6 -6
- package/dist/src/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/src/factories/TemplateFactory.d.ts +10 -10
- package/dist/src/factories/index.d.ts +21 -21
- package/dist/src/index.d.ts +7 -7
- package/dist/src/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- package/dist/src/interfaces/AuthInterface.d.ts +9 -9
- package/dist/src/interfaces/ErrorHandlerInterface.d.ts +5 -5
- package/dist/src/interfaces/ExceptionHandlerInterface.d.ts +3 -3
- package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +5 -5
- package/dist/src/interfaces/PromiseLibraryInterface.d.ts +25 -25
- package/dist/src/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/src/interfaces/index.d.ts +7 -7
- package/dist/src/models/CollectionEditResource.d.ts +14 -14
- package/dist/src/models/CollectionEntry.d.ts +82 -82
- package/dist/src/models/CollectionEntryOptions.d.ts +12 -12
- package/dist/src/models/CollectionResource.d.ts +41 -41
- package/dist/src/models/CollectionResourceOptions.d.ts +22 -22
- package/dist/src/models/CollectionViewResource.d.ts +7 -6
- package/dist/src/models/EditResource.d.ts +18 -18
- package/dist/src/models/ItemEntry.d.ts +70 -70
- package/dist/src/models/ItemEntryOptions.d.ts +11 -11
- package/dist/src/models/ItemResource.d.ts +27 -27
- package/dist/src/models/ItemResourceOptions.d.ts +9 -8
- package/dist/src/models/LocalViewResource.d.ts +7 -6
- package/dist/src/models/RemoteViewResource.d.ts +7 -6
- package/dist/src/models/Template.d.ts +11 -11
- package/dist/src/models/ViewResource.d.ts +8 -8
- package/dist/src/models/index.d.ts +15 -15
- package/dist/src/types/ItemTypesCollection.d.ts +213 -213
- package/dist/src/types/PromiseInterface.d.ts +2 -2
- package/dist/src/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +15 -15
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { ChangesProcessor, KeyService, LocalCache, ResourceCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ErrorHandlerInterface, ExceptionHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEditResource, CollectionEntry, CollectionResource, CollectionResourceOptionsInterface, CollectionViewResource, EditResource, LocalViewResource, RemoteViewResource } from '../models';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { ChangesProcessor, KeyService, LocalCache, ResourceCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, ExceptionHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEditResource, CollectionEntry, CollectionResource, CollectionResourceOptionsInterface, CollectionViewResource, EditResource, LocalViewResource, RemoteViewResource } from '../models';
|
|
5
|
+
import { ItemType } from '../types';
|
|
6
|
+
export declare class CollectionResourceFactory {
|
|
7
|
+
errorHandler: ErrorHandlerInterface;
|
|
8
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
9
|
+
itemResourceFactory: ItemResourceFactory;
|
|
10
|
+
changesProcessor: ChangesProcessor;
|
|
11
|
+
keyService: KeyService;
|
|
12
|
+
promiseService: PromiseLibraryInterface;
|
|
13
|
+
readonly cache: ResourceCache<CollectionResource<any>>;
|
|
14
|
+
constructor(errorHandler: ErrorHandlerInterface, exceptionHandler: ExceptionHandlerInterface, itemResourceFactory: ItemResourceFactory, changesProcessor: ChangesProcessor, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
15
|
+
construct<ItemTypeType extends ItemType>(collectionEntry: CollectionEntry<ItemTypeType>, options: CollectionResourceOptionsInterface<ItemTypeType> & {
|
|
16
|
+
editItems: true;
|
|
17
|
+
editCollection: true;
|
|
18
|
+
}, level: number, localCache: LocalCache | null): CollectionEditResource<ItemTypeType, EditResource<ItemTypeType>>;
|
|
19
|
+
construct<ItemTypeType extends ItemType>(collectionEntry: CollectionEntry<ItemTypeType>, options: CollectionResourceOptionsInterface<ItemTypeType> & {
|
|
20
|
+
remoteItems: true;
|
|
21
|
+
editCollection: true;
|
|
22
|
+
}, level: number, localCache: LocalCache | null): CollectionEditResource<ItemTypeType, RemoteViewResource<ItemTypeType>>;
|
|
23
|
+
construct<ItemTypeType extends ItemType>(collectionEntry: CollectionEntry<ItemTypeType>, options: CollectionResourceOptionsInterface<ItemTypeType> & {
|
|
24
|
+
editCollection: true;
|
|
25
|
+
}, level: number, localCache: LocalCache | null): CollectionEditResource<ItemTypeType, LocalViewResource<ItemTypeType>>;
|
|
26
|
+
construct<ItemTypeType extends ItemType>(collectionEntry: CollectionEntry<ItemTypeType>, options: CollectionResourceOptionsInterface<ItemTypeType> & {
|
|
27
|
+
editItems: true;
|
|
28
|
+
}, level: number, localCache: LocalCache | null): CollectionViewResource<ItemTypeType, EditResource<ItemTypeType>>;
|
|
29
|
+
construct<ItemTypeType extends ItemType>(collectionEntry: CollectionEntry<ItemTypeType>, options: CollectionResourceOptionsInterface<ItemTypeType> & {
|
|
30
|
+
remoteItems: true;
|
|
31
|
+
}, level: number, localCache: LocalCache | null): CollectionViewResource<ItemTypeType, RemoteViewResource<ItemTypeType>>;
|
|
32
|
+
construct<ItemTypeType extends ItemType>(collectionEntry: CollectionEntry<ItemTypeType>, options: CollectionResourceOptionsInterface<ItemTypeType>, level: number, localCache: LocalCache | null): CollectionViewResource<ItemTypeType, LocalViewResource<ItemTypeType>>;
|
|
33
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ColumnExpansion } from '../classes';
|
|
2
|
-
import { ColumnInfoFactory } from '../factories';
|
|
3
|
-
import { ApiRequestColumns, ItemType, ResponseColumnMap } from '../types';
|
|
4
|
-
export declare class ColumnExpansionFactory {
|
|
5
|
-
private columnInfoFactory;
|
|
6
|
-
constructor(columnInfoFactory: ColumnInfoFactory);
|
|
7
|
-
construct(itemType:
|
|
8
|
-
}
|
|
1
|
+
import { ColumnExpansion } from '../classes';
|
|
2
|
+
import { ColumnInfoFactory } from '../factories';
|
|
3
|
+
import { ApiRequestColumns, ItemType, ResponseColumnMap } from '../types';
|
|
4
|
+
export declare class ColumnExpansionFactory {
|
|
5
|
+
private columnInfoFactory;
|
|
6
|
+
constructor(columnInfoFactory: ColumnInfoFactory);
|
|
7
|
+
construct<ItemTypeType extends ItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns, responseColumns: ResponseColumnMap): ColumnExpansion<ItemTypeType>;
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColumnInfo } from '../classes';
|
|
2
|
-
import { ResponseColumn, RootColumnMap } from '../types';
|
|
3
|
-
export declare class ColumnInfoFactory {
|
|
4
|
-
constructor();
|
|
5
|
-
construct(apiColumn: ResponseColumn, parent: ColumnInfo | null): ColumnInfo
|
|
6
|
-
constructFromRootMap(rootColumnMap: RootColumnMap, parent?: ColumnInfo | null): ColumnInfo[];
|
|
7
|
-
}
|
|
1
|
+
import { ColumnInfo } from '../classes';
|
|
2
|
+
import { ItemType, ResponseColumn, RootColumnMap } from '../types';
|
|
3
|
+
export declare class ColumnInfoFactory {
|
|
4
|
+
constructor();
|
|
5
|
+
construct<ItemTypeType extends ItemType>(apiColumn: ResponseColumn, parent: ColumnInfo<ItemTypeType> | null): ColumnInfo<ItemTypeType>;
|
|
6
|
+
constructFromRootMap<ItemTypeType extends ItemType>(rootColumnMap: RootColumnMap, parent?: ColumnInfo<ItemTypeType> | null): ColumnInfo<ItemTypeType>[];
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ColumnHandler, ColumnSet, ColumnUtil } from '../classes';
|
|
2
|
-
import { ColumnInfoFactory } from '../factories';
|
|
3
|
-
import { ApiRequestColumns, ItemType, ResponseColumnMap } from '../types';
|
|
4
|
-
export declare class ColumnSetFactory {
|
|
5
|
-
private columnHandler;
|
|
6
|
-
private columnUtil;
|
|
7
|
-
private columnInfoFactory;
|
|
8
|
-
constructor(columnHandler: ColumnHandler, columnUtil: ColumnUtil, columnInfoFactory: ColumnInfoFactory);
|
|
9
|
-
constructStub(itemType:
|
|
10
|
-
construct(itemType:
|
|
11
|
-
}
|
|
1
|
+
import { ColumnHandler, ColumnSet, ColumnUtil } from '../classes';
|
|
2
|
+
import { ColumnInfoFactory } from '../factories';
|
|
3
|
+
import { ApiRequestColumns, ItemType, ResponseColumnMap } from '../types';
|
|
4
|
+
export declare class ColumnSetFactory {
|
|
5
|
+
private columnHandler;
|
|
6
|
+
private columnUtil;
|
|
7
|
+
private columnInfoFactory;
|
|
8
|
+
constructor(columnHandler: ColumnHandler, columnUtil: ColumnUtil, columnInfoFactory: ColumnInfoFactory);
|
|
9
|
+
constructStub<ItemTypeType extends ItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns): ColumnSet<ItemTypeType>;
|
|
10
|
+
construct<ItemTypeType extends ItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns, responseColumns: ResponseColumnMap, enableCaching?: boolean, includeIdColumn?: boolean): ColumnSet<ItemTypeType>;
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColumnSubsetCache } from '../classes';
|
|
2
|
-
import { ApiRequestColumns } from '../types';
|
|
3
|
-
export declare class ColumnSubsetCacheFactory {
|
|
4
|
-
constructor();
|
|
5
|
-
construct(requestColumns: ApiRequestColumns): ColumnSubsetCache
|
|
6
|
-
}
|
|
1
|
+
import { ColumnSubsetCache } from '../classes';
|
|
2
|
+
import { ApiRequestColumns, ItemType } from '../types';
|
|
3
|
+
export declare class ColumnSubsetCacheFactory {
|
|
4
|
+
constructor();
|
|
5
|
+
construct<ItemTypeType extends ItemType>(requestColumns: ApiRequestColumns): ColumnSubsetCache<ItemTypeType>;
|
|
6
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CollectionCache, CollectionHandler, CreateCompilation, CreateRequest, KeyService } from '../classes';
|
|
2
|
-
import { CollectionMatcherFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { CreateRequestParameterMap } from '../types';
|
|
4
|
-
export declare class CreateRequestFactory {
|
|
5
|
-
private collectionHandler;
|
|
6
|
-
private collectionMatcherFactory;
|
|
7
|
-
private keyService;
|
|
8
|
-
private requestColumnExpansionFactory;
|
|
9
|
-
constructor(collectionHandler: CollectionHandler, collectionMatcherFactory: CollectionMatcherFactory, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
10
|
-
construct(compilation: CreateCompilation, localCollectionCache: CollectionCache, parameterMap: CreateRequestParameterMap, breakupByParent?: boolean): CreateRequest
|
|
11
|
-
}
|
|
1
|
+
import { CollectionCache, CollectionHandler, CreateCompilation, CreateRequest, KeyService } from '../classes';
|
|
2
|
+
import { CollectionMatcherFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
import { CreateRequestParameterMap, ItemType } from '../types';
|
|
4
|
+
export declare class CreateRequestFactory {
|
|
5
|
+
private collectionHandler;
|
|
6
|
+
private collectionMatcherFactory;
|
|
7
|
+
private keyService;
|
|
8
|
+
private requestColumnExpansionFactory;
|
|
9
|
+
constructor(collectionHandler: CollectionHandler, collectionMatcherFactory: CollectionMatcherFactory, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
10
|
+
construct<ItemTypeType extends ItemType>(compilation: CreateCompilation, localCollectionCache: CollectionCache, parameterMap: CreateRequestParameterMap, breakupByParent?: boolean): CreateRequest<ItemTypeType>;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ItemCache } from '../classes';
|
|
2
|
-
import { QueryMatcherFactory } from '../factories';
|
|
3
|
-
export declare class ItemCacheFactory {
|
|
4
|
-
private queryMatcherFactory;
|
|
5
|
-
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
-
construct(): ItemCache;
|
|
7
|
-
}
|
|
1
|
+
import { ItemCache } from '../classes';
|
|
2
|
+
import { QueryMatcherFactory } from '../factories';
|
|
3
|
+
export declare class ItemCacheFactory {
|
|
4
|
+
private queryMatcherFactory;
|
|
5
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
+
construct(): ItemCache;
|
|
7
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ApiFormatter, ColumnSet, ItemEntryService, KeyService } from '../classes';
|
|
2
|
-
import { ColumnSetFactory, ItemResourceFactory } from '../factories';
|
|
3
|
-
import { AuthInterface, ExceptionHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
import { ItemEntry, Template } from '../models';
|
|
5
|
-
import { ApiRequestColumns, EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType } from '../types';
|
|
6
|
-
export declare class ItemEntryFactory {
|
|
7
|
-
authInterface: AuthInterface;
|
|
8
|
-
apiFormatter: ApiFormatter;
|
|
9
|
-
columnSetFactory: ColumnSetFactory;
|
|
10
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
11
|
-
itemEntryService: ItemEntryService;
|
|
12
|
-
itemResourceFactory: ItemResourceFactory;
|
|
13
|
-
keyService: KeyService;
|
|
14
|
-
promiseService: PromiseLibraryInterface;
|
|
15
|
-
constructor(authInterface: AuthInterface, apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, exceptionHandler: ExceptionHandlerInterface, itemEntryService: ItemEntryService, itemResourceFactory: ItemResourceFactory, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
16
|
-
constructStub(itemType:
|
|
17
|
-
constructLocalLinked(itemType:
|
|
18
|
-
constructLocal(itemId: ItemId, template: Template
|
|
19
|
-
constructDeferred(itemType:
|
|
20
|
-
construct(itemId: ItemId, initial: FieldMap
|
|
21
|
-
}
|
|
1
|
+
import { ApiFormatter, ColumnSet, ItemEntryService, KeyService } from '../classes';
|
|
2
|
+
import { ColumnSetFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { AuthInterface, ExceptionHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
+
import { ItemEntry, Template } from '../models';
|
|
5
|
+
import { ApiRequestColumns, EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType } from '../types';
|
|
6
|
+
export declare class ItemEntryFactory {
|
|
7
|
+
authInterface: AuthInterface;
|
|
8
|
+
apiFormatter: ApiFormatter;
|
|
9
|
+
columnSetFactory: ColumnSetFactory;
|
|
10
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
11
|
+
itemEntryService: ItemEntryService;
|
|
12
|
+
itemResourceFactory: ItemResourceFactory;
|
|
13
|
+
keyService: KeyService;
|
|
14
|
+
promiseService: PromiseLibraryInterface;
|
|
15
|
+
constructor(authInterface: AuthInterface, apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, exceptionHandler: ExceptionHandlerInterface, itemEntryService: ItemEntryService, itemResourceFactory: ItemResourceFactory, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
16
|
+
constructStub<ItemTypeType extends ItemType>(itemType: ItemTypeType, itemId: ItemId, columnSetStub: ColumnSet<ItemTypeType>): ItemEntry<ItemTypeType>;
|
|
17
|
+
constructLocalLinked<ItemTypeType extends ItemType>(itemType: ItemTypeType, itemId: ItemId, initial: FieldMap<ItemTypeType>, parent: EntryParentNull, columnSet: ColumnSet<ItemTypeType>, conversionMap: ItemIdConversionMap): ItemEntry<ItemTypeType>;
|
|
18
|
+
constructLocal<ItemTypeType extends ItemType>(itemId: ItemId, template: Template<ItemTypeType>, modified: FieldMap<ItemTypeType>, derived: FieldMap, parent?: EntryParentNull, columnSet?: ColumnSet<ItemTypeType>, conversionMap?: ItemIdConversionMap): ItemEntry<ItemTypeType>;
|
|
19
|
+
constructDeferred<ItemTypeType extends ItemType>(itemType: ItemTypeType, itemId: ItemId, requestColumns: ApiRequestColumns, deferRequest: boolean): ItemEntry<ItemTypeType>;
|
|
20
|
+
construct<ItemTypeType extends ItemType>(itemId: ItemId, initial: FieldMap<ItemTypeType>, derived: FieldMap, columnInfo: ColumnSet<ItemTypeType>): ItemEntry<ItemTypeType>;
|
|
21
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ApiFormatter, ChangesProcessor, LocalCache, LockService, ResourceCache } from '../classes';
|
|
2
|
-
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
-
import { EditResource, ItemEntry, ItemResource, LocalViewResource, RemoteViewResource } from '../models';
|
|
4
|
-
import { ItemOptionsInterface } from '../types';
|
|
5
|
-
export declare type ResourceConstructor<T extends ItemResource
|
|
6
|
-
export declare class ItemResourceFactory {
|
|
7
|
-
apiFormatter: ApiFormatter;
|
|
8
|
-
lockService: LockService;
|
|
9
|
-
changesProcessor: ChangesProcessor;
|
|
10
|
-
errorHandler: ErrorHandlerInterface;
|
|
11
|
-
promiseService: PromiseLibraryInterface;
|
|
12
|
-
readonly cache: ResourceCache<ItemResource
|
|
13
|
-
constructor(apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseLibraryInterface);
|
|
14
|
-
getConstructor(options: ItemOptionsInterface & {
|
|
15
|
-
edit: true;
|
|
16
|
-
}, level: number, localCache: LocalCache | null): ResourceConstructor<EditResource
|
|
17
|
-
getConstructor(options: ItemOptionsInterface & {
|
|
18
|
-
remote: true;
|
|
19
|
-
}, level: number, localCache: LocalCache | null): ResourceConstructor<RemoteViewResource
|
|
20
|
-
getConstructor(options: ItemOptionsInterface, level: number, localCache: LocalCache | null): ResourceConstructor<LocalViewResource
|
|
21
|
-
construct(itemEntry: ItemEntry
|
|
22
|
-
edit: true;
|
|
23
|
-
}, level: number, localCache?: LocalCache | null, isNew?: boolean): EditResource
|
|
24
|
-
construct(itemEntry: ItemEntry
|
|
25
|
-
remote: true;
|
|
26
|
-
}, level: number, localCache?: LocalCache | null, isNew?: boolean): LocalViewResource
|
|
27
|
-
construct(itemEntry: ItemEntry
|
|
28
|
-
private constructWithOptions;
|
|
29
|
-
}
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, LocalCache, LockService, ResourceCache } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
+
import { EditResource, ItemEntry, ItemResource, LocalViewResource, RemoteViewResource } from '../models';
|
|
4
|
+
import { ItemOptionsInterface, ItemType } from '../types';
|
|
5
|
+
export declare type ResourceConstructor<ItemTypeType extends ItemType, T extends ItemResource<ItemTypeType>> = (itemEntry: ItemEntry<ItemTypeType>) => T;
|
|
6
|
+
export declare class ItemResourceFactory {
|
|
7
|
+
apiFormatter: ApiFormatter;
|
|
8
|
+
lockService: LockService;
|
|
9
|
+
changesProcessor: ChangesProcessor;
|
|
10
|
+
errorHandler: ErrorHandlerInterface;
|
|
11
|
+
promiseService: PromiseLibraryInterface;
|
|
12
|
+
readonly cache: ResourceCache<ItemResource<any>>;
|
|
13
|
+
constructor(apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseLibraryInterface);
|
|
14
|
+
getConstructor<ItemTypeType extends ItemType>(options: ItemOptionsInterface & {
|
|
15
|
+
edit: true;
|
|
16
|
+
}, level: number, localCache: LocalCache | null): ResourceConstructor<ItemTypeType, EditResource<ItemTypeType>>;
|
|
17
|
+
getConstructor<ItemTypeType extends ItemType>(options: ItemOptionsInterface & {
|
|
18
|
+
remote: true;
|
|
19
|
+
}, level: number, localCache: LocalCache | null): ResourceConstructor<ItemTypeType, RemoteViewResource<ItemTypeType>>;
|
|
20
|
+
getConstructor<ItemTypeType extends ItemType>(options: ItemOptionsInterface, level: number, localCache: LocalCache | null): ResourceConstructor<ItemTypeType, LocalViewResource<ItemTypeType>>;
|
|
21
|
+
construct<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, options: ItemOptionsInterface & {
|
|
22
|
+
edit: true;
|
|
23
|
+
}, level: number, localCache?: LocalCache | null, isNew?: boolean): EditResource<ItemTypeType>;
|
|
24
|
+
construct<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, options: ItemOptionsInterface & {
|
|
25
|
+
remote: true;
|
|
26
|
+
}, level: number, localCache?: LocalCache | null, isNew?: boolean): LocalViewResource<ItemTypeType>;
|
|
27
|
+
construct<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, options: ItemOptionsInterface, level: number, localCache?: LocalCache | null, isNew?: boolean): RemoteViewResource<ItemTypeType>;
|
|
28
|
+
private constructWithOptions;
|
|
29
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ChangesProcessor, LocalCache, LockService } from '../classes';
|
|
2
|
-
import { CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ErrorHandlerInterface, ExceptionHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
-
export declare class LocalCacheFactory {
|
|
5
|
-
private changesProcessor;
|
|
6
|
-
private collectionCacheFactory;
|
|
7
|
-
private collectionResourceFactory;
|
|
8
|
-
private errorHandler;
|
|
9
|
-
private exceptionHandler;
|
|
10
|
-
private itemCacheFactory;
|
|
11
|
-
private itemResourceFactory;
|
|
12
|
-
private lockService;
|
|
13
|
-
private promiseService;
|
|
14
|
-
constructor(changesProcessor: ChangesProcessor, collectionCacheFactory: CollectionCacheFactory, collectionResourceFactory: CollectionResourceFactory, errorHandler: ErrorHandlerInterface, exceptionHandler: ExceptionHandlerInterface, itemCacheFactory: ItemCacheFactory, itemResourceFactory: ItemResourceFactory, lockService: LockService, promiseService: PromiseLibraryInterface);
|
|
15
|
-
construct(id: string, defaultResourceLevel: number): LocalCache;
|
|
16
|
-
}
|
|
1
|
+
import { ChangesProcessor, LocalCache, LockService } from '../classes';
|
|
2
|
+
import { CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, ExceptionHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
|
+
export declare class LocalCacheFactory {
|
|
5
|
+
private changesProcessor;
|
|
6
|
+
private collectionCacheFactory;
|
|
7
|
+
private collectionResourceFactory;
|
|
8
|
+
private errorHandler;
|
|
9
|
+
private exceptionHandler;
|
|
10
|
+
private itemCacheFactory;
|
|
11
|
+
private itemResourceFactory;
|
|
12
|
+
private lockService;
|
|
13
|
+
private promiseService;
|
|
14
|
+
constructor(changesProcessor: ChangesProcessor, collectionCacheFactory: CollectionCacheFactory, collectionResourceFactory: CollectionResourceFactory, errorHandler: ErrorHandlerInterface, exceptionHandler: ExceptionHandlerInterface, itemCacheFactory: ItemCacheFactory, itemResourceFactory: ItemResourceFactory, lockService: LockService, promiseService: PromiseLibraryInterface);
|
|
15
|
+
construct(id: string, defaultResourceLevel: number): LocalCache;
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CollectionCache, ItemCache, ModuleChangesCompilation } from '../classes';
|
|
2
|
-
import { ItemEntry } from '../models';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CollectionCache, ItemCache, ModuleChangesCompilation } from '../classes';
|
|
2
|
+
import { ItemEntry } from '../models';
|
|
3
|
+
import { ItemType } from '../types';
|
|
4
|
+
export declare class ModuleChangesCompilationFactory {
|
|
5
|
+
construct<ItemTypeType extends ItemType>(rootItem: ItemEntry<ItemTypeType>, singleItemCache: ItemCache, collectionCache: CollectionCache): ModuleChangesCompilation<ItemTypeType>;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiFormatter, QueryMatcher } from '../classes';
|
|
2
|
-
import { EntryParentNull, FieldMap, ItemType } from '../types';
|
|
3
|
-
export declare class QueryMatcherFactory {
|
|
4
|
-
private apiFormatter;
|
|
5
|
-
constructor(apiFormatter: ApiFormatter);
|
|
6
|
-
construct(itemType: ItemType, fields: FieldMap, parent: EntryParentNull): QueryMatcher;
|
|
7
|
-
}
|
|
1
|
+
import { ApiFormatter, QueryMatcher } from '../classes';
|
|
2
|
+
import { EntryParentNull, FieldMap, ItemType } from '../types';
|
|
3
|
+
export declare class QueryMatcherFactory {
|
|
4
|
+
private apiFormatter;
|
|
5
|
+
constructor(apiFormatter: ApiFormatter);
|
|
6
|
+
construct(itemType: ItemType, fields: FieldMap, parent: EntryParentNull): QueryMatcher;
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { QueryParser } from '../classes';
|
|
2
|
-
import { ApiQuery } from '../types';
|
|
3
|
-
export declare class QueryParserFactory {
|
|
4
|
-
constructor();
|
|
5
|
-
construct(query: ApiQuery, parameters?: any): QueryParser;
|
|
6
|
-
}
|
|
1
|
+
import { QueryParser } from '../classes';
|
|
2
|
+
import { ApiQuery } from '../types';
|
|
3
|
+
export declare class QueryParserFactory {
|
|
4
|
+
constructor();
|
|
5
|
+
construct(query: ApiQuery, parameters?: any): QueryParser;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColumnUtil, RequestColumnExpansion } from '../classes';
|
|
2
|
-
export declare class RequestColumnExpansionFactory {
|
|
3
|
-
private columnUtil;
|
|
4
|
-
constructor(columnUtil: ColumnUtil);
|
|
5
|
-
construct(): RequestColumnExpansion;
|
|
6
|
-
}
|
|
1
|
+
import { ColumnUtil, RequestColumnExpansion } from '../classes';
|
|
2
|
+
export declare class RequestColumnExpansionFactory {
|
|
3
|
+
private columnUtil;
|
|
4
|
+
constructor(columnUtil: ColumnUtil);
|
|
5
|
+
construct(): RequestColumnExpansion;
|
|
6
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ColumnUtil } from '../classes';
|
|
2
|
-
import { ColumnSetFactory } from '../factories';
|
|
3
|
-
import { Template } from '../models';
|
|
4
|
-
import { ApiResponse, ItemType, ResponseColumnMap } from '../types';
|
|
5
|
-
export declare class TemplateFactory {
|
|
6
|
-
columnSetFactory: ColumnSetFactory;
|
|
7
|
-
columnUtil: ColumnUtil;
|
|
8
|
-
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
9
|
-
construct(itemType:
|
|
10
|
-
}
|
|
1
|
+
import { ColumnUtil } from '../classes';
|
|
2
|
+
import { ColumnSetFactory } from '../factories';
|
|
3
|
+
import { Template } from '../models';
|
|
4
|
+
import { ApiResponse, ItemType, ResponseColumnMap } from '../types';
|
|
5
|
+
export declare class TemplateFactory {
|
|
6
|
+
columnSetFactory: ColumnSetFactory;
|
|
7
|
+
columnUtil: ColumnUtil;
|
|
8
|
+
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
9
|
+
construct<ItemTypeType extends ItemType>(itemType: ItemTypeType, response: ApiResponse, additionalColumns: ResponseColumnMap): Template<ItemTypeType>;
|
|
10
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from './ApiResponseProcessorFactory';
|
|
2
|
-
export * from './BatchStatusFactory';
|
|
3
|
-
export * from './ChangesCompilationFactory';
|
|
4
|
-
export * from './CollectionCacheFactory';
|
|
5
|
-
export * from './CollectionEntryFactory';
|
|
6
|
-
export * from './CollectionMatcherFactory';
|
|
7
|
-
export * from './CollectionResourceFactory';
|
|
8
|
-
export * from './ColumnExpansionFactory';
|
|
9
|
-
export * from './ColumnInfoFactory';
|
|
10
|
-
export * from './ColumnSetFactory';
|
|
11
|
-
export * from './ColumnSubsetCacheFactory';
|
|
12
|
-
export * from './CreateRequestFactory';
|
|
13
|
-
export * from './ItemCacheFactory';
|
|
14
|
-
export * from './ItemEntryFactory';
|
|
15
|
-
export * from './ItemResourceFactory';
|
|
16
|
-
export * from './LocalCacheFactory';
|
|
17
|
-
export * from './ModuleChangesCompilationFactory';
|
|
18
|
-
export * from './QueryMatcherFactory';
|
|
19
|
-
export * from './QueryParserFactory';
|
|
20
|
-
export * from './RequestColumnExpansionFactory';
|
|
21
|
-
export * from './TemplateFactory';
|
|
1
|
+
export * from './ApiResponseProcessorFactory';
|
|
2
|
+
export * from './BatchStatusFactory';
|
|
3
|
+
export * from './ChangesCompilationFactory';
|
|
4
|
+
export * from './CollectionCacheFactory';
|
|
5
|
+
export * from './CollectionEntryFactory';
|
|
6
|
+
export * from './CollectionMatcherFactory';
|
|
7
|
+
export * from './CollectionResourceFactory';
|
|
8
|
+
export * from './ColumnExpansionFactory';
|
|
9
|
+
export * from './ColumnInfoFactory';
|
|
10
|
+
export * from './ColumnSetFactory';
|
|
11
|
+
export * from './ColumnSubsetCacheFactory';
|
|
12
|
+
export * from './CreateRequestFactory';
|
|
13
|
+
export * from './ItemCacheFactory';
|
|
14
|
+
export * from './ItemEntryFactory';
|
|
15
|
+
export * from './ItemResourceFactory';
|
|
16
|
+
export * from './LocalCacheFactory';
|
|
17
|
+
export * from './ModuleChangesCompilationFactory';
|
|
18
|
+
export * from './QueryMatcherFactory';
|
|
19
|
+
export * from './QueryParserFactory';
|
|
20
|
+
export * from './RequestColumnExpansionFactory';
|
|
21
|
+
export * from './TemplateFactory';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './core';
|
|
2
|
-
export * from './constants';
|
|
3
|
-
export * from './models';
|
|
4
|
-
export * from './interfaces';
|
|
5
|
-
export * from './classes';
|
|
6
|
-
export * from './factories';
|
|
7
|
-
export * from './types';
|
|
1
|
+
export * from './core';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './models';
|
|
4
|
+
export * from './interfaces';
|
|
5
|
+
export * from './classes';
|
|
6
|
+
export * from './factories';
|
|
7
|
+
export * from './types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, ItemId, ItemType, PromiseInterface } from '../types';
|
|
2
|
-
export interface ApiRequestServiceInterface {
|
|
3
|
-
template(itemType: ItemType, params: any): PromiseInterface<any>;
|
|
4
|
-
create(itemType: ItemType, itemId: ItemId, values: any, parentType?: ItemType, parentId?: ItemId): PromiseInterface<any>;
|
|
5
|
-
delete(itemType: ItemType, itemIds: ItemId[]): PromiseInterface<any>;
|
|
6
|
-
updateItems(itemType: ItemType, items: ApiRequestItemMap, columns: ApiRequestColumnMap): PromiseInterface<any>;
|
|
7
|
-
requestSkeleton(params: any, requestCanceler?: PromiseInterface<any>): PromiseInterface<any>;
|
|
8
|
-
moveItems(parentType: ItemType, parentId: ItemId, items: ApiRequestMoveItems): PromiseInterface<any>;
|
|
9
|
-
columns(itemType: ItemType, columns: ApiRequestColumnMap, params?: any): PromiseInterface<any>;
|
|
10
|
-
query(itemType: ItemType, query: any, columns: ApiRequestColumnMap, limit?: ApiRequestLimit): PromiseInterface<any>;
|
|
11
|
-
}
|
|
1
|
+
import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, ItemId, ItemType, PromiseInterface } from '../types';
|
|
2
|
+
export interface ApiRequestServiceInterface {
|
|
3
|
+
template(itemType: ItemType, params: any): PromiseInterface<any>;
|
|
4
|
+
create(itemType: ItemType, itemId: ItemId, values: any, parentType?: ItemType, parentId?: ItemId): PromiseInterface<any>;
|
|
5
|
+
delete(itemType: ItemType, itemIds: ItemId[]): PromiseInterface<any>;
|
|
6
|
+
updateItems(itemType: ItemType, items: ApiRequestItemMap, columns: ApiRequestColumnMap): PromiseInterface<any>;
|
|
7
|
+
requestSkeleton(params: any, requestCanceler?: PromiseInterface<any>): PromiseInterface<any>;
|
|
8
|
+
moveItems(parentType: ItemType, parentId: ItemId, items: ApiRequestMoveItems): PromiseInterface<any>;
|
|
9
|
+
columns(itemType: ItemType, columns: ApiRequestColumnMap, params?: any): PromiseInterface<any>;
|
|
10
|
+
query(itemType: ItemType, query: any, columns: ApiRequestColumnMap, limit?: ApiRequestLimit): PromiseInterface<any>;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface AuthInterface {
|
|
2
|
-
/**
|
|
3
|
-
* @returns {string} A uniquely identifying string for each user of the api
|
|
4
|
-
*/
|
|
5
|
-
getUniqueUserId(): string;
|
|
6
|
-
getUserId(): number;
|
|
7
|
-
getUserAccountname(): string;
|
|
8
|
-
getUserDisplayname(): string;
|
|
9
|
-
}
|
|
1
|
+
export interface AuthInterface {
|
|
2
|
+
/**
|
|
3
|
+
* @returns {string} A uniquely identifying string for each user of the api
|
|
4
|
+
*/
|
|
5
|
+
getUniqueUserId(): string;
|
|
6
|
+
getUserId(): number;
|
|
7
|
+
getUserAccountname(): string;
|
|
8
|
+
getUserDisplayname(): string;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PromiseInterface } from '../types';
|
|
2
|
-
export interface ErrorHandlerInterface {
|
|
3
|
-
reject(error?: object): PromiseInterface<any>;
|
|
4
|
-
notifyError(error?: any): PromiseInterface<any>;
|
|
5
|
-
}
|
|
1
|
+
import { PromiseInterface } from '../types';
|
|
2
|
+
export interface ErrorHandlerInterface {
|
|
3
|
+
reject(error?: object): PromiseInterface<any>;
|
|
4
|
+
notifyError(error?: any): PromiseInterface<any>;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ExceptionHandlerInterface {
|
|
2
|
-
(exception: any): void;
|
|
3
|
-
}
|
|
1
|
+
export interface ExceptionHandlerInterface {
|
|
2
|
+
(exception: any): void;
|
|
3
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
export interface LocalCacheManagerInterface {
|
|
3
|
-
getCurrentLocalCache(userId: string): LocalCache;
|
|
4
|
-
getAllLocalCaches(): LocalCache[];
|
|
5
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
export interface LocalCacheManagerInterface {
|
|
3
|
+
getCurrentLocalCache(userId: string): LocalCache;
|
|
4
|
+
getAllLocalCaches(): LocalCache[];
|
|
5
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { PromiseInterface } from '../types';
|
|
2
|
-
export interface Deferred<T> {
|
|
3
|
-
resolve(value?: T | PromiseInterface<T>): void;
|
|
4
|
-
reject(reason?: any): void;
|
|
5
|
-
promise: PromiseInterface<T>;
|
|
6
|
-
}
|
|
7
|
-
export interface PromiseLibraryInterface {
|
|
8
|
-
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>, T10 | PromiseInterface<T10>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
9
|
-
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
10
|
-
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
11
|
-
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
12
|
-
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>]): PromiseInterface<[T1, T2, T3, T4, T5, T6]>;
|
|
13
|
-
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>]): PromiseInterface<[T1, T2, T3, T4, T5]>;
|
|
14
|
-
all<T1, T2, T3, T4>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>]): PromiseInterface<[T1, T2, T3, T4]>;
|
|
15
|
-
all<T1, T2, T3>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>]): PromiseInterface<[T1, T2, T3]>;
|
|
16
|
-
all<T1, T2>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>]): PromiseInterface<[T1, T2]>;
|
|
17
|
-
all<TAll>(promises: Array<TAll | PromiseInterface<TAll>>): PromiseInterface<TAll[]>;
|
|
18
|
-
all(iterable: Array<PromiseInterface<any> | any>): PromiseInterface<any[]>;
|
|
19
|
-
all<T>(promises: {
|
|
20
|
-
[K in keyof T]: (PromiseInterface<T[K]> | T[K] | null);
|
|
21
|
-
}): PromiseInterface<T>;
|
|
22
|
-
when<T>(value?: PromiseInterface<T> | T): PromiseInterface<T>;
|
|
23
|
-
reject(value?: any): PromiseInterface<any>;
|
|
24
|
-
defer<T>(): Deferred<T>;
|
|
25
|
-
}
|
|
1
|
+
import { PromiseInterface } from '../types';
|
|
2
|
+
export interface Deferred<T> {
|
|
3
|
+
resolve(value?: T | PromiseInterface<T>): void;
|
|
4
|
+
reject(reason?: any): void;
|
|
5
|
+
promise: PromiseInterface<T>;
|
|
6
|
+
}
|
|
7
|
+
export interface PromiseLibraryInterface {
|
|
8
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>, T10 | PromiseInterface<T10>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
9
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
10
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
11
|
+
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
12
|
+
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>]): PromiseInterface<[T1, T2, T3, T4, T5, T6]>;
|
|
13
|
+
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>]): PromiseInterface<[T1, T2, T3, T4, T5]>;
|
|
14
|
+
all<T1, T2, T3, T4>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>]): PromiseInterface<[T1, T2, T3, T4]>;
|
|
15
|
+
all<T1, T2, T3>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>]): PromiseInterface<[T1, T2, T3]>;
|
|
16
|
+
all<T1, T2>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>]): PromiseInterface<[T1, T2]>;
|
|
17
|
+
all<TAll>(promises: Array<TAll | PromiseInterface<TAll>>): PromiseInterface<TAll[]>;
|
|
18
|
+
all(iterable: Array<PromiseInterface<any> | any>): PromiseInterface<any[]>;
|
|
19
|
+
all<T>(promises: {
|
|
20
|
+
[K in keyof T]: (PromiseInterface<T[K]> | T[K] | null);
|
|
21
|
+
}): PromiseInterface<T>;
|
|
22
|
+
when<T>(value?: PromiseInterface<T> | T): PromiseInterface<T>;
|
|
23
|
+
reject(value?: any): PromiseInterface<any>;
|
|
24
|
+
defer<T>(): Deferred<T>;
|
|
25
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface SocketMessageInterface {
|
|
2
|
-
on(event: string, messageHandler: (message: any) => void): () => boolean;
|
|
3
|
-
}
|
|
1
|
+
export interface SocketMessageInterface {
|
|
2
|
+
on(event: string, messageHandler: (message: any) => void): () => boolean;
|
|
3
|
+
}
|