@rentman/rm-core 1.5.5 → 1.5.7-1

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.
Files changed (55) hide show
  1. package/changelog.md +33 -0
  2. package/dist/rm-core.js +219 -253
  3. package/dist/rm-core.min.js +1 -1
  4. package/dist/src/classes/ApiFormatter.d.ts +20 -21
  5. package/dist/src/classes/ApiResponseProcessor.d.ts +24 -16
  6. package/dist/src/classes/ChangesCompilation.d.ts +3 -3
  7. package/dist/src/classes/ChangesProcessor.d.ts +15 -15
  8. package/dist/src/classes/CollectionCache.d.ts +9 -9
  9. package/dist/src/classes/CollectionEntryService.d.ts +4 -7
  10. package/dist/src/classes/CollectionHandler.d.ts +8 -8
  11. package/dist/src/classes/CollectionMatcher.d.ts +24 -13
  12. package/dist/src/classes/CollectionResourceService.d.ts +2 -1
  13. package/dist/src/classes/ColumnCache.d.ts +4 -4
  14. package/dist/src/classes/ColumnExpansion.d.ts +5 -4
  15. package/dist/src/classes/ColumnSet.d.ts +7 -7
  16. package/dist/src/classes/ColumnUtil.d.ts +36 -22
  17. package/dist/src/classes/CreateRequest.d.ts +1 -1
  18. package/dist/src/classes/ItemAdministrator.d.ts +123 -45
  19. package/dist/src/classes/ItemCache.d.ts +8 -7
  20. package/dist/src/classes/ItemEntryService.d.ts +2 -2
  21. package/dist/src/classes/ItemHandler.d.ts +8 -8
  22. package/dist/src/classes/ItemRequestService.d.ts +2 -2
  23. package/dist/src/classes/KeyService.d.ts +1 -1
  24. package/dist/src/classes/LocalCache.d.ts +40 -16
  25. package/dist/src/classes/LockService.d.ts +22 -13
  26. package/dist/src/classes/ModuleChangesCompilation.d.ts +4 -4
  27. package/dist/src/classes/QueryMatcher.d.ts +5 -5
  28. package/dist/src/classes/QueryParser.d.ts +14 -13
  29. package/dist/src/classes/QueryService.d.ts +5 -16
  30. package/dist/src/classes/RequestColumnExpansion.d.ts +5 -3
  31. package/dist/src/classes/SocketMessageHandler.d.ts +10 -9
  32. package/dist/src/classes/Util.d.ts +6 -5
  33. package/dist/src/constants.d.ts +1 -1
  34. package/dist/src/factories/ChangesCompilationFactory.d.ts +2 -2
  35. package/dist/src/factories/CollectionResourceFactory.d.ts +12 -2
  36. package/dist/src/factories/ColumnInfoFactory.d.ts +1 -1
  37. package/dist/src/factories/ColumnSetFactory.d.ts +1 -1
  38. package/dist/src/factories/ItemEntryFactory.d.ts +1 -1
  39. package/dist/src/factories/ItemResourceFactory.d.ts +9 -3
  40. package/dist/src/factories/QueryParserFactory.d.ts +2 -1
  41. package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +1 -0
  42. package/dist/src/interfaces/PromiseLibraryInterface.d.ts +19 -9
  43. package/dist/src/models/CollectionEditResource.d.ts +8 -8
  44. package/dist/src/models/CollectionEntry.d.ts +37 -23
  45. package/dist/src/models/CollectionEntryOptions.d.ts +9 -17
  46. package/dist/src/models/CollectionResource.d.ts +20 -20
  47. package/dist/src/models/CollectionResourceOptions.d.ts +17 -32
  48. package/dist/src/models/CollectionViewResource.d.ts +2 -2
  49. package/dist/src/models/EditResource.d.ts +1 -1
  50. package/dist/src/models/ItemEntry.d.ts +9 -7
  51. package/dist/src/models/ItemEntryOptions.d.ts +8 -15
  52. package/dist/src/models/ItemResource.d.ts +1 -1
  53. package/dist/src/models/ItemResourceOptions.d.ts +6 -10
  54. package/dist/src/types/ItemTypesCollection.d.ts +27 -34
  55. package/package.json +2 -2
package/changelog.md CHANGED
@@ -1,6 +1,39 @@
1
1
  #Changelog
2
2
  Contains new features, breaking changes and their reasoning
3
3
 
4
+ ## 1.5.7-1
5
+ - Make ItemResource/CollectionResource base class abstract
6
+ - Add missing overload functions in some places
7
+ - Fix default comparator `QueryMatcher.parseSimpleQuery`
8
+ - Fix `ExtendedCollectionMatchResult` `collection` property type
9
+
10
+ ## 1.5.7
11
+ - Properly type Collections & ItemResources (and return values) in the whole core.
12
+ > The core will now properly return Collections & ItemResources based on the passed CollectionOptions.
13
+ > You can now also type the expected collection type
14
+
15
+ ```
16
+ // Expects a collection with editCollection and editItems both `true`
17
+ // Will properly return EditResources for all collection functions
18
+ const collection: CollectionEditResource<EditResource>;
19
+
20
+ // other variations are:
21
+ // CollectionViewResource<ViewResource>
22
+ // CollectionViewResource<EditResource>
23
+ // CollectionEditResource<ViewResource>
24
+
25
+ this.core.itemAdministrator.getCollection(
26
+ 'Notitie',
27
+ {
28
+ editCollection: true, // Will return a CollectionEditResource
29
+ editItems: true // Will return EditResources instead of ViewResources in `.items`
30
+ }
31
+ )
32
+ ```
33
+
34
+ ## 1.5.6
35
+ - Add `getAllLocalCaches` to `LocalCacheManagerInterface`, remove item entries from all local caches on socket delete.
36
+
4
37
  ## 1.5.5
5
38
  - Add 'order' column type handling to ApiFormatter functions
6
39