@mapcreator/api 2.9.0 → 3.0.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.
- 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 +132 -181
- package/dist/bundle.browser.min.js +1 -1
- package/dist/bundle.browser.min.js.LICENSE.txt +2 -2
- package/dist/bundle.js +131 -180
- 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 +46 -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 +45 -35
- 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/index.js +37 -36
- 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,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encodes an object to a http query string with support for recursion
|
|
3
|
+
* @param {object<string, *>} paramsObject - data to be encoded
|
|
4
|
+
* @returns {string} - encoded http query string
|
|
5
|
+
*
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export function encodeQueryString(paramsObject: any): string;
|
|
9
|
+
/**
|
|
10
|
+
* Wraps around ky to ensure that the prefix is correctly set
|
|
11
|
+
* @param {function(*=, *=): Response} fn - ky instance
|
|
12
|
+
* @param {string} baseUrl - url to be prefixed
|
|
13
|
+
* @returns {function(*=, *=): Response}
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
export function wrapKyPrefixUrl(fn: () => Response, baseUrl: string): () => Response;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
export const FormData: {
|
|
21
|
+
new (form?: HTMLFormElement): FormData;
|
|
22
|
+
prototype: FormData;
|
|
23
|
+
} | typeof import("form-data");
|
|
24
|
+
//# sourceMappingURL=requests.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UUID util class
|
|
3
|
+
* @static
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export default class Uuid extends StaticClass {
|
|
7
|
+
/**
|
|
8
|
+
* Generate a UUID4 string
|
|
9
|
+
* @returns {string} - Uuid
|
|
10
|
+
*/
|
|
11
|
+
static uuid4(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Empty uuid as per spec
|
|
14
|
+
* @returns {string} - Uuid
|
|
15
|
+
*/
|
|
16
|
+
static nil(): string;
|
|
17
|
+
}
|
|
18
|
+
import StaticClass from "./StaticClass";
|
|
19
|
+
//# sourceMappingURL=uuid.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapcreator/api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Mapcreator JavaScript API",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"repository": "https://gitlab.com/mapcreator/api-wrapper.git",
|
|
7
7
|
"author": "Bas Bieling <b.bieling@mapcreator.eu>",
|
|
8
8
|
"license": "BSD-3-Clause",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
9
10
|
"files": [
|
|
10
11
|
"dist",
|
|
11
12
|
"src",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"nyc": "^15.1.0",
|
|
49
50
|
"tap-nyc": "^1.0.3",
|
|
50
51
|
"terser-webpack-plugin": "^3.0.8",
|
|
52
|
+
"typescript": "^4.9.4",
|
|
51
53
|
"webpack": "^4.43.0",
|
|
52
54
|
"webpack-cli": "^3.3.11",
|
|
53
55
|
"webpack-merge": "^4.2.2",
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
},
|
|
56
58
|
"scripts": {
|
|
57
59
|
"build": "APP_ENV=production npx webpack",
|
|
60
|
+
"postbuild": "APP_ENV=production npx tsc || true && rm -v dist/*.map dist/**/*.map",
|
|
58
61
|
"watch": "npx webpack --progress --watch",
|
|
59
62
|
"docs": "npx esdoc && ./scripts/inject_docs_viewport.sh",
|
|
60
63
|
"lint": "npx eslint --no-color --format checkstyle --output-file build/checkstyle.xml src",
|
package/src/Mapcreator.js
CHANGED
|
@@ -73,6 +73,7 @@ import {
|
|
|
73
73
|
ProductTour,
|
|
74
74
|
ProductTourStep,
|
|
75
75
|
LayerFaq,
|
|
76
|
+
LayerGroup,
|
|
76
77
|
} from './resources';
|
|
77
78
|
import ResourceBase from './resources/base/ResourceBase';
|
|
78
79
|
import Injectable from './traits/Injectable';
|
|
@@ -84,7 +85,6 @@ import ValidationError from './errors/ValidationError';
|
|
|
84
85
|
import ApiError from './errors/ApiError';
|
|
85
86
|
import { wrapKyPrefixUrl } from './utils/requests';
|
|
86
87
|
import EventEmitter from 'events';
|
|
87
|
-
import LayerGroup from './resources/LayerGroup';
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Base API class
|
|
@@ -351,7 +351,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
351
351
|
/**
|
|
352
352
|
* Choropleth accessor
|
|
353
353
|
* @see {@link Choropleth}
|
|
354
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
354
|
+
* @returns {GeoResourceProxy<Choropleth>} - A proxy for accessing the resource
|
|
355
355
|
*/
|
|
356
356
|
get choropleths () {
|
|
357
357
|
return new GeoResourceProxy(this, Choropleth);
|
|
@@ -360,7 +360,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
360
360
|
/**
|
|
361
361
|
* VectorChoropleth accessor
|
|
362
362
|
* @see {@link VectorChoropleth}
|
|
363
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
363
|
+
* @returns {GeoResourceProxy<VectorChoropleth>} - A proxy for accessing the resource
|
|
364
364
|
*/
|
|
365
365
|
get vectorChoropleths () {
|
|
366
366
|
return new GeoResourceProxy(this, VectorChoropleth);
|
|
@@ -369,7 +369,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
369
369
|
/**
|
|
370
370
|
* Color accessor
|
|
371
371
|
* @see {@link Color}
|
|
372
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
372
|
+
* @returns {ResourceProxy<Color>} - A proxy for accessing the resource
|
|
373
373
|
*/
|
|
374
374
|
get colors () {
|
|
375
375
|
return this.static(Color);
|
|
@@ -378,7 +378,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
378
378
|
/**
|
|
379
379
|
* Tag accessor
|
|
380
380
|
* @see {@link Tag}
|
|
381
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
381
|
+
* @returns {ResourceProxy<Tag>} - A proxy for accessing the resource
|
|
382
382
|
*/
|
|
383
383
|
get tags () {
|
|
384
384
|
return this.static(Tag);
|
|
@@ -386,8 +386,8 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
388
|
* Tag accessor
|
|
389
|
-
* @see {@link
|
|
390
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
389
|
+
* @see {@link TagType}
|
|
390
|
+
* @returns {ResourceProxy<TagType>} - A proxy for accessing the resource
|
|
391
391
|
*/
|
|
392
392
|
get tagTypes () {
|
|
393
393
|
return this.static(TagType);
|
|
@@ -396,7 +396,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
396
396
|
/**
|
|
397
397
|
* Contract accessor
|
|
398
398
|
* @see {@link Contract}
|
|
399
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
399
|
+
* @returns {ResourceProxy<Contract>} - A proxy for accessing the resource
|
|
400
400
|
*/
|
|
401
401
|
get contracts () {
|
|
402
402
|
return this.static(Contract);
|
|
@@ -405,7 +405,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
405
405
|
/**
|
|
406
406
|
* Dimension accessor
|
|
407
407
|
* @see {@link Dimension}
|
|
408
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
408
|
+
* @returns {ResourceProxy<Dimension>} - A proxy for accessing the resource
|
|
409
409
|
*/
|
|
410
410
|
get dimensions () {
|
|
411
411
|
return this.static(Dimension);
|
|
@@ -414,7 +414,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
414
414
|
/**
|
|
415
415
|
* Dimension set accessor
|
|
416
416
|
* @see {@link DimensionSet}
|
|
417
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
417
|
+
* @returns {ResourceProxy<DimensionSet>} - A proxy for accessing the resource
|
|
418
418
|
*/
|
|
419
419
|
get dimensionSets () {
|
|
420
420
|
return this.static(DimensionSet);
|
|
@@ -423,7 +423,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
423
423
|
/**
|
|
424
424
|
* Faq accessor
|
|
425
425
|
* @see {@link Faq}
|
|
426
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
426
|
+
* @returns {ResourceProxy<Faq>} - A proxy for accessing the resource
|
|
427
427
|
*/
|
|
428
428
|
get faqs () {
|
|
429
429
|
return this.static(Faq);
|
|
@@ -432,7 +432,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
432
432
|
/**
|
|
433
433
|
* Feature accessor
|
|
434
434
|
* @see {@link Feature}
|
|
435
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
435
|
+
* @returns {ResourceProxy<Feature>} - A proxy for accessing the resource
|
|
436
436
|
*/
|
|
437
437
|
get features () {
|
|
438
438
|
return this.static(Feature);
|
|
@@ -441,7 +441,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
441
441
|
/**
|
|
442
442
|
* Featured jobs accessor
|
|
443
443
|
* @see {@link Job}
|
|
444
|
-
* @returns {SimpleResourceProxy} - A proxy for accessing the resource
|
|
444
|
+
* @returns {SimpleResourceProxy<Job>} - A proxy for accessing the resource
|
|
445
445
|
*/
|
|
446
446
|
get featuredMaps () {
|
|
447
447
|
return new SimpleResourceProxy(this, Job, '/jobs/featured');
|
|
@@ -450,7 +450,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
450
450
|
/**
|
|
451
451
|
* Font accessor
|
|
452
452
|
* @see {@link Font}
|
|
453
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
453
|
+
* @returns {ResourceProxy<Font>} - A proxy for accessing the resource
|
|
454
454
|
*/
|
|
455
455
|
get fonts () {
|
|
456
456
|
return this.static(Font);
|
|
@@ -459,7 +459,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
459
459
|
/**
|
|
460
460
|
* FontFamily accessor
|
|
461
461
|
* @see {@link FontFamily}
|
|
462
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
462
|
+
* @returns {ResourceProxy<FontFamily>} - A proxy for accessing the resource
|
|
463
463
|
*/
|
|
464
464
|
get fontFamilies () {
|
|
465
465
|
return this.static(FontFamily);
|
|
@@ -468,7 +468,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
468
468
|
/**
|
|
469
469
|
* Highlight accessor
|
|
470
470
|
* @see {@link Highlight}
|
|
471
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
471
|
+
* @returns {GeoResourceProxy<Highlight>} - A proxy for accessing the resource
|
|
472
472
|
*/
|
|
473
473
|
get highlights () {
|
|
474
474
|
return new GeoResourceProxy(this, Highlight);
|
|
@@ -477,7 +477,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
477
477
|
/**
|
|
478
478
|
* VectorHighlight accessor
|
|
479
479
|
* @see {@link VectorHighlight}
|
|
480
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
480
|
+
* @returns {GeoResourceProxy<VectorHighlight>} - A proxy for accessing the resource
|
|
481
481
|
*/
|
|
482
482
|
get vectorHighlights () {
|
|
483
483
|
return new GeoResourceProxy(this, VectorHighlight);
|
|
@@ -486,7 +486,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
486
486
|
/**
|
|
487
487
|
* InsetMap accessor
|
|
488
488
|
* @see {@link InsetMap}
|
|
489
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
489
|
+
* @returns {GeoResourceProxy<InsetMap>} - A proxy for accessing the resource
|
|
490
490
|
*/
|
|
491
491
|
get insetMaps () {
|
|
492
492
|
return new GeoResourceProxy(this, InsetMap);
|
|
@@ -495,7 +495,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
495
495
|
/**
|
|
496
496
|
* Job accessor
|
|
497
497
|
* @see {@link Job}
|
|
498
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
498
|
+
* @returns {ResourceProxy<Job>} - A proxy for accessing the resource
|
|
499
499
|
*/
|
|
500
500
|
get jobs () {
|
|
501
501
|
return this.static(Job);
|
|
@@ -504,7 +504,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
504
504
|
/**
|
|
505
505
|
* JobShare accessor
|
|
506
506
|
* @see {@link JobShare}
|
|
507
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
507
|
+
* @returns {ResourceProxy<JobShare>} - A proxy for accessing the resource
|
|
508
508
|
*/
|
|
509
509
|
get jobShares () {
|
|
510
510
|
return this.static(JobShare);
|
|
@@ -513,7 +513,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
513
513
|
/**
|
|
514
514
|
* JobType accessor
|
|
515
515
|
* @see {@link JobType}
|
|
516
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
516
|
+
* @returns {ResourceProxy<JobType>} - A proxy for accessing the resource
|
|
517
517
|
*/
|
|
518
518
|
get jobTypes () {
|
|
519
519
|
return this.static(JobType);
|
|
@@ -522,7 +522,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
522
522
|
/**
|
|
523
523
|
* Language accessor
|
|
524
524
|
* @see {@link Language}
|
|
525
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
525
|
+
* @returns {ResourceProxy<Language>} - A proxy for accessing the resource
|
|
526
526
|
*/
|
|
527
527
|
get languages () {
|
|
528
528
|
return this.static(Language);
|
|
@@ -531,7 +531,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
531
531
|
/**
|
|
532
532
|
* Layer accessor
|
|
533
533
|
* @see {@link Layer}
|
|
534
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
534
|
+
* @returns {ResourceProxy<Layer>} - A proxy for accessing the resource
|
|
535
535
|
*/
|
|
536
536
|
get layers () {
|
|
537
537
|
return this.static(Layer);
|
|
@@ -540,7 +540,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
540
540
|
/**
|
|
541
541
|
* LayerFaq accessor
|
|
542
542
|
* @see {@link LayerFaq}
|
|
543
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
543
|
+
* @returns {ResourceProxy<LayerFaq>} - A proxy for accessing the resource
|
|
544
544
|
*/
|
|
545
545
|
get layerFaqs () {
|
|
546
546
|
return this.static(LayerFaq);
|
|
@@ -549,7 +549,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
549
549
|
/**
|
|
550
550
|
* Layer group accessor
|
|
551
551
|
* @see {@link LayerGroup}
|
|
552
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
552
|
+
* @returns {ResourceProxy<LayerGroup>} - A proxy for accessing the resource
|
|
553
553
|
*/
|
|
554
554
|
get layerGroups () {
|
|
555
555
|
return this.static(LayerGroup);
|
|
@@ -558,7 +558,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
558
558
|
/**
|
|
559
559
|
* Mapstyle accessor
|
|
560
560
|
* @see {@link Mapstyle}
|
|
561
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
561
|
+
* @returns {ResourceProxy<Mapstyle>} - A proxy for accessing the resource
|
|
562
562
|
*/
|
|
563
563
|
get mapstyles () {
|
|
564
564
|
return this.static(Mapstyle);
|
|
@@ -567,7 +567,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
567
567
|
/**
|
|
568
568
|
* MapstyleSet accessor
|
|
569
569
|
* @see {@link MapstyleSet}
|
|
570
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
570
|
+
* @returns {ResourceProxy<MapstyleSet>} - A proxy for accessing the resource
|
|
571
571
|
*/
|
|
572
572
|
get mapstyleSets () {
|
|
573
573
|
return this.static(MapstyleSet);
|
|
@@ -576,7 +576,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
576
576
|
/**
|
|
577
577
|
* Notification accessor
|
|
578
578
|
* @see {@link Notification}
|
|
579
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
579
|
+
* @returns {ResourceProxy<Notification>} - A proxy for accessing the resource
|
|
580
580
|
*/
|
|
581
581
|
get notifications () {
|
|
582
582
|
return this.static(Notification);
|
|
@@ -585,7 +585,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
585
585
|
/**
|
|
586
586
|
* Message accessor
|
|
587
587
|
* @see {@link Message}
|
|
588
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
588
|
+
* @returns {ResourceProxy<Message>} - A proxy for accessing the resource
|
|
589
589
|
*/
|
|
590
590
|
get messages () {
|
|
591
591
|
return this.static(Message);
|
|
@@ -594,7 +594,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
594
594
|
/**
|
|
595
595
|
* Organisation accessor
|
|
596
596
|
* @see {@link Organisation}
|
|
597
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
597
|
+
* @returns {ResourceProxy<Organisation>} - A proxy for accessing the resource
|
|
598
598
|
*/
|
|
599
599
|
get organisations () {
|
|
600
600
|
return this.static(Organisation);
|
|
@@ -603,16 +603,26 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
603
603
|
/**
|
|
604
604
|
* Permission accessor
|
|
605
605
|
* @see {@link Permission}
|
|
606
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
606
|
+
* @returns {ResourceProxy<Permission>} - A proxy for accessing the resource
|
|
607
607
|
*/
|
|
608
608
|
get permissions () {
|
|
609
609
|
return this.static(Permission);
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
+
/**
|
|
613
|
+
* Product tour accessor
|
|
614
|
+
* @see {@link ProductTour}
|
|
615
|
+
* @returns {ResourceProxy<ProductTour>} - A proxy for accessing the resource
|
|
616
|
+
*/
|
|
612
617
|
get productTours () {
|
|
613
618
|
return this.static(ProductTour);
|
|
614
619
|
}
|
|
615
620
|
|
|
621
|
+
/**
|
|
622
|
+
* Product tour step accessor
|
|
623
|
+
* @see {@link ProductTourStep}
|
|
624
|
+
* @returns {ResourceProxy<ProductTourStep>} - A proxy for accessing the resource
|
|
625
|
+
*/
|
|
616
626
|
get productTourSteps () {
|
|
617
627
|
return this.static(ProductTourStep);
|
|
618
628
|
}
|
|
@@ -620,7 +630,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
620
630
|
/**
|
|
621
631
|
* Role accessor
|
|
622
632
|
* @see {@link Role}
|
|
623
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
633
|
+
* @returns {ResourceProxy<Role>} - A proxy for accessing the resource
|
|
624
634
|
*/
|
|
625
635
|
get roles () {
|
|
626
636
|
return this.static(Role);
|
|
@@ -629,7 +639,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
629
639
|
/**
|
|
630
640
|
* Svg accessor
|
|
631
641
|
* @see {@link Svg}
|
|
632
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
642
|
+
* @returns {ResourceProxy<Svg>} - A proxy for accessing the resource
|
|
633
643
|
*/
|
|
634
644
|
get svgs () {
|
|
635
645
|
return this.static(Svg);
|
|
@@ -638,7 +648,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
638
648
|
/**
|
|
639
649
|
* SvgSet accessor
|
|
640
650
|
* @see {@link SvgSet}
|
|
641
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
651
|
+
* @returns {ResourceProxy<SvgSet>} - A proxy for accessing the resource
|
|
642
652
|
*/
|
|
643
653
|
get svgSets () {
|
|
644
654
|
return this.static(SvgSet);
|
|
@@ -647,7 +657,7 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
|
|
|
647
657
|
/**
|
|
648
658
|
* User accessor
|
|
649
659
|
* @see {@link User}
|
|
650
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
660
|
+
* @returns {ResourceProxy<User>} - A proxy for accessing the resource
|
|
651
661
|
*/
|
|
652
662
|
get users () {
|
|
653
663
|
return this.static(User);
|
package/src/enums/index.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
export Enum from './Enum';
|
|
33
|
+
export { default as Enum } from './Enum';
|
|
34
34
|
export { DeletedState } from './DeletedState';
|
|
35
35
|
export { ResultStatus } from './ResultStatus';
|
|
36
36
|
export { JobShareVisibility } from './JobShareVisibility';
|
package/src/errors/index.js
CHANGED
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
export * from './AbstractError';
|
|
34
|
-
export ApiError from './ApiError';
|
|
35
|
-
export ValidationError from './ValidationError';
|
|
36
|
-
export NodeError from './NodeError';
|
|
37
|
-
export OAuthError from './OAuthError';
|
|
38
|
-
export StaticClassError from './StaticClassError';
|
|
39
|
-
export GeoError from './GeoError';
|
|
34
|
+
export { default as ApiError } from './ApiError';
|
|
35
|
+
export { default as ValidationError } from './ValidationError';
|
|
36
|
+
export { default as NodeError } from './NodeError';
|
|
37
|
+
export { default as OAuthError } from './OAuthError';
|
|
38
|
+
export { default as StaticClassError } from './StaticClassError';
|
|
39
|
+
export { default as GeoError } from './GeoError';
|
package/src/index.js
CHANGED
|
@@ -31,34 +31,34 @@
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
// Core
|
|
34
|
-
export Mapcreator from './Mapcreator';
|
|
35
|
-
export RequestParameters from './RequestParameters';
|
|
36
|
-
export StorageManager from './storage/StorageManager';
|
|
34
|
+
export { default as Mapcreator } from './Mapcreator';
|
|
35
|
+
export { default as RequestParameters } from './RequestParameters';
|
|
36
|
+
export { default as StorageManager } from './storage/StorageManager';
|
|
37
37
|
|
|
38
38
|
// Enums
|
|
39
|
-
export Enum from './enums/Enum';
|
|
39
|
+
export { default as Enum } from './enums/Enum';
|
|
40
40
|
export { DeletedState, ResultStatus } from './enums';
|
|
41
41
|
|
|
42
42
|
// Flows
|
|
43
|
-
export OAuth from './oauth/OAuth';
|
|
44
|
-
export OAuthToken from './oauth/OAuthToken';
|
|
45
|
-
export ImplicitFlow from './oauth/ImplicitFlow';
|
|
46
|
-
export ImplicitFlowPopup from './oauth/ImplicitFlowPopup';
|
|
47
|
-
export PasswordFlow from './oauth/PasswordFlow';
|
|
48
|
-
export DummyFlow from './oauth/DummyFlow';
|
|
43
|
+
export { default as OAuth } from './oauth/OAuth';
|
|
44
|
+
export { default as OAuthToken } from './oauth/OAuthToken';
|
|
45
|
+
export { default as ImplicitFlow } from './oauth/ImplicitFlow';
|
|
46
|
+
export { default as ImplicitFlowPopup } from './oauth/ImplicitFlowPopup';
|
|
47
|
+
export { default as PasswordFlow } from './oauth/PasswordFlow';
|
|
48
|
+
export { default as DummyFlow } from './oauth/DummyFlow';
|
|
49
49
|
|
|
50
50
|
// Exceptions
|
|
51
|
-
export ApiError from './errors/ApiError';
|
|
51
|
+
export { default as ApiError } from './errors/ApiError';
|
|
52
52
|
export * from './errors/AbstractError';
|
|
53
|
-
export ValidationError from './errors/ValidationError';
|
|
54
|
-
export StaticClassError from './errors/StaticClassError';
|
|
53
|
+
export { default as ValidationError } from './errors/ValidationError';
|
|
54
|
+
export { default as StaticClassError } from './errors/StaticClassError';
|
|
55
55
|
|
|
56
56
|
// Resources
|
|
57
57
|
export * as resources from './resources';
|
|
58
58
|
|
|
59
59
|
// Helpers
|
|
60
60
|
export * as helpers from './utils/helpers';
|
|
61
|
-
export ResourceLister from './ResourceLister';
|
|
61
|
+
export { default as ResourceLister } from './ResourceLister';
|
|
62
62
|
export * as geo from './utils/geo';
|
|
63
63
|
|
|
64
64
|
// Errors
|
package/src/proxy/index.js
CHANGED
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
export GeoResourceProxy from './GeoResourceProxy';
|
|
34
|
-
export OrganisationProxy from './OrganisationProxy';
|
|
35
|
-
export OwnedResourceProxy from './OwnedResourceProxy';
|
|
36
|
-
export ResourceProxy from './ResourceProxy';
|
|
37
|
-
export SimpleResourceProxy from './SimpleResourceProxy';
|
|
33
|
+
export { default as GeoResourceProxy } from './GeoResourceProxy';
|
|
34
|
+
export { default as OrganisationProxy } from './OrganisationProxy';
|
|
35
|
+
export { default as OwnedResourceProxy } from './OwnedResourceProxy';
|
|
36
|
+
export { default as ResourceProxy } from './ResourceProxy';
|
|
37
|
+
export { default as SimpleResourceProxy } from './SimpleResourceProxy';
|
package/src/resources/index.js
CHANGED
|
@@ -30,42 +30,43 @@
|
|
|
30
30
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
export Choropleth from './Choropleth';
|
|
34
|
-
export Color from './Color';
|
|
35
|
-
export Contract from './Contract';
|
|
36
|
-
export Dimension from './Dimension';
|
|
37
|
-
export DimensionSet from './DimensionSet';
|
|
38
|
-
export Domain from './Domain';
|
|
39
|
-
export Faq from './Faq';
|
|
40
|
-
export Feature from './Feature';
|
|
41
|
-
export Font from './Font';
|
|
42
|
-
export FontFamily from './FontFamily';
|
|
43
|
-
export Highlight from './Highlight';
|
|
44
|
-
export InsetMap from './InsetMap';
|
|
45
|
-
export Job from './Job';
|
|
46
|
-
export JobResult from './JobResult';
|
|
47
|
-
export JobRevision from './JobRevision';
|
|
48
|
-
export JobShare from './JobShare';
|
|
49
|
-
export JobType from './JobType';
|
|
50
|
-
export Language from './Language';
|
|
51
|
-
export Layer from './Layer';
|
|
52
|
-
export LayerFaq from './LayerFaq';
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
export
|
|
64
|
-
export
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
-
export
|
|
33
|
+
export { default as Choropleth } from './Choropleth';
|
|
34
|
+
export { default as Color } from './Color';
|
|
35
|
+
export { default as Contract } from './Contract';
|
|
36
|
+
export { default as Dimension } from './Dimension';
|
|
37
|
+
export { default as DimensionSet } from './DimensionSet';
|
|
38
|
+
export { default as Domain } from './Domain';
|
|
39
|
+
export { default as Faq } from './Faq';
|
|
40
|
+
export { default as Feature } from './Feature';
|
|
41
|
+
export { default as Font } from './Font';
|
|
42
|
+
export { default as FontFamily } from './FontFamily';
|
|
43
|
+
export { default as Highlight } from './Highlight';
|
|
44
|
+
export { default as InsetMap } from './InsetMap';
|
|
45
|
+
export { default as Job } from './Job';
|
|
46
|
+
export { default as JobResult } from './JobResult';
|
|
47
|
+
export { default as JobRevision } from './JobRevision';
|
|
48
|
+
export { default as JobShare } from './JobShare';
|
|
49
|
+
export { default as JobType } from './JobType';
|
|
50
|
+
export { default as Language } from './Language';
|
|
51
|
+
export { default as Layer } from './Layer';
|
|
52
|
+
export { default as LayerFaq } from './LayerFaq';
|
|
53
|
+
export { default as LayerGroup } from './LayerGroup';
|
|
54
|
+
export { default as Mapstyle } from './Mapstyle';
|
|
55
|
+
export { default as MapstyleSet } from './MapstyleSet';
|
|
56
|
+
export { default as Message } from './Message';
|
|
57
|
+
export { default as Notification } from './Notification';
|
|
58
|
+
export { default as Organisation } from './Organisation';
|
|
59
|
+
export { default as Permission } from './Permission';
|
|
60
|
+
export { default as ProductTour } from './ProductTour';
|
|
61
|
+
export { default as ProductTourStep } from './ProductTourStep';
|
|
62
|
+
export { default as Role } from './Role';
|
|
63
|
+
export { default as Svg } from './Svg';
|
|
64
|
+
export { default as SvgSet } from './SvgSet';
|
|
65
|
+
export { default as Tag } from './Tag';
|
|
66
|
+
export { default as TagType } from './TagType';
|
|
67
|
+
export { default as User } from './User';
|
|
68
|
+
export { default as VectorHighlight } from './VectorHighlight';
|
|
69
|
+
export { default as VectorChoropleth } from './VectorChoropleth';
|
|
69
70
|
|
|
70
71
|
import CrudBase from './base/CrudBase';
|
|
71
72
|
import CrudSetBase from './base/CrudSetBase';
|