@mapcreator/api 2.8.0 → 3.0.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/dist/ImageHandler.d.ts +56 -0
- package/dist/Mapcreator.d.ts +338 -0
- package/dist/PaginatedResourceListing.d.ts +156 -0
- package/dist/RequestParameters.d.ts +241 -0
- package/dist/ResourceLister.d.ts +155 -0
- package/dist/bundle.browser.js +1264 -1253
- package/dist/bundle.browser.min.js +1 -1
- package/dist/bundle.browser.min.js.LICENSE.txt +2 -2
- package/dist/bundle.js +1263 -1252
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.LICENSE.txt +1 -1
- package/dist/enums/DeletedState.d.ts +16 -0
- package/dist/enums/Enum.d.ts +40 -0
- package/dist/enums/JobShareVisibility.d.ts +15 -0
- package/dist/enums/ResultStatus.d.ts +17 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/errors/AbstractError.d.ts +26 -0
- package/dist/errors/ApiError.d.ts +65 -0
- package/dist/errors/GeoError.d.ts +6 -0
- package/dist/errors/NodeError.d.ts +6 -0
- package/dist/errors/OAuthError.d.ts +17 -0
- package/dist/errors/StaticClassError.d.ts +7 -0
- package/dist/errors/ValidationError.d.ts +125 -0
- package/dist/errors/index.d.ts +8 -0
- package/dist/index.d.ts +27 -0
- package/dist/oauth/DummyFlow.d.ts +19 -0
- package/dist/oauth/ImplicitFlow.d.ts +68 -0
- package/dist/oauth/ImplicitFlowPopup.d.ts +25 -0
- package/dist/oauth/OAuth.d.ts +50 -0
- package/dist/oauth/OAuthToken.d.ts +67 -0
- package/dist/oauth/PasswordFlow.d.ts +56 -0
- package/dist/oauth/StateContainer.d.ts +36 -0
- package/dist/proxy/GeoResourceProxy.d.ts +69 -0
- package/dist/proxy/OrganisationProxy.d.ts +62 -0
- package/dist/proxy/OwnedResourceProxy.d.ts +60 -0
- package/dist/proxy/ResourceProxy.d.ts +32 -0
- package/dist/proxy/SimpleResourceProxy.d.ts +76 -0
- package/dist/proxy/index.d.ts +6 -0
- package/dist/resources/Choropleth.d.ts +20 -0
- package/dist/resources/Color.d.ts +9 -0
- package/dist/resources/Contract.d.ts +7 -0
- package/dist/resources/Dimension.d.ts +7 -0
- package/dist/resources/DimensionSet.d.ts +11 -0
- package/dist/resources/Domain.d.ts +7 -0
- package/dist/resources/Faq.d.ts +7 -0
- package/dist/resources/Feature.d.ts +9 -0
- package/dist/resources/Font.d.ts +4 -0
- package/dist/resources/FontFamily.d.ts +11 -0
- package/dist/resources/Highlight.d.ts +4 -0
- package/dist/resources/InsetMap.d.ts +10 -0
- package/dist/resources/Job.d.ts +56 -0
- package/dist/resources/JobResult.d.ts +76 -0
- package/dist/resources/JobRevision.d.ts +64 -0
- package/dist/resources/JobShare.d.ts +15 -0
- package/dist/resources/JobType.d.ts +9 -0
- package/dist/resources/Language.d.ts +4 -0
- package/dist/resources/Layer.d.ts +10 -0
- package/dist/resources/LayerFaq.d.ts +8 -0
- package/dist/resources/LayerGroup.d.ts +14 -0
- package/dist/resources/Mapstyle.d.ts +8 -0
- package/dist/resources/MapstyleSet.d.ts +13 -0
- package/dist/resources/MapstyleSetColor.d.ts +8 -0
- package/dist/resources/Message.d.ts +7 -0
- package/dist/resources/MessageVariant.d.ts +4 -0
- package/dist/resources/Notification.d.ts +4 -0
- package/dist/resources/Organisation.d.ts +97 -0
- package/dist/resources/Permission.d.ts +4 -0
- package/dist/resources/ProductTour.d.ts +10 -0
- package/dist/resources/ProductTourStep.d.ts +7 -0
- package/dist/resources/Role.d.ts +14 -0
- package/dist/resources/Svg.d.ts +4 -0
- package/dist/resources/SvgSet.d.ts +11 -0
- package/dist/resources/Tag.d.ts +9 -0
- package/dist/resources/TagType.d.ts +13 -0
- package/dist/resources/User.d.ts +119 -0
- package/dist/resources/VectorChoropleth.d.ts +4 -0
- package/dist/resources/VectorHighlight.d.ts +4 -0
- package/dist/resources/base/CrudBase.d.ts +65 -0
- package/dist/resources/base/CrudBase.d.ts.map +1 -0
- package/dist/resources/base/CrudSetBase.d.ts +27 -0
- package/dist/resources/base/CrudSetBase.d.ts.map +1 -0
- package/dist/resources/base/CrudSetItemBase.d.ts +19 -0
- package/dist/resources/base/CrudSetItemBase.d.ts.map +1 -0
- package/dist/resources/base/DownloadedResource.d.ts +72 -0
- package/dist/resources/base/DownloadedResource.d.ts.map +1 -0
- package/dist/resources/base/ResourceBase.d.ts +162 -0
- package/dist/resources/base/ResourceBase.d.ts.map +1 -0
- package/dist/resources/index.d.ts +45 -0
- package/dist/storage/CookiesDriver.d.ts +37 -0
- package/dist/storage/DataStoreContract.d.ts +46 -0
- package/dist/storage/DummyDriver.d.ts +15 -0
- package/dist/storage/FileDriver.d.ts +54 -0
- package/dist/storage/LocalStorageDriver.d.ts +13 -0
- package/dist/storage/StorageManager.d.ts +46 -0
- package/dist/traits/HandlesImages.d.ts +15 -0
- package/dist/traits/Injectable.d.ts +60 -0
- package/dist/traits/OwnableResource.d.ts +18 -0
- package/dist/traits/Trait.d.ts +12 -0
- package/dist/utils/Logger.d.ts +55 -0
- package/dist/utils/Singleton.d.ts +9 -0
- package/dist/utils/StaticClass.d.ts +7 -0
- package/dist/utils/Unobservable.d.ts +13 -0
- package/dist/utils/base64.d.ts +12 -0
- package/dist/utils/geo.d.ts +74 -0
- package/dist/utils/hash.d.ts +15 -0
- package/dist/utils/helpers.d.ts +47 -0
- package/dist/utils/node.d.ts +15 -0
- package/dist/utils/reflection.d.ts +43 -0
- package/dist/utils/requests.d.ts +24 -0
- package/dist/utils/uuid.d.ts +19 -0
- package/package.json +4 -1
- package/src/Mapcreator.js +53 -33
- package/src/enums/index.js +1 -1
- package/src/errors/index.js +6 -6
- package/src/index.js +14 -14
- package/src/proxy/index.js +5 -5
- package/src/resources/LayerFaq.js +47 -0
- package/src/resources/LayerGroup.js +1 -1
- package/src/resources/index.js +36 -35
- package/dist/bundle.browser.js.map +0 -1
- package/dist/bundle.browser.min.js.map +0 -1
- package/dist/bundle.js.map +0 -1
- package/dist/bundle.min.js.map +0 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used for keeping track of the request parameters
|
|
3
|
+
*
|
|
4
|
+
* @fires RequestParameters#change
|
|
5
|
+
* @fires RequestParameters#change:page
|
|
6
|
+
* @fires RequestParameters#change:perPage
|
|
7
|
+
* @fires RequestParameters#change:search
|
|
8
|
+
* @fires RequestParameters#change:sort
|
|
9
|
+
* @fires RequestParameters#change:deleted
|
|
10
|
+
* @fires RequestParameters#change:extra
|
|
11
|
+
*/
|
|
12
|
+
export default class RequestParameters extends EventEmitter {
|
|
13
|
+
/**
|
|
14
|
+
* Default page number
|
|
15
|
+
* @param {Number} value - Page number
|
|
16
|
+
*/
|
|
17
|
+
static set page(arg: number);
|
|
18
|
+
/**
|
|
19
|
+
* Default page number
|
|
20
|
+
* @returns {Number} - Page number
|
|
21
|
+
*/
|
|
22
|
+
static get page(): number;
|
|
23
|
+
/**
|
|
24
|
+
* Default per page
|
|
25
|
+
* @param {Number} value - Per page
|
|
26
|
+
*/
|
|
27
|
+
static set perPage(arg: number);
|
|
28
|
+
/**
|
|
29
|
+
* Default per page
|
|
30
|
+
* @returns {Number} - Per page
|
|
31
|
+
*/
|
|
32
|
+
static get perPage(): number;
|
|
33
|
+
/**
|
|
34
|
+
* Default pagination offset
|
|
35
|
+
* @param {Number} value - Offset
|
|
36
|
+
*/
|
|
37
|
+
static set offset(arg: number);
|
|
38
|
+
/**
|
|
39
|
+
* Default pagination offset
|
|
40
|
+
* @returns {Number} - Offset
|
|
41
|
+
*/
|
|
42
|
+
static get offset(): number;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the maximum allowed value for perPage
|
|
45
|
+
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
46
|
+
* @param {Number} value - Maximum amount of resources per page
|
|
47
|
+
*/
|
|
48
|
+
static set maxPerPage(arg: number);
|
|
49
|
+
/**
|
|
50
|
+
* Gets the maximum allowed value for perPage
|
|
51
|
+
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
52
|
+
* @returns {Number} - Maximum amount of resources per page
|
|
53
|
+
*/
|
|
54
|
+
static get maxPerPage(): number;
|
|
55
|
+
/**
|
|
56
|
+
* Default search query
|
|
57
|
+
* @param {Object<String, String|Array<String>>} value - Search query
|
|
58
|
+
*/
|
|
59
|
+
static set search(arg: any);
|
|
60
|
+
/**
|
|
61
|
+
* Default search query
|
|
62
|
+
* @returns {Object<String, String|Array<String>>} - Search query
|
|
63
|
+
*/
|
|
64
|
+
static get search(): any;
|
|
65
|
+
/**
|
|
66
|
+
* Default sort query
|
|
67
|
+
* @param {Array<String>} value - Sort query
|
|
68
|
+
*/
|
|
69
|
+
static set sort(arg: string[]);
|
|
70
|
+
/**
|
|
71
|
+
* Default sort query
|
|
72
|
+
* @returns {Array<String>} - Sort query
|
|
73
|
+
*/
|
|
74
|
+
static get sort(): string[];
|
|
75
|
+
/**
|
|
76
|
+
* Default deleted items filter state
|
|
77
|
+
* @param {String} value - Deleted items filter state
|
|
78
|
+
*/
|
|
79
|
+
static set deleted(arg: string);
|
|
80
|
+
/**
|
|
81
|
+
* Default deleted items filter state
|
|
82
|
+
* @returns {String|undefined} - Deleted items filter state
|
|
83
|
+
*/
|
|
84
|
+
static get deleted(): string;
|
|
85
|
+
/**
|
|
86
|
+
* Default extra request parameters
|
|
87
|
+
* @param {Object} value - Extra request parameters
|
|
88
|
+
*/
|
|
89
|
+
static set extra(arg: any);
|
|
90
|
+
/**
|
|
91
|
+
* Default extra request parameters
|
|
92
|
+
* @returns {Object} - Extra request parameters
|
|
93
|
+
*/
|
|
94
|
+
static get extra(): any;
|
|
95
|
+
/**
|
|
96
|
+
* Validators should work the same as laravel's ::validate method. This means
|
|
97
|
+
* this means that they will throw a TypeError or return a normalized result.
|
|
98
|
+
*/
|
|
99
|
+
static _validatePage(value: any): number;
|
|
100
|
+
static _validatePerPage(value: any): any;
|
|
101
|
+
static _validateOffset(value: any): number;
|
|
102
|
+
static _validateMaxPerPage(value: any): number;
|
|
103
|
+
static _validateSearch(value: any): any;
|
|
104
|
+
static _validateSort(value: any): any;
|
|
105
|
+
static _validateDeleted(value: any): any;
|
|
106
|
+
static _validateExtra(value: any): any;
|
|
107
|
+
/**
|
|
108
|
+
* Different parameters
|
|
109
|
+
* @returns {Array<String>} - keys
|
|
110
|
+
*/
|
|
111
|
+
static keys(): Array<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Resets all parameters back to default
|
|
114
|
+
*/
|
|
115
|
+
static resetDefaults(): void;
|
|
116
|
+
/**
|
|
117
|
+
* RequestParameters constructor
|
|
118
|
+
* @param {Object} object - properties
|
|
119
|
+
*/
|
|
120
|
+
constructor(object?: any);
|
|
121
|
+
/**
|
|
122
|
+
* Page number
|
|
123
|
+
* @param {Number} value - Page number
|
|
124
|
+
*/
|
|
125
|
+
set page(arg: number);
|
|
126
|
+
/**
|
|
127
|
+
* Get page number
|
|
128
|
+
* @returns {Number} - Page number
|
|
129
|
+
* @throws {TypeError}
|
|
130
|
+
*/
|
|
131
|
+
get page(): number;
|
|
132
|
+
/**
|
|
133
|
+
* Rows per page
|
|
134
|
+
* @param {Number} value - Per page
|
|
135
|
+
*/
|
|
136
|
+
set perPage(arg: number);
|
|
137
|
+
/**
|
|
138
|
+
* Get rows per page
|
|
139
|
+
* @returns {Number} - Per page
|
|
140
|
+
* @throws {TypeError}
|
|
141
|
+
*/
|
|
142
|
+
get perPage(): number;
|
|
143
|
+
/**
|
|
144
|
+
* Pagination offset
|
|
145
|
+
* @param {Number} value - Offset
|
|
146
|
+
*/
|
|
147
|
+
set offset(arg: number);
|
|
148
|
+
/**
|
|
149
|
+
* Get pagination offset
|
|
150
|
+
* @returns {Number} - Offset
|
|
151
|
+
* @throws {TypeError}
|
|
152
|
+
*/
|
|
153
|
+
get offset(): number;
|
|
154
|
+
/**
|
|
155
|
+
* Search query
|
|
156
|
+
* @param {Object<String, String|Array<String>>} value - Search query
|
|
157
|
+
*/
|
|
158
|
+
set search(arg: any);
|
|
159
|
+
/**
|
|
160
|
+
* Search query
|
|
161
|
+
* @returns {Object<String, String|Array<String>>} - Query
|
|
162
|
+
* @throws {TypeError}
|
|
163
|
+
*/
|
|
164
|
+
get search(): any;
|
|
165
|
+
/**
|
|
166
|
+
* Sort query
|
|
167
|
+
* @param {Array<String>} value - Sort query
|
|
168
|
+
*/
|
|
169
|
+
set sort(arg: string[]);
|
|
170
|
+
/**
|
|
171
|
+
* Get sort options
|
|
172
|
+
* @returns {Array<String>} - Per page
|
|
173
|
+
* @throws {TypeError}
|
|
174
|
+
*/
|
|
175
|
+
get sort(): string[];
|
|
176
|
+
/**
|
|
177
|
+
* Deleted items filter state
|
|
178
|
+
* @param {String} value - Deleted items filter state
|
|
179
|
+
* @see {@link DeletedState}
|
|
180
|
+
*/
|
|
181
|
+
set deleted(arg: string);
|
|
182
|
+
/**
|
|
183
|
+
* If deleted items should be shown
|
|
184
|
+
* @returns {String} - Deleted items filter state
|
|
185
|
+
* @see {@link DeletedState}
|
|
186
|
+
*/
|
|
187
|
+
get deleted(): string;
|
|
188
|
+
/**
|
|
189
|
+
* Extra request parameters
|
|
190
|
+
* @param {Object} value - Extra request parameters
|
|
191
|
+
*/
|
|
192
|
+
set extra(arg: any);
|
|
193
|
+
/**
|
|
194
|
+
* Extra parameters
|
|
195
|
+
* @returns {Object} - Extra parameters
|
|
196
|
+
*/
|
|
197
|
+
get extra(): any;
|
|
198
|
+
_resolve(name: any): any;
|
|
199
|
+
_update(name: any, value: any, preventEvent?: boolean): any;
|
|
200
|
+
/**
|
|
201
|
+
* Urlencode parameters
|
|
202
|
+
* @returns {string} - HTTP query
|
|
203
|
+
*/
|
|
204
|
+
encode(): string;
|
|
205
|
+
/**
|
|
206
|
+
* Convert to object
|
|
207
|
+
* @returns {Object} - Object
|
|
208
|
+
*/
|
|
209
|
+
toObject(): any;
|
|
210
|
+
/**
|
|
211
|
+
* Convert to object
|
|
212
|
+
* @returns {Object} - Object
|
|
213
|
+
*/
|
|
214
|
+
toParameterObject(): any;
|
|
215
|
+
/**
|
|
216
|
+
* Copy object
|
|
217
|
+
* @returns {RequestParameters} - Copy
|
|
218
|
+
*/
|
|
219
|
+
copy(): RequestParameters;
|
|
220
|
+
/**
|
|
221
|
+
* Generates a cache token
|
|
222
|
+
* @returns {string} - Cache token
|
|
223
|
+
*/
|
|
224
|
+
token(): string;
|
|
225
|
+
/**
|
|
226
|
+
* Apply parameters from object
|
|
227
|
+
* @param {object|RequestParameters} params - parameters
|
|
228
|
+
* @returns {Object[]} - Array containing the updated values
|
|
229
|
+
* @example
|
|
230
|
+
* const params = new RequestParameters({perPage: 12});
|
|
231
|
+
*
|
|
232
|
+
* params.perPage === 12;
|
|
233
|
+
*
|
|
234
|
+
* params.apply({perPage: 50});
|
|
235
|
+
*
|
|
236
|
+
* params.perPage === 50;
|
|
237
|
+
*/
|
|
238
|
+
apply(params: object | RequestParameters): any[];
|
|
239
|
+
}
|
|
240
|
+
import { EventEmitter } from "events";
|
|
241
|
+
//# sourceMappingURL=RequestParameters.d.ts.map
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paginated resource lister
|
|
3
|
+
*
|
|
4
|
+
* @fires ResourceLister#update
|
|
5
|
+
*/
|
|
6
|
+
export default class ResourceLister extends EventEmitter {
|
|
7
|
+
/**
|
|
8
|
+
* ResourceLister constructor
|
|
9
|
+
*
|
|
10
|
+
* @param {Mapcreator} api - Api instance
|
|
11
|
+
* @param {string} route - Resource url route
|
|
12
|
+
* @param {Class<ResourceBase>} Resource - Resource constructor
|
|
13
|
+
* @param {?RequestParameters} parameters - Request parameters
|
|
14
|
+
* @param {number} [maxRows=50] - Initial max rows
|
|
15
|
+
* @param {string} [key=id] - Key
|
|
16
|
+
*/
|
|
17
|
+
constructor(api: Mapcreator, route: string, Resource?: Class<ResourceBase>, parameters?: RequestParameters | null, maxRows?: number, key?: string);
|
|
18
|
+
_api: Mapcreator;
|
|
19
|
+
_Resource: Class<ResourceBase>;
|
|
20
|
+
_route: any;
|
|
21
|
+
_parameters: RequestParameters;
|
|
22
|
+
_key: string;
|
|
23
|
+
_waiting: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Set if {@link ResourceLister#update} should be called when {@link ResourceLister#parameters} is updated
|
|
26
|
+
*
|
|
27
|
+
* @throws {ResourceLister#update}
|
|
28
|
+
* @throws {ResourceLister#parameters}
|
|
29
|
+
* @param {boolean} value - auto update
|
|
30
|
+
*/
|
|
31
|
+
set autoUpdate(arg: boolean);
|
|
32
|
+
/**
|
|
33
|
+
* Get if {@link ResourceLister#update} should be called when {@link ResourceLister#parameters} is updated
|
|
34
|
+
*
|
|
35
|
+
* @throws {ResourceLister#update}
|
|
36
|
+
* @throws {ResourceLister#parameters}
|
|
37
|
+
*/
|
|
38
|
+
get autoUpdate(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set the maximum amount of rows allowed
|
|
41
|
+
* @param {number} value - max rows
|
|
42
|
+
*/
|
|
43
|
+
set maxRows(arg: number);
|
|
44
|
+
/**
|
|
45
|
+
* Get the maximum amount of rows allowed
|
|
46
|
+
* @returns {number} - max rows
|
|
47
|
+
*/
|
|
48
|
+
get maxRows(): number;
|
|
49
|
+
/**
|
|
50
|
+
* Get if there are more resources to fetch. It indicates if the maxRows can be increased.
|
|
51
|
+
* @returns {boolean} - if more rows are available
|
|
52
|
+
*/
|
|
53
|
+
get hasMore(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Get if the instance is waiting for data
|
|
56
|
+
* @returns {boolean} - waiting for data
|
|
57
|
+
*/
|
|
58
|
+
get waiting(): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Set the request parameters
|
|
61
|
+
*
|
|
62
|
+
* If you set {@link ResourceLister#autoUpdate} to true then {@link ResourceLister#update}
|
|
63
|
+
* will automatically be called when the parameters are updated.
|
|
64
|
+
* @throws {ResourceLister#autoUpdate}
|
|
65
|
+
* @param {RequestParameters} object - parameters
|
|
66
|
+
*/
|
|
67
|
+
set parameters(arg: RequestParameters);
|
|
68
|
+
/**
|
|
69
|
+
* Get the request parameters
|
|
70
|
+
* @returns {RequestParameters} - parameters
|
|
71
|
+
*/
|
|
72
|
+
get parameters(): RequestParameters;
|
|
73
|
+
/**
|
|
74
|
+
* Resource constructor accessor, used for building the resource instance
|
|
75
|
+
* @returns {Class<ResourceBase>} - resource constructor
|
|
76
|
+
*/
|
|
77
|
+
get Resource(): Class<ResourceBase>;
|
|
78
|
+
/**
|
|
79
|
+
* Get the route (url)
|
|
80
|
+
* @returns {string} - route
|
|
81
|
+
*/
|
|
82
|
+
get route(): string;
|
|
83
|
+
/**
|
|
84
|
+
* Get the data
|
|
85
|
+
* @returns {Array<ResourceLister.Resource>} - data
|
|
86
|
+
*/
|
|
87
|
+
get data(): ResourceLister.Resource[];
|
|
88
|
+
/**
|
|
89
|
+
* Get the api instance
|
|
90
|
+
* @returns {Mapcreator} - Api instance
|
|
91
|
+
*/
|
|
92
|
+
get api(): Mapcreator;
|
|
93
|
+
/**
|
|
94
|
+
* Get the row count
|
|
95
|
+
*
|
|
96
|
+
* @see {ResourceLister.data}
|
|
97
|
+
* @returns {number} - row count
|
|
98
|
+
*/
|
|
99
|
+
get rowCount(): number;
|
|
100
|
+
_maxRows: number;
|
|
101
|
+
/**
|
|
102
|
+
* Get the number of rows the server has available
|
|
103
|
+
* @returns {number} - number of rows
|
|
104
|
+
*/
|
|
105
|
+
get availableRows(): number;
|
|
106
|
+
_autoUpdate: boolean;
|
|
107
|
+
_boundUpdate: any;
|
|
108
|
+
/**
|
|
109
|
+
* Reset the instance
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
*/
|
|
113
|
+
private _reset;
|
|
114
|
+
_parameterToken: string;
|
|
115
|
+
_realData: any[];
|
|
116
|
+
_data: any[];
|
|
117
|
+
_keys: any[];
|
|
118
|
+
/**
|
|
119
|
+
* Update the server data
|
|
120
|
+
*/
|
|
121
|
+
update(): Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* Fetch more data from the server
|
|
124
|
+
* @private
|
|
125
|
+
* @returns {CancelablePromise}
|
|
126
|
+
* @throws {ApiError} - If the api returns errors
|
|
127
|
+
*/
|
|
128
|
+
private _fetchMore;
|
|
129
|
+
_availableRows: number;
|
|
130
|
+
/**
|
|
131
|
+
* Push a row to the data collection
|
|
132
|
+
*
|
|
133
|
+
* This will append the row or update an existing row based on the key. If
|
|
134
|
+
* autoMaxRows is set to true and maxRows only needs to be increased by one
|
|
135
|
+
* for the new resource to show up it will
|
|
136
|
+
* @param {ResourceLister.Resource} row - resource
|
|
137
|
+
* @param {boolean} autoMaxRows - Increase maxRows if needed
|
|
138
|
+
*/
|
|
139
|
+
push(row: ResourceLister.Resource, autoMaxRows?: boolean): void;
|
|
140
|
+
/**
|
|
141
|
+
* Same as `this.maxRows += this.parameters.perPage`
|
|
142
|
+
* @param {number} [rows=parameters.perPage] - Amount to increment maxRows with
|
|
143
|
+
*/
|
|
144
|
+
loadMore(rows?: number): void;
|
|
145
|
+
/**
|
|
146
|
+
* Returns the iterable
|
|
147
|
+
* @returns {Iterator} - iterator
|
|
148
|
+
*/
|
|
149
|
+
[Symbol.iterator](): Iterator<any, any, undefined>;
|
|
150
|
+
}
|
|
151
|
+
import { EventEmitter } from "events";
|
|
152
|
+
import Mapcreator from "./Mapcreator";
|
|
153
|
+
import ResourceBase from "./resources/base/ResourceBase";
|
|
154
|
+
import RequestParameters from "./RequestParameters";
|
|
155
|
+
//# sourceMappingURL=ResourceLister.d.ts.map
|