@rentman/rm-core 1.5.6 → 1.5.7

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 (90) hide show
  1. package/changelog.md +413 -389
  2. package/dist/rm-core.js +7210 -7288
  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 -33
  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 -26
  12. package/dist/src/classes/CollectionHandler.d.ts +57 -57
  13. package/dist/src/classes/CollectionMatcher.d.ts +41 -30
  14. package/dist/src/classes/CollectionResourceService.d.ts +6 -5
  15. package/dist/src/classes/ColumnCache.d.ts +21 -21
  16. package/dist/src/classes/ColumnExpansion.d.ts +19 -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 +97 -83
  22. package/dist/src/classes/CreateRequest.d.ts +20 -20
  23. package/dist/src/classes/ItemAdministrator.d.ts +119 -70
  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 +67 -51
  30. package/dist/src/classes/LockService.d.ts +32 -23
  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 +17 -16
  34. package/dist/src/classes/QueryService.d.ts +8 -19
  35. package/dist/src/classes/RequestColumnExpansion.d.ts +14 -12
  36. package/dist/src/classes/SocketMessageHandler.d.ts +41 -41
  37. package/dist/src/classes/Util.d.ts +28 -27
  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 +21 -21
  47. package/dist/src/factories/CollectionMatcherFactory.d.ts +7 -7
  48. package/dist/src/factories/CollectionResourceFactory.d.ts +23 -13
  49. package/dist/src/factories/ColumnExpansionFactory.d.ts +8 -8
  50. package/dist/src/factories/ColumnInfoFactory.d.ts +6 -6
  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 +19 -19
  56. package/dist/src/factories/ItemResourceFactory.d.ts +20 -14
  57. package/dist/src/factories/LocalCacheFactory.d.ts +15 -15
  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 -5
  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/LocalCacheManagerInterface.d.ts +6 -6
  69. package/dist/src/interfaces/PromiseLibraryInterface.d.ts +25 -15
  70. package/dist/src/interfaces/SocketMessageInterface.d.ts +3 -3
  71. package/dist/src/interfaces/index.d.ts +6 -6
  72. package/dist/src/models/CollectionEditResource.d.ts +15 -15
  73. package/dist/src/models/CollectionEntry.d.ts +81 -67
  74. package/dist/src/models/CollectionEntryOptions.d.ts +12 -20
  75. package/dist/src/models/CollectionResource.d.ts +40 -40
  76. package/dist/src/models/CollectionResourceOptions.d.ts +23 -38
  77. package/dist/src/models/CollectionViewResource.d.ts +6 -6
  78. package/dist/src/models/EditResource.d.ts +18 -18
  79. package/dist/src/models/ItemEntry.d.ts +73 -71
  80. package/dist/src/models/ItemEntryOptions.d.ts +11 -18
  81. package/dist/src/models/ItemResource.d.ts +23 -23
  82. package/dist/src/models/ItemResourceOptions.d.ts +9 -13
  83. package/dist/src/models/Template.d.ts +11 -11
  84. package/dist/src/models/ViewResource.d.ts +4 -4
  85. package/dist/src/models/index.d.ts +13 -13
  86. package/dist/src/types/ItemTypesCollection.d.ts +227 -234
  87. package/dist/src/types/PromiseInterface.d.ts +2 -2
  88. package/dist/src/types/index.d.ts +2 -2
  89. package/package.json +35 -35
  90. 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,4 +1,4 @@
1
- import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
2
- export declare class ViewResource extends ItemResource {
3
- constructor(entry: ItemEntry, options: ItemResourceOptions, isNew?: boolean);
4
- }
1
+ import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
2
+ export declare class ViewResource extends ItemResource {
3
+ constructor(entry: ItemEntry, options: ItemResourceOptions, isNew?: boolean);
4
+ }
@@ -1,13 +1,13 @@
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';
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';
@@ -1,234 +1,227 @@
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 OptionsInterface = {
13
- [key: string]: any;
14
- };
15
- export declare type ItemOptionsInterface = ItemEntryOptionsInterface & ItemResourceOptionsInterface;
16
- export declare type CollectionOptionsInterface = CollectionEntryOptionsInterface & CollectionResourceOptionsInterface;
17
- export declare type CollectionDefinition = {
18
- itemType: ItemType;
19
- options: {
20
- entry: CollectionEntryOptions;
21
- resource: CollectionResourceOptions;
22
- };
23
- };
24
- export declare type LinkCollectionDefinition = {
25
- itemType: ItemType;
26
- linkType: ItemType;
27
- linkIdArray: ItemId[] | (() => ItemId[]);
28
- linkField: string;
29
- options: {
30
- entry: CollectionEntryOptions;
31
- resource: CollectionResourceOptions;
32
- };
33
- };
34
- export declare type OnChangeFunction = (itemResource: ItemResource, previous: FieldMap) => void;
35
- export declare const enum StateKeyType {
36
- New = "new",
37
- Duplicate = "duplicate"
38
- }
39
- export declare type StateKey = {
40
- type: StateKeyType;
41
- template?: string;
42
- itemId?: number;
43
- };
44
- export declare type OnSaveCallback = (localCache: LocalCache, conversionMap: ItemIdConversionMap) => any;
45
- export declare enum LocalCacheCallbackCondition {
46
- Always = "always",
47
- OnClose = "onClose",
48
- SkipOnClose = "skipOnClose"
49
- }
50
- export declare type LocalCacheCallbacks<T> = {
51
- always: {
52
- [key: string]: T;
53
- };
54
- onClose: {
55
- [key: string]: T;
56
- };
57
- skipOnClose: {
58
- [key: string]: T;
59
- };
60
- };
61
- export declare type SocketMessageType = 'event' | 'notification';
62
- export interface SocketMessage {
63
- header: {
64
- domain: string;
65
- account: string;
66
- sender: {
67
- displayname: string;
68
- itemType: 'Medewerker';
69
- itemId: ItemId;
70
- authorized: boolean;
71
- session: string;
72
- };
73
- messageId: {
74
- Id: string;
75
- sequence: number;
76
- batch: number;
77
- request: number;
78
- };
79
- sent: string;
80
- forceEvaluate: boolean;
81
- };
82
- body: any;
83
- messageType: SocketMessageType;
84
- }
85
- export interface FunctionChangesResolveSocketMessage extends SocketMessage {
86
- body: {
87
- itemType: 'FunctionChangesResolve';
88
- [key: string]: any;
89
- };
90
- }
91
- export declare type ItemResourceItemIdMap = {
92
- [itemId: number]: ItemResource;
93
- };
94
- export declare type ItemResourcesItemTypeMap = {
95
- [itemType: string]: ItemResource[];
96
- };
97
- export declare type ItemId = number;
98
- export declare type ItemType = string;
99
- export declare type ItemEntryMap = {
100
- [itemType: string]: {
101
- [itemId: number]: ItemEntry;
102
- };
103
- };
104
- export declare type LinkedItemEntryMap = {
105
- itemType: string;
106
- itemEntries: ItemEntry[];
107
- columnSet: ColumnSet;
108
- };
109
- export declare type EntryStatusMap<T> = {
110
- [entryStatus: string]: T[];
111
- };
112
- export declare type ItemEntryParentIdMap = {
113
- [parentId: number]: ItemEntry[];
114
- };
115
- export declare type ItemIdConversionMap = {
116
- [itemType: string]: {
117
- [itemId: number]: number;
118
- };
119
- };
120
- export declare type CreateRequestParameterMap = {
121
- [itemType: string]: {
122
- [itemId: number]: any;
123
- };
124
- };
125
- export declare type ItemError = {
126
- message: string;
127
- };
128
- export declare type QueryParams = any;
129
- export declare type QueryCallback = (queryParams: QueryParams) => QueryParams;
130
- export declare type CollectionEntryParentIdMap = {
131
- [parentId: number]: CollectionEntry;
132
- };
133
- export declare type CollectionResourceParentIdMap = {
134
- [parentId: number]: CollectionResource;
135
- };
136
- export declare type CollectionMatchResult = {
137
- fitting: CollectionEntry[];
138
- notfitting: CollectionEntry[];
139
- maybe: CollectionEntry[];
140
- };
141
- export interface ExtendedCollectionMatchResult extends CollectionMatchResult {
142
- collection: CollectionResource;
143
- }
144
- export interface GroupedExtendedCollectionMatchResult {
145
- [collectionId: number]: {
146
- [status: string]: ExtendedCollectionMatchResult;
147
- };
148
- }
149
- export declare type ResponseColumn = any;
150
- export declare type ResponseColumnMap = {
151
- [itemType: string]: {
152
- [columnId: string]: ResponseColumn;
153
- };
154
- };
155
- export declare type ColumnExpansionResult = {
156
- merged: ColumnSet;
157
- difference: ColumnSet;
158
- };
159
- export declare type ColumnSetExpansion = {
160
- request: {
161
- merged: ApiRequestColumns;
162
- difference: ApiRequestColumns;
163
- };
164
- response: ResponseColumnMap;
165
- };
166
- export declare type RootColumnMap = {
167
- [columnId: string]: {
168
- apiColumn: ResponseColumn;
169
- children: RootColumnMap;
170
- };
171
- };
172
- export declare type ApiResponse = ApiResponseProcessor;
173
- export declare type TemplateItemResourceMap = {
174
- main: ItemResource;
175
- linked: ItemResourcesItemTypeMap;
176
- };
177
- export declare type TemplateItemEntryMap = {
178
- main: ItemEntry;
179
- linked: LinkedItemEntryMap[];
180
- };
181
- export declare type ItemTypeMap = {
182
- [itemType: string]: any;
183
- };
184
- export declare type EntryStatus<T> = {
185
- entry: T;
186
- status: ENTRY_STATUS;
187
- };
188
- export declare type ApiQuery = any;
189
- export declare type ApiRequestItemValues = {
190
- values?: any;
191
- links?: {
192
- [itemType: string]: ItemId[];
193
- };
194
- };
195
- export declare type ApiRequestItemMap = {
196
- [itemType: string]: {
197
- [itemId: number]: ApiRequestItemValues;
198
- };
199
- };
200
- export declare type ApiRequestColumn = string | {
201
- [columnId: string]: ApiRequestColumn[];
202
- };
203
- export declare type ApiRequestColumns = ApiRequestColumn[] | true;
204
- export declare type ApiRequestColumnMap = {
205
- [itemType: string]: ApiRequestColumns;
206
- };
207
- export declare type ApiRequestLimit = {
208
- field: string;
209
- limit: number;
210
- offset?: number;
211
- order?: 'desc' | 'asc';
212
- };
213
- export declare type ApiRequestMoveItems = {
214
- [itemType: string]: ItemId[];
215
- };
216
- export declare type CreateRequestEntry = {
217
- request: {
218
- requestType: 'create';
219
- itemType?: ItemType;
220
- parentType?: ItemType;
221
- parentId?: {
222
- [itemId: string]: ItemId;
223
- };
224
- items: ApiRequestItemMap;
225
- columns: ApiRequestColumnMap;
226
- };
227
- columns: RequestColumnExpansion;
228
- items: {
229
- [itemType: string]: {
230
- [itemId: number]: ItemEntry;
231
- };
232
- };
233
- collections: CollectionMatcher;
234
- };
1
+ import { ApiResponseProcessor, CollectionMatcher, ColumnSet, LocalCache, RequestColumnExpansion } from '../classes';
2
+ import { ENTRY_STATUS } from '../constants';
3
+ import { CollectionEntry, CollectionEntryOptions, CollectionEntryOptionsInterface, CollectionResource, CollectionResourceOptions, CollectionResourceOptionsInterface, EditResource, ItemEntry, ItemEntryOptionsInterface, ItemResource, ItemResourceOptionsInterface, ViewResource } 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 ViewResource | EditResource = ViewResource> = {
89
+ [itemId: number]: T;
90
+ };
91
+ export declare type ItemResourcesItemTypeMap<T extends ViewResource | EditResource = ViewResource> = {
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 = {
133
+ [parentId: number]: CollectionResource;
134
+ };
135
+ export declare type CollectionMatchResult = {
136
+ fitting: CollectionEntry[];
137
+ notfitting: CollectionEntry[];
138
+ maybe: CollectionEntry[];
139
+ };
140
+ export interface ExtendedCollectionMatchResult extends CollectionMatchResult {
141
+ collection: CollectionResource;
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 ColumnSetExpansion = {
157
+ request: {
158
+ merged: ApiRequestColumns;
159
+ difference: ApiRequestColumns;
160
+ };
161
+ response: ResponseColumnMap;
162
+ };
163
+ export declare type RootColumnMap = {
164
+ [columnId: string]: {
165
+ apiColumn: ResponseColumn;
166
+ children: RootColumnMap;
167
+ };
168
+ };
169
+ export declare type ApiResponse = ApiResponseProcessor;
170
+ export declare type TemplateItemResourceMap = {
171
+ main: ItemResource;
172
+ linked: ItemResourcesItemTypeMap;
173
+ };
174
+ export declare type TemplateItemEntryMap = {
175
+ main: ItemEntry;
176
+ linked: LinkedItemEntryMap[];
177
+ };
178
+ export declare type ItemTypeMap = {
179
+ [itemType: string]: any;
180
+ };
181
+ export declare type EntryStatus<T> = {
182
+ entry: T;
183
+ status: ENTRY_STATUS;
184
+ };
185
+ export declare type ApiQuery = any;
186
+ export declare type ApiRequestItemValues = {
187
+ values?: any;
188
+ links?: {
189
+ [itemType: string]: ItemId[];
190
+ };
191
+ };
192
+ export declare type ApiRequestItemMap = {
193
+ [itemType: string]: {
194
+ [itemId: number]: ApiRequestItemValues;
195
+ };
196
+ };
197
+ export declare type ApiRequestColumn = string | {
198
+ [columnId: string]: ApiRequestColumn[];
199
+ };
200
+ export declare type ApiRequestColumns = ApiRequestColumn[] | true;
201
+ export declare type ApiRequestColumnMap = {
202
+ [itemType: string]: ApiRequestColumns;
203
+ };
204
+ export declare type ApiRequestLimit = {
205
+ field: string;
206
+ limit: number;
207
+ offset?: number;
208
+ order?: 'desc' | 'asc';
209
+ };
210
+ export declare type ApiRequestMoveItems = {
211
+ [itemType: string]: ItemId[];
212
+ };
213
+ export declare type CreateRequestEntry = {
214
+ request: {
215
+ requestType: 'create';
216
+ itemType?: ItemType;
217
+ parentType?: ItemType;
218
+ parentId?: {
219
+ [itemId: string]: ItemId;
220
+ };
221
+ items: ApiRequestItemMap;
222
+ columns: ApiRequestColumnMap;
223
+ };
224
+ columns: RequestColumnExpansion;
225
+ items: ItemEntryMap;
226
+ collections: CollectionMatcher;
227
+ };
@@ -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,35 +1,35 @@
1
- {
2
- "name": "@rentman/rm-core",
3
- "version": "1.5.6",
4
- "description": "Rentman core functionalities",
5
- "main": "./dist/rm-core.js",
6
- "types": "./dist/src/index.d.ts",
7
- "dependencies": {},
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/rentmanpublic/frontend-core"
11
- },
12
- "devDependencies": {
13
- "@types/moment": "^2.13.0",
14
- "@types/q": "^1.5.0",
15
- "clean-webpack-plugin": "^0.1.19",
16
- "ts-loader": "^4.4.1",
17
- "tslint": "^5.12.1",
18
- "typescript": "3.2.2",
19
- "uglifyjs-webpack-plugin": "^1.2.5",
20
- "webpack": "^4.16.3",
21
- "webpack-cli": "^3.0.6",
22
- "webpack-merge": "^4.1.3"
23
- },
24
- "files": [
25
- "dist"
26
- ],
27
- "scripts": {
28
- "prepublishOnly": "npm run bundle",
29
- "bundle-dev": "webpack --config webpack.dev.js",
30
- "bundle": "webpack --config webpack.prod.js",
31
- "type-check": "tsc --noEmit"
32
- },
33
- "author": "Martijn Welker <martijn@rentman.nl>",
34
- "license": "UNLICENSED"
35
- }
1
+ {
2
+ "name": "@rentman/rm-core",
3
+ "version": "1.5.7",
4
+ "description": "Rentman core functionalities",
5
+ "main": "./dist/rm-core.js",
6
+ "types": "./dist/src/index.d.ts",
7
+ "dependencies": {},
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/rentmanpublic/frontend-core"
11
+ },
12
+ "devDependencies": {
13
+ "@types/moment": "^2.13.0",
14
+ "@types/q": "^1.5.0",
15
+ "clean-webpack-plugin": "^0.1.19",
16
+ "ts-loader": "^4.4.1",
17
+ "tslint": "^5.12.1",
18
+ "typescript": "3.3.3",
19
+ "uglifyjs-webpack-plugin": "^1.2.5",
20
+ "webpack": "^4.16.3",
21
+ "webpack-cli": "^3.0.6",
22
+ "webpack-merge": "^4.1.3"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "prepublishOnly": "npm run bundle",
29
+ "bundle-dev": "webpack --config webpack.dev.js",
30
+ "bundle": "webpack --config webpack.prod.js",
31
+ "type-check": "tsc --noEmit"
32
+ },
33
+ "author": "Martijn Welker <martijn@rentman.nl>",
34
+ "license": "UNLICENSED"
35
+ }
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`