@rentman/rm-core 2.3.0 → 2.4.0
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 +3 -0
- package/dist/rm-core.js +9397 -8690
- package/dist/rm-core.min.js +16 -1
- package/dist/{src → types}/classes/ApiFormatter.d.ts +1 -1
- package/dist/{src → types}/classes/cache/ItemHandlerBase.d.ts +1 -1
- package/dist/{src → types}/classes/cache/server/ServerItemHandler.d.ts +1 -1
- package/dist/{src → types}/classes/cache/transaction/TransactionCache.d.ts +1 -1
- package/dist/{src → types}/classes/index.d.ts +1 -0
- package/dist/{src → types}/models/CollectionResource.d.ts +1 -1
- package/package.json +9 -9
- /package/dist/{src → types}/classes/ApiRequestService.d.ts +0 -0
- /package/dist/{src → types}/classes/ApiResponseProcessor.d.ts +0 -0
- /package/dist/{src → types}/classes/ChangesCompilation.d.ts +0 -0
- /package/dist/{src → types}/classes/ChangesDelta.d.ts +0 -0
- /package/dist/{src → types}/classes/ChangesDeltaBase.d.ts +0 -0
- /package/dist/{src → types}/classes/ChangesProcessor.d.ts +0 -0
- /package/dist/{src → types}/classes/CollectionCache.d.ts +0 -0
- /package/dist/{src → types}/classes/CollectionEntryService.d.ts +0 -0
- /package/dist/{src → types}/classes/CollectionMatcher.d.ts +0 -0
- /package/dist/{src → types}/classes/CollectionMatcherBase.d.ts +0 -0
- /package/dist/{src → types}/classes/CollectionResourceService.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnCache.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnExpansion.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnHandler.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnInfo.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnSet.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnSubsetCache.d.ts +0 -0
- /package/dist/{src → types}/classes/ColumnUtil.d.ts +0 -0
- /package/dist/{src → types}/classes/CreateRequest.d.ts +0 -0
- /package/dist/{src → types}/classes/InternalChangesDelta.d.ts +0 -0
- /package/dist/{src → types}/classes/ItemCache.d.ts +0 -0
- /package/dist/{src → types}/classes/ItemCreateService.d.ts +0 -0
- /package/dist/{src → types}/classes/ItemEntryService.d.ts +0 -0
- /package/dist/{src → types}/classes/KeyService.d.ts +0 -0
- /package/dist/{src → types}/classes/LockService.d.ts +0 -0
- /package/dist/{src → types}/classes/ModuleChangesCompilation.d.ts +0 -0
- /package/dist/{src → types}/classes/QueryColumnExtractor.d.ts +0 -0
- /package/dist/{src → types}/classes/QueryMatcher.d.ts +0 -0
- /package/dist/{src → types}/classes/QueryParser.d.ts +0 -0
- /package/dist/{src → types}/classes/QueryParserBase.d.ts +0 -0
- /package/dist/{src → types}/classes/QueryService.d.ts +0 -0
- /package/dist/{src → types}/classes/RequestBuffer.d.ts +0 -0
- /package/dist/{src → types}/classes/RequestBufferManager.d.ts +0 -0
- /package/dist/{src → types}/classes/RequestColumnExpansion.d.ts +0 -0
- /package/dist/{src → types}/classes/SocketMessageHandler.d.ts +0 -0
- /package/dist/{src → types}/classes/TemplateCache.d.ts +0 -0
- /package/dist/{src → types}/classes/Util.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/AbstractCache.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/CollectionHandlerBase.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/CollectionMatcherCacheProcessor.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/server/ServerCache.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/server/ServerCollectionHandler.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/transaction/TransactionCollectionHandler.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/transaction/TransactionEventHandler.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/transaction/TransactionItemHandler.d.ts +0 -0
- /package/dist/{src → types}/classes/cache/transaction/TransactionValidator.d.ts +0 -0
- /package/dist/{src → types}/constants.d.ts +0 -0
- /package/dist/{src → types}/core.d.ts +0 -0
- /package/dist/{src → types}/factories/ApiResponseProcessorFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ChangesCompilationFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ChangesDeltaFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ChangesProcessorFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/CollectionCacheFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/CollectionEntryFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/CollectionMatcherFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/CollectionResourceFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ColumnExpansionFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ColumnInfoFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ColumnSetFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ColumnSubsetCacheFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/CreateRequestFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ItemCacheFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ItemEntryFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ItemResourceFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/ModuleChangesCompilationFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/QueryMatcherFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/QueryParserFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/RequestColumnExpansionFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/TemplateFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/TransactionCacheFactory.d.ts +0 -0
- /package/dist/{src → types}/factories/index.d.ts +0 -0
- /package/dist/{src → types}/index.d.ts +0 -0
- /package/dist/{src → types}/interfaces/ApiRequestServiceInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/AuthInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/ErrorHandlerInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/ExceptionHandlerInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/LinkTreeServiceInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/PromiseLibraryInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/SocketMessageInterface.d.ts +0 -0
- /package/dist/{src → types}/interfaces/index.d.ts +0 -0
- /package/dist/{src → types}/models/CollectionEditResource.d.ts +0 -0
- /package/dist/{src → types}/models/CollectionEntry.d.ts +0 -0
- /package/dist/{src → types}/models/CollectionEntryOptions.d.ts +0 -0
- /package/dist/{src → types}/models/CollectionResourceOptions.d.ts +0 -0
- /package/dist/{src → types}/models/CollectionViewResource.d.ts +0 -0
- /package/dist/{src → types}/models/EditResource.d.ts +0 -0
- /package/dist/{src → types}/models/ItemEntry.d.ts +0 -0
- /package/dist/{src → types}/models/ItemEntryOptions.d.ts +0 -0
- /package/dist/{src → types}/models/ItemResource.d.ts +0 -0
- /package/dist/{src → types}/models/ItemResourceOptions.d.ts +0 -0
- /package/dist/{src → types}/models/LocalViewResource.d.ts +0 -0
- /package/dist/{src → types}/models/RemoteViewResource.d.ts +0 -0
- /package/dist/{src → types}/models/Template.d.ts +0 -0
- /package/dist/{src → types}/models/ViewResource.d.ts +0 -0
- /package/dist/{src → types}/models/index.d.ts +0 -0
- /package/dist/{src → types}/types/ItemTypesCollection.d.ts +0 -0
- /package/dist/{src → types}/types/PromiseInterface.d.ts +0 -0
- /package/dist/{src → types}/types/index.d.ts +0 -0
|
@@ -50,7 +50,7 @@ export declare abstract class ItemHandlerBase {
|
|
|
50
50
|
* @description
|
|
51
51
|
* Processes the passed {@link ChangesDeltaItemUpdateDelta update delta} on the transaction, if there are no {@link TransactionItemHandler.itemChanges itemChanges} the new values will not be processed
|
|
52
52
|
*/
|
|
53
|
-
abstract processItemEntryChanges(itemEntryChangesTuple: ChangesDeltaItemUpdateDelta): void;
|
|
53
|
+
abstract processItemEntryChanges(itemEntryChangesTuple: ChangesDeltaItemUpdateDelta, forceOverwrite: boolean, updateInitial: boolean, isCalledAfterSocketUpdate: boolean, createItemChangesIfNoneExist: boolean): void;
|
|
54
54
|
/**
|
|
55
55
|
* @description
|
|
56
56
|
* Traverses the column path and returns the fields of the derived item, returns undefined if the item isn't found
|
|
@@ -23,7 +23,7 @@ export declare class ServerItemHandler extends ItemHandlerBase {
|
|
|
23
23
|
* @description
|
|
24
24
|
* Processes updates on a cached entry
|
|
25
25
|
*/
|
|
26
|
-
processItemEntryChanges<ItemTypeType extends ItemType = any>(itemEntryChangesTuple: ChangesDeltaItemUpdateDelta<ItemTypeType>, _forceOverwrite?: boolean, _updateInitial?: boolean, _isCalledAfterSocketUpdate?: boolean, _createItemChangesIfNoneExist?: boolean): FieldMap<ItemTypeType
|
|
26
|
+
processItemEntryChanges<ItemTypeType extends ItemType = any>(itemEntryChangesTuple: ChangesDeltaItemUpdateDelta<ItemTypeType>, _forceOverwrite?: boolean, _updateInitial?: boolean, _isCalledAfterSocketUpdate?: boolean, _createItemChangesIfNoneExist?: boolean): FieldMap<ItemTypeType> | null;
|
|
27
27
|
copyTransactionItemEntryChanges(itemEntryChanges: TransactionItemEntryChanges, entry: ItemEntry): ServerItemEntryChanges;
|
|
28
28
|
fetchItemEntry<ItemTypeType extends ItemType>(itemType: ItemTypeType, itemId: ItemId, options: ItemEntryOptions): PromiseInterface<ItemEntry<ItemTypeType>>;
|
|
29
29
|
fetchItemEntriesByQuery<ItemTypeType extends ItemType>(itemType: ItemTypeType, query: ApiQuery, entryOptions: ItemEntryOptions): PromiseInterface<Array<ItemEntry<ItemTypeType>>>;
|
|
@@ -419,7 +419,7 @@ export declare class TransactionCache extends AbstractCache {
|
|
|
419
419
|
getDelta(): InternalChangesDelta;
|
|
420
420
|
createItemResource<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, options: ItemOptionsInterface<EditResource<ItemTypeType>> & {
|
|
421
421
|
edit: true;
|
|
422
|
-
}, isRoot
|
|
422
|
+
}, isRoot: boolean, isNew?: boolean): EditResource<ItemTypeType>;
|
|
423
423
|
createItemResource<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, options: ItemOptionsInterface<RemoteViewResource<ItemTypeType>> & {
|
|
424
424
|
remote: true;
|
|
425
425
|
}, isRoot?: boolean, isNew?: boolean): RemoteViewResource<ItemTypeType>;
|
|
@@ -36,6 +36,7 @@ export * from './cache/transaction/TransactionItemHandler';
|
|
|
36
36
|
export * from './cache/transaction/TransactionCollectionHandler';
|
|
37
37
|
export * from './cache/transaction/TransactionEventHandler';
|
|
38
38
|
export * from './cache/transaction/TransactionValidator';
|
|
39
|
+
export * from './ChangesDeltaBase';
|
|
39
40
|
export * from './ChangesDelta';
|
|
40
41
|
export * from './InternalChangesDelta';
|
|
41
42
|
export * from './RequestBufferManager';
|
|
@@ -7,7 +7,7 @@ export declare abstract class CollectionResource<ItemTypeType extends ItemType =
|
|
|
7
7
|
entry: CollectionEntry<ItemTypeType>;
|
|
8
8
|
options: CollectionResourceOptions<ItemTypeType>;
|
|
9
9
|
transaction: TransactionCache;
|
|
10
|
-
items:
|
|
10
|
+
items: T[];
|
|
11
11
|
columns: ResponseColumnItemTypeMap;
|
|
12
12
|
protected itemIdMap: ItemResourceItemIdMap<T>;
|
|
13
13
|
private readonly onChange;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rentman/rm-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Rentman core functionalities",
|
|
5
5
|
"main": "./dist/rm-core.js",
|
|
6
|
-
"types": "./dist/
|
|
6
|
+
"types": "./dist/types/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"@types/moment": "^2.13.0",
|
|
14
14
|
"@types/q": "^1.5.0",
|
|
15
15
|
"clean-webpack-plugin": "^0.1.19",
|
|
16
|
-
"ts-loader": "^
|
|
17
|
-
"tslint": "
|
|
18
|
-
"typescript": "3.
|
|
19
|
-
"typescript-tslint-plugin": "^0.5.
|
|
16
|
+
"ts-loader": "^6.2.1",
|
|
17
|
+
"tslint": "5.19.0",
|
|
18
|
+
"typescript": "^3.7.2",
|
|
19
|
+
"typescript-tslint-plugin": "^0.5.5",
|
|
20
20
|
"uglifyjs-webpack-plugin": "^1.2.5",
|
|
21
|
-
"webpack": "
|
|
22
|
-
"webpack-cli": "
|
|
23
|
-
"webpack-merge": "^4.1.
|
|
21
|
+
"webpack": "4.41.2",
|
|
22
|
+
"webpack-cli": "3.3.6",
|
|
23
|
+
"webpack-merge": "^4.1.4"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|