@rentman/rm-core 1.6.1 → 1.6.2

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 (93) hide show
  1. package/changelog.md +15 -0
  2. package/dist/rm-core.js +7345 -7343
  3. package/dist/rm-core.min.js +1 -1
  4. package/dist/src/classes/ApiFormatter.d.ts +39 -39
  5. package/dist/src/classes/ApiRequestService.d.ts +20 -20
  6. package/dist/src/classes/ApiResponseProcessor.d.ts +41 -41
  7. package/dist/src/classes/BatchStatus.d.ts +27 -27
  8. package/dist/src/classes/ChangesCompilation.d.ts +51 -51
  9. package/dist/src/classes/ChangesProcessor.d.ts +33 -33
  10. package/dist/src/classes/CollectionCache.d.ts +37 -37
  11. package/dist/src/classes/CollectionEntryService.d.ts +23 -23
  12. package/dist/src/classes/CollectionHandler.d.ts +57 -57
  13. package/dist/src/classes/CollectionMatcher.d.ts +41 -41
  14. package/dist/src/classes/CollectionResourceService.d.ts +6 -6
  15. package/dist/src/classes/ColumnCache.d.ts +21 -21
  16. package/dist/src/classes/ColumnExpansion.d.ts +18 -18
  17. package/dist/src/classes/ColumnHandler.d.ts +21 -21
  18. package/dist/src/classes/ColumnInfo.d.ts +14 -14
  19. package/dist/src/classes/ColumnSet.d.ts +46 -46
  20. package/dist/src/classes/ColumnSubsetCache.d.ts +8 -8
  21. package/dist/src/classes/ColumnUtil.d.ts +89 -89
  22. package/dist/src/classes/CreateRequest.d.ts +20 -20
  23. package/dist/src/classes/ItemAdministrator.d.ts +241 -241
  24. package/dist/src/classes/ItemCache.d.ts +23 -23
  25. package/dist/src/classes/ItemEntryService.d.ts +24 -24
  26. package/dist/src/classes/ItemHandler.d.ts +60 -60
  27. package/dist/src/classes/ItemRequestService.d.ts +23 -23
  28. package/dist/src/classes/KeyService.d.ts +16 -16
  29. package/dist/src/classes/LocalCache.d.ts +96 -96
  30. package/dist/src/classes/LockService.d.ts +32 -32
  31. package/dist/src/classes/ModuleChangesCompilation.d.ts +21 -21
  32. package/dist/src/classes/QueryMatcher.d.ts +14 -14
  33. package/dist/src/classes/QueryParser.d.ts +19 -19
  34. package/dist/src/classes/QueryService.d.ts +8 -8
  35. package/dist/src/classes/RequestColumnExpansion.d.ts +14 -14
  36. package/dist/src/classes/SocketMessageHandler.d.ts +41 -41
  37. package/dist/src/classes/Util.d.ts +28 -28
  38. package/dist/src/classes/index.d.ts +34 -34
  39. package/dist/src/constants.d.ts +18 -18
  40. package/dist/src/core.d.ts +48 -48
  41. package/dist/src/factories/ApiResponseProcessorFactory.d.ts +6 -6
  42. package/dist/src/factories/BatchStatusFactory.d.ts +8 -8
  43. package/dist/src/factories/ChangesCompilationFactory.d.ts +9 -9
  44. package/dist/src/factories/ChangesProcessorFactory.d.ts +18 -18
  45. package/dist/src/factories/CollectionCacheFactory.d.ts +7 -7
  46. package/dist/src/factories/CollectionEntryFactory.d.ts +22 -22
  47. package/dist/src/factories/CollectionMatcherFactory.d.ts +7 -7
  48. package/dist/src/factories/CollectionResourceFactory.d.ts +31 -31
  49. package/dist/src/factories/ColumnExpansionFactory.d.ts +8 -8
  50. package/dist/src/factories/ColumnInfoFactory.d.ts +7 -7
  51. package/dist/src/factories/ColumnSetFactory.d.ts +11 -11
  52. package/dist/src/factories/ColumnSubsetCacheFactory.d.ts +6 -6
  53. package/dist/src/factories/CreateRequestFactory.d.ts +11 -11
  54. package/dist/src/factories/ItemCacheFactory.d.ts +7 -7
  55. package/dist/src/factories/ItemEntryFactory.d.ts +20 -20
  56. package/dist/src/factories/ItemResourceFactory.d.ts +26 -26
  57. package/dist/src/factories/LocalCacheFactory.d.ts +17 -17
  58. package/dist/src/factories/ModuleChangesCompilationFactory.d.ts +5 -5
  59. package/dist/src/factories/QueryMatcherFactory.d.ts +7 -7
  60. package/dist/src/factories/QueryParserFactory.d.ts +6 -6
  61. package/dist/src/factories/RequestColumnExpansionFactory.d.ts +6 -6
  62. package/dist/src/factories/TemplateFactory.d.ts +10 -10
  63. package/dist/src/factories/index.d.ts +22 -22
  64. package/dist/src/index.d.ts +7 -7
  65. package/dist/src/interfaces/ApiRequestServiceInterface.d.ts +11 -11
  66. package/dist/src/interfaces/AuthInterface.d.ts +9 -9
  67. package/dist/src/interfaces/ErrorHandlerInterface.d.ts +5 -5
  68. package/dist/src/interfaces/ExceptionHandlerInterface.d.ts +3 -3
  69. package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +6 -6
  70. package/dist/src/interfaces/PromiseLibraryInterface.d.ts +25 -25
  71. package/dist/src/interfaces/SocketMessageInterface.d.ts +3 -3
  72. package/dist/src/interfaces/index.d.ts +7 -7
  73. package/dist/src/models/CollectionEditResource.d.ts +14 -14
  74. package/dist/src/models/CollectionEntry.d.ts +83 -83
  75. package/dist/src/models/CollectionEntryOptions.d.ts +12 -12
  76. package/dist/src/models/CollectionResource.d.ts +39 -39
  77. package/dist/src/models/CollectionResourceOptions.d.ts +24 -24
  78. package/dist/src/models/CollectionViewResource.d.ts +6 -6
  79. package/dist/src/models/EditResource.d.ts +18 -18
  80. package/dist/src/models/ItemEntry.d.ts +73 -73
  81. package/dist/src/models/ItemEntryOptions.d.ts +11 -11
  82. package/dist/src/models/ItemResource.d.ts +23 -23
  83. package/dist/src/models/ItemResourceOptions.d.ts +10 -10
  84. package/dist/src/models/LocalViewResource.d.ts +4 -4
  85. package/dist/src/models/RemoteViewResource.d.ts +4 -4
  86. package/dist/src/models/Template.d.ts +11 -11
  87. package/dist/src/models/ViewResource.d.ts +6 -6
  88. package/dist/src/models/index.d.ts +15 -15
  89. package/dist/src/types/ItemTypesCollection.d.ts +220 -220
  90. package/dist/src/types/PromiseInterface.d.ts +2 -2
  91. package/dist/src/types/index.d.ts +2 -2
  92. package/package.json +1 -1
  93. package/readme.md +15 -15
@@ -1,11 +1,11 @@
1
- import { ColumnSet } from '../classes';
2
- import { TemplateFactory } from '../factories';
3
- import { ApiResponse, FieldMap, ItemType, ResponseColumnMap } from '../types';
4
- export declare class Template {
5
- itemType: ItemType;
6
- response: ApiResponse;
7
- fields: FieldMap;
8
- responseColumns: ResponseColumnMap;
9
- columns: ColumnSet;
10
- constructor(factory: TemplateFactory, itemType: ItemType, response: ApiResponse, additionalColumns: ResponseColumnMap);
11
- }
1
+ import { ColumnSet } from '../classes';
2
+ import { TemplateFactory } from '../factories';
3
+ import { ApiResponse, FieldMap, ItemType, ResponseColumnMap } from '../types';
4
+ export declare class Template {
5
+ itemType: ItemType;
6
+ response: ApiResponse;
7
+ fields: FieldMap;
8
+ responseColumns: ResponseColumnMap;
9
+ columns: ColumnSet;
10
+ constructor(factory: TemplateFactory, itemType: ItemType, response: ApiResponse, additionalColumns: ResponseColumnMap);
11
+ }
@@ -1,6 +1,6 @@
1
- import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
2
- import { FieldMap } from '../types';
3
- export declare abstract class ViewResource extends ItemResource {
4
- fields: Readonly<FieldMap>;
5
- protected constructor(entry: ItemEntry, options: ItemResourceOptions, isNew?: boolean);
6
- }
1
+ import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
2
+ import { FieldMap } from '../types';
3
+ export declare abstract class ViewResource extends ItemResource {
4
+ fields: Readonly<FieldMap>;
5
+ protected constructor(entry: ItemEntry, options: ItemResourceOptions, isNew?: boolean);
6
+ }
@@ -1,15 +1,15 @@
1
- export * from './ItemEntryOptions';
2
- export * from './ItemResourceOptions';
3
- export * from './ItemEntry';
4
- export * from './ItemResource';
5
- export * from './ViewResource';
6
- export * from './EditResource';
7
- export * from './CollectionEntryOptions';
8
- export * from './CollectionResourceOptions';
9
- export * from './CollectionEntry';
10
- export * from './CollectionResource';
11
- export * from './CollectionViewResource';
12
- export * from './CollectionEditResource';
13
- export * from './Template';
14
- export * from './RemoteViewResource';
15
- export * from './LocalViewResource';
1
+ export * from './ItemEntryOptions';
2
+ export * from './ItemResourceOptions';
3
+ export * from './ItemEntry';
4
+ export * from './ItemResource';
5
+ export * from './ViewResource';
6
+ export * from './EditResource';
7
+ export * from './CollectionEntryOptions';
8
+ export * from './CollectionResourceOptions';
9
+ export * from './CollectionEntry';
10
+ export * from './CollectionResource';
11
+ export * from './CollectionViewResource';
12
+ export * from './CollectionEditResource';
13
+ export * from './Template';
14
+ export * from './RemoteViewResource';
15
+ export * from './LocalViewResource';
@@ -1,220 +1,220 @@
1
- import { ApiResponseProcessor, CollectionMatcher, ColumnSet, LocalCache, RequestColumnExpansion } from '../classes';
2
- import { ENTRY_STATUS } from '../constants';
3
- import { CollectionEntry, CollectionEntryOptions, CollectionEntryOptionsInterface, CollectionResource, CollectionResourceOptions, CollectionResourceOptionsInterface, ItemEntry, ItemEntryOptionsInterface, ItemResource, ItemResourceOptionsInterface } from '../models';
4
- export declare type EntryParent = {
5
- itemType: string;
6
- itemId: number;
7
- };
8
- export declare type EntryParentNull = EntryParent | null;
9
- export declare type FieldMap = {
10
- [key: string]: any;
11
- };
12
- export declare type ItemOptionsInterface = ItemEntryOptionsInterface & ItemResourceOptionsInterface;
13
- export declare type CollectionOptionsInterface = CollectionEntryOptionsInterface & CollectionResourceOptionsInterface;
14
- export declare type CollectionDefinition = {
15
- itemType: ItemType;
16
- options: {
17
- entry: CollectionEntryOptions;
18
- resource: CollectionResourceOptions;
19
- };
20
- };
21
- export declare type LinkCollectionDefinition = {
22
- itemType: ItemType;
23
- linkType: ItemType;
24
- linkIdArray: ItemId[] | (() => ItemId[]);
25
- linkField: string;
26
- options: {
27
- entry: CollectionEntryOptions;
28
- resource: CollectionResourceOptions;
29
- };
30
- };
31
- export declare type OnChangeFunction = (itemResource: ItemResource, previous?: FieldMap) => void;
32
- export declare const enum StateKeyType {
33
- New = "new",
34
- Duplicate = "duplicate"
35
- }
36
- export declare type StateKey = {
37
- type: StateKeyType;
38
- template?: string;
39
- itemId?: number;
40
- };
41
- export declare type OnSaveCallback = (localCache: LocalCache, conversionMap: ItemIdConversionMap) => any;
42
- export declare enum LocalCacheCallbackCondition {
43
- Always = "always",
44
- OnClose = "onClose",
45
- SkipOnClose = "skipOnClose"
46
- }
47
- export declare type LocalCacheCallbacks<T> = {
48
- always: {
49
- [key: string]: T;
50
- };
51
- onClose: {
52
- [key: string]: T;
53
- };
54
- skipOnClose: {
55
- [key: string]: T;
56
- };
57
- };
58
- export declare type SocketMessageType = 'event' | 'notification';
59
- export interface SocketMessage {
60
- header: {
61
- domain: string;
62
- account: string;
63
- sender: {
64
- displayname: string;
65
- itemType: 'Medewerker';
66
- itemId: ItemId;
67
- authorized: boolean;
68
- session: string;
69
- };
70
- messageId: {
71
- Id: string;
72
- sequence: number;
73
- batch: number;
74
- request: number;
75
- };
76
- sent: string;
77
- forceEvaluate: boolean;
78
- };
79
- body: any;
80
- messageType: SocketMessageType;
81
- }
82
- export interface FunctionChangesResolveSocketMessage extends SocketMessage {
83
- body: {
84
- itemType: 'FunctionChangesResolve';
85
- [key: string]: any;
86
- };
87
- }
88
- export declare type ItemResourceItemIdMap<T extends ItemResource = ItemResource> = {
89
- [itemId: number]: T;
90
- };
91
- export declare type ItemResourcesItemTypeMap<T extends ItemResource = ItemResource> = {
92
- [itemType: string]: T[];
93
- };
94
- export declare type ItemId = number;
95
- export declare type ItemType = string;
96
- export declare type ItemMap<T> = {
97
- [itemType: string]: {
98
- [itemId: string]: T;
99
- };
100
- };
101
- export declare type ItemEntryMap = ItemMap<ItemEntry>;
102
- export declare type LinkedItemEntryMap = {
103
- itemType: string;
104
- itemEntries: ItemEntry[];
105
- columnSet: ColumnSet;
106
- };
107
- export declare type EntryStatusMap<T> = {
108
- [entryStatus: string]: T[];
109
- };
110
- export declare type ItemEntryParentIdMap = {
111
- [parentId: number]: ItemEntry[];
112
- };
113
- export declare type ConversionMap = {
114
- [itemId: number]: number;
115
- };
116
- export declare type ItemIdConversionMap = {
117
- [itemType: string]: ConversionMap;
118
- };
119
- export declare type CreateRequestParameterMap = ItemMap<any>;
120
- export declare type ItemError = {
121
- message: string;
122
- };
123
- export declare type QueryParams = any;
124
- export declare type CollectionQuery = {
125
- object: object;
126
- string: string;
127
- };
128
- export declare type QueryCallback = (queryParams: QueryParams) => QueryParams;
129
- export declare type CollectionEntryParentIdMap = {
130
- [parentId: number]: CollectionEntry;
131
- };
132
- export declare type CollectionResourceParentIdMap<T extends CollectionResource<ItemResource> = CollectionResource<ItemResource>> = {
133
- [parentId: number]: T;
134
- };
135
- export declare type CollectionMatchResult = {
136
- fitting: CollectionEntry[];
137
- notfitting: CollectionEntry[];
138
- maybe: CollectionEntry[];
139
- };
140
- export interface ExtendedCollectionMatchResult extends CollectionMatchResult {
141
- collection: CollectionEntry;
142
- }
143
- export interface GroupedExtendedCollectionMatchResult {
144
- [collectionId: number]: ExtendedCollectionMatchResult;
145
- }
146
- export declare type ResponseColumn = any;
147
- export declare type ResponseColumnMap = {
148
- [itemType: string]: {
149
- [columnId: string]: ResponseColumn;
150
- };
151
- };
152
- export declare type ColumnExpansionResult = {
153
- merged: ColumnSet;
154
- difference: ColumnSet;
155
- };
156
- export declare type RootColumnMap = {
157
- [columnId: string]: {
158
- apiColumn: ResponseColumn;
159
- children: RootColumnMap;
160
- };
161
- };
162
- export declare type ApiResponse = ApiResponseProcessor;
163
- export declare type TemplateItemResourceMap<T extends ItemResource> = {
164
- main: T;
165
- linked: ItemResourcesItemTypeMap;
166
- };
167
- export declare type TemplateItemEntryMap = {
168
- main: ItemEntry;
169
- linked: LinkedItemEntryMap[];
170
- };
171
- export declare type ItemTypeMap = {
172
- [itemType: string]: any;
173
- };
174
- export declare type EntryStatus<T> = {
175
- entry: T;
176
- status: ENTRY_STATUS;
177
- };
178
- export declare type ApiQuery = any;
179
- export declare type ApiRequestItemValues = {
180
- values?: any;
181
- links?: {
182
- [itemType: string]: ItemId[];
183
- };
184
- };
185
- export declare type ApiRequestItemMap = {
186
- [itemType: string]: {
187
- [itemId: number]: ApiRequestItemValues;
188
- };
189
- };
190
- export declare type ApiRequestColumn = string | {
191
- [columnId: string]: ApiRequestColumn[];
192
- };
193
- export declare type ApiRequestColumns = ApiRequestColumn[] | true;
194
- export declare type ApiRequestColumnMap = {
195
- [itemType: string]: ApiRequestColumns;
196
- };
197
- export declare type ApiRequestLimit = {
198
- field: string;
199
- limit: number;
200
- offset?: number;
201
- order?: 'desc' | 'asc';
202
- };
203
- export declare type ApiRequestMoveItems = {
204
- [itemType: string]: ItemId[];
205
- };
206
- export declare type CreateRequestEntry = {
207
- request: {
208
- requestType: 'create';
209
- itemType?: ItemType;
210
- parentType?: ItemType;
211
- parentId?: {
212
- [itemId: string]: ItemId;
213
- };
214
- items: ApiRequestItemMap;
215
- columns: ApiRequestColumnMap;
216
- };
217
- columns: RequestColumnExpansion;
218
- items: ItemEntryMap;
219
- collections: CollectionMatcher;
220
- };
1
+ import { ApiResponseProcessor, CollectionMatcher, ColumnSet, LocalCache, RequestColumnExpansion } from '../classes';
2
+ import { ENTRY_STATUS } from '../constants';
3
+ import { CollectionEntry, CollectionEntryOptions, CollectionEntryOptionsInterface, CollectionResource, CollectionResourceOptions, CollectionResourceOptionsInterface, ItemEntry, ItemEntryOptionsInterface, ItemResource, ItemResourceOptionsInterface } from '../models';
4
+ export declare type EntryParent = {
5
+ itemType: string;
6
+ itemId: number;
7
+ };
8
+ export declare type EntryParentNull = EntryParent | null;
9
+ export declare type FieldMap = {
10
+ [key: string]: any;
11
+ };
12
+ export declare type ItemOptionsInterface = ItemEntryOptionsInterface & ItemResourceOptionsInterface;
13
+ export declare type CollectionOptionsInterface = CollectionEntryOptionsInterface & CollectionResourceOptionsInterface;
14
+ export declare type CollectionDefinition = {
15
+ itemType: ItemType;
16
+ options: {
17
+ entry: CollectionEntryOptions;
18
+ resource: CollectionResourceOptions;
19
+ };
20
+ };
21
+ export declare type LinkCollectionDefinition = {
22
+ itemType: ItemType;
23
+ linkType: ItemType;
24
+ linkIdArray: ItemId[] | (() => ItemId[]);
25
+ linkField: string;
26
+ options: {
27
+ entry: CollectionEntryOptions;
28
+ resource: CollectionResourceOptions;
29
+ };
30
+ };
31
+ export declare type OnChangeFunction = (itemResource: ItemResource, previous?: FieldMap) => void;
32
+ export declare const enum StateKeyType {
33
+ New = "new",
34
+ Duplicate = "duplicate"
35
+ }
36
+ export declare type StateKey = {
37
+ type: StateKeyType;
38
+ template?: string;
39
+ itemId?: number;
40
+ };
41
+ export declare type OnSaveCallback = (localCache: LocalCache, conversionMap: ItemIdConversionMap) => any;
42
+ export declare enum LocalCacheCallbackCondition {
43
+ Always = "always",
44
+ OnClose = "onClose",
45
+ SkipOnClose = "skipOnClose"
46
+ }
47
+ export declare type LocalCacheCallbacks<T> = {
48
+ always: {
49
+ [key: string]: T;
50
+ };
51
+ onClose: {
52
+ [key: string]: T;
53
+ };
54
+ skipOnClose: {
55
+ [key: string]: T;
56
+ };
57
+ };
58
+ export declare type SocketMessageType = 'event' | 'notification';
59
+ export interface SocketMessage {
60
+ header: {
61
+ domain: string;
62
+ account: string;
63
+ sender: {
64
+ displayname: string;
65
+ itemType: 'Medewerker';
66
+ itemId: ItemId;
67
+ authorized: boolean;
68
+ session: string;
69
+ };
70
+ messageId: {
71
+ Id: string;
72
+ sequence: number;
73
+ batch: number;
74
+ request: number;
75
+ };
76
+ sent: string;
77
+ forceEvaluate: boolean;
78
+ };
79
+ body: any;
80
+ messageType: SocketMessageType;
81
+ }
82
+ export interface FunctionChangesResolveSocketMessage extends SocketMessage {
83
+ body: {
84
+ itemType: 'FunctionChangesResolve';
85
+ [key: string]: any;
86
+ };
87
+ }
88
+ export declare type ItemResourceItemIdMap<T extends ItemResource = ItemResource> = {
89
+ [itemId: number]: T;
90
+ };
91
+ export declare type ItemResourcesItemTypeMap<T extends ItemResource = ItemResource> = {
92
+ [itemType: string]: T[];
93
+ };
94
+ export declare type ItemId = number;
95
+ export declare type ItemType = string;
96
+ export declare type ItemMap<T> = {
97
+ [itemType: string]: {
98
+ [itemId: string]: T;
99
+ };
100
+ };
101
+ export declare type ItemEntryMap = ItemMap<ItemEntry>;
102
+ export declare type LinkedItemEntryMap = {
103
+ itemType: string;
104
+ itemEntries: ItemEntry[];
105
+ columnSet: ColumnSet;
106
+ };
107
+ export declare type EntryStatusMap<T> = {
108
+ [entryStatus: string]: T[];
109
+ };
110
+ export declare type ItemEntryParentIdMap = {
111
+ [parentId: number]: ItemEntry[];
112
+ };
113
+ export declare type ConversionMap = {
114
+ [itemId: number]: number;
115
+ };
116
+ export declare type ItemIdConversionMap = {
117
+ [itemType: string]: ConversionMap;
118
+ };
119
+ export declare type CreateRequestParameterMap = ItemMap<any>;
120
+ export declare type ItemError = {
121
+ message: string;
122
+ };
123
+ export declare type QueryParams = any;
124
+ export declare type CollectionQuery = {
125
+ object: object;
126
+ string: string;
127
+ };
128
+ export declare type QueryCallback = (queryParams: QueryParams) => QueryParams;
129
+ export declare type CollectionEntryParentIdMap = {
130
+ [parentId: number]: CollectionEntry;
131
+ };
132
+ export declare type CollectionResourceParentIdMap<T extends CollectionResource<ItemResource> = CollectionResource<ItemResource>> = {
133
+ [parentId: number]: T;
134
+ };
135
+ export declare type CollectionMatchResult = {
136
+ fitting: CollectionEntry[];
137
+ notfitting: CollectionEntry[];
138
+ maybe: CollectionEntry[];
139
+ };
140
+ export interface ExtendedCollectionMatchResult extends CollectionMatchResult {
141
+ collection: CollectionEntry;
142
+ }
143
+ export interface GroupedExtendedCollectionMatchResult {
144
+ [collectionId: number]: ExtendedCollectionMatchResult;
145
+ }
146
+ export declare type ResponseColumn = any;
147
+ export declare type ResponseColumnMap = {
148
+ [itemType: string]: {
149
+ [columnId: string]: ResponseColumn;
150
+ };
151
+ };
152
+ export declare type ColumnExpansionResult = {
153
+ merged: ColumnSet;
154
+ difference: ColumnSet;
155
+ };
156
+ export declare type RootColumnMap = {
157
+ [columnId: string]: {
158
+ apiColumn: ResponseColumn;
159
+ children: RootColumnMap;
160
+ };
161
+ };
162
+ export declare type ApiResponse = ApiResponseProcessor;
163
+ export declare type TemplateItemResourceMap<T extends ItemResource> = {
164
+ main: T;
165
+ linked: ItemResourcesItemTypeMap;
166
+ };
167
+ export declare type TemplateItemEntryMap = {
168
+ main: ItemEntry;
169
+ linked: LinkedItemEntryMap[];
170
+ };
171
+ export declare type ItemTypeMap = {
172
+ [itemType: string]: any;
173
+ };
174
+ export declare type EntryStatus<T> = {
175
+ entry: T;
176
+ status: ENTRY_STATUS;
177
+ };
178
+ export declare type ApiQuery = any;
179
+ export declare type ApiRequestItemValues = {
180
+ values?: any;
181
+ links?: {
182
+ [itemType: string]: ItemId[];
183
+ };
184
+ };
185
+ export declare type ApiRequestItemMap = {
186
+ [itemType: string]: {
187
+ [itemId: number]: ApiRequestItemValues;
188
+ };
189
+ };
190
+ export declare type ApiRequestColumn = string | {
191
+ [columnId: string]: ApiRequestColumn[];
192
+ };
193
+ export declare type ApiRequestColumns = ApiRequestColumn[] | true;
194
+ export declare type ApiRequestColumnMap = {
195
+ [itemType: string]: ApiRequestColumns;
196
+ };
197
+ export declare type ApiRequestLimit = {
198
+ field: string;
199
+ limit: number;
200
+ offset?: number;
201
+ order?: 'desc' | 'asc';
202
+ };
203
+ export declare type ApiRequestMoveItems = {
204
+ [itemType: string]: ItemId[];
205
+ };
206
+ export declare type CreateRequestEntry = {
207
+ request: {
208
+ requestType: 'create';
209
+ itemType?: ItemType;
210
+ parentType?: ItemType;
211
+ parentId?: {
212
+ [itemId: string]: ItemId;
213
+ };
214
+ items: ApiRequestItemMap;
215
+ columns: ApiRequestColumnMap;
216
+ };
217
+ columns: RequestColumnExpansion;
218
+ items: ItemEntryMap;
219
+ collections: CollectionMatcher;
220
+ };
@@ -1,2 +1,2 @@
1
- export interface PromiseInterface<T> extends Promise<T> {
2
- }
1
+ export interface PromiseInterface<T> extends Promise<T> {
2
+ }
@@ -1,2 +1,2 @@
1
- export * from './ItemTypesCollection';
2
- export * from './PromiseInterface';
1
+ export * from './ItemTypesCollection';
2
+ export * from './PromiseInterface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/src/index.d.ts",
package/readme.md CHANGED
@@ -1,16 +1,16 @@
1
- # Running a local test version
2
- 1. Make changes
3
- 2. run `npm run bundle-dev`
4
- 3. copy `dist` folder to
5
- - Frontend: `<project>/bower_components/rentman-rm-core/`
6
- - App: `<project>/node_modules/@rentman/rm-core/`
7
-
8
- # Publishing your local version
9
-
10
- (You have to be logged in as rentman-user on npm, run `npm whoami` to see who you are logged in as)
11
-
12
- 1. Make changes
13
- 2. Report changes in changelog
14
- 3. Update version in package.json and main.ts
15
- 4. Commit, tag and push changes
1
+ # Running a local test version
2
+ 1. Make changes
3
+ 2. run `npm run bundle-dev`
4
+ 3. copy `dist` folder to
5
+ - Frontend: `<project>/bower_components/rentman-rm-core/`
6
+ - App: `<project>/node_modules/@rentman/rm-core/`
7
+
8
+ # Publishing your local version
9
+
10
+ (You have to be logged in as rentman-user on npm, run `npm whoami` to see who you are logged in as)
11
+
12
+ 1. Make changes
13
+ 2. Report changes in changelog
14
+ 3. Update version in package.json and main.ts
15
+ 4. Commit, tag and push changes
16
16
  5. run `npm publish`