@mapcreator/api 5.0.0-alpha.82 → 5.0.0-alpha.84
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/LICENSE +29 -29
- package/README.md +86 -86
- package/cjs/api/choropleth.d.ts +81 -4
- package/cjs/api/choropleth.d.ts.map +1 -1
- package/cjs/api/choropleth.js +26 -17
- package/cjs/api/choropleth.js.map +1 -1
- package/cjs/api/font.d.ts +0 -3
- package/cjs/api/font.d.ts.map +1 -1
- package/cjs/api/font.js +3 -0
- package/cjs/api/font.js.map +1 -1
- package/cjs/api/resources.d.ts +0 -6
- package/cjs/api/resources.d.ts.map +1 -1
- package/cjs/api/resources.js +1 -5
- package/cjs/api/resources.js.map +1 -1
- package/esm/api/choropleth.d.ts +81 -4
- package/esm/api/choropleth.d.ts.map +1 -1
- package/esm/api/choropleth.js +23 -16
- package/esm/api/choropleth.js.map +1 -1
- package/esm/api/font.d.ts +0 -3
- package/esm/api/font.d.ts.map +1 -1
- package/esm/api/font.js +3 -0
- package/esm/api/font.js.map +1 -1
- package/esm/api/resources.d.ts +0 -6
- package/esm/api/resources.d.ts.map +1 -1
- package/esm/api/resources.js +1 -5
- package/esm/api/resources.js.map +1 -1
- package/package.json +80 -80
- package/src/README.md +126 -126
- package/src/api/choropleth.ts +140 -44
- package/src/api/font.ts +3 -3
- package/src/api/resources.ts +0 -8
package/esm/api/choropleth.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { type ApiError, type ApiSuccess, Flatten, Revivers } from '../utils.js';
|
|
1
|
+
import { type ApiError, type ApiSuccess, type Flatten, type Revivers } from '../utils.js';
|
|
2
|
+
import type { RequireAtLeastOne } from 'type-fest';
|
|
2
3
|
import type { Polygon } from 'geojson';
|
|
3
|
-
|
|
4
|
+
export declare const boundingBoxRevivers: Revivers<{
|
|
5
|
+
data: {
|
|
6
|
+
bounding_box: string;
|
|
7
|
+
};
|
|
8
|
+
} & Omit<ApiSuccess, 'data'> | ApiError, {
|
|
9
|
+
boundingBox: Polygon;
|
|
10
|
+
}>;
|
|
4
11
|
export type ApiSearchPoint = {
|
|
5
12
|
lat: number;
|
|
6
13
|
lng: number;
|
|
@@ -23,12 +30,42 @@ export type GroupedArea = SingleOrGroupedAreaBase & {
|
|
|
23
30
|
};
|
|
24
31
|
export type SingleArea = SingleOrGroupedAreaBase & {
|
|
25
32
|
isGroup: false;
|
|
33
|
+
properties: Record<string, string>;
|
|
26
34
|
vectorSource: string;
|
|
27
35
|
sourceLayer: string;
|
|
28
36
|
featureId: number;
|
|
29
|
-
properties: Record<string, string>;
|
|
30
37
|
};
|
|
31
|
-
export type SingleOrGroupedArea =
|
|
38
|
+
export type SingleOrGroupedArea = {
|
|
39
|
+
id: number;
|
|
40
|
+
title: string;
|
|
41
|
+
subtitle: string;
|
|
42
|
+
svgPreview: string;
|
|
43
|
+
boundingBox: Polygon;
|
|
44
|
+
isGroup: boolean;
|
|
45
|
+
properties: Record<string, string> | null;
|
|
46
|
+
vectorSource: string | null;
|
|
47
|
+
sourceLayer: string | null;
|
|
48
|
+
featureId: number | null;
|
|
49
|
+
};
|
|
50
|
+
export type ApiSingleOrGroupedArea = {
|
|
51
|
+
data: {
|
|
52
|
+
id: number;
|
|
53
|
+
title: string;
|
|
54
|
+
subtitle: string;
|
|
55
|
+
svg_preview: string;
|
|
56
|
+
bounding_box: string;
|
|
57
|
+
is_group: boolean;
|
|
58
|
+
properties: string | null;
|
|
59
|
+
vector_source: string | null;
|
|
60
|
+
source_layer: string | null;
|
|
61
|
+
feature_id: number | null;
|
|
62
|
+
};
|
|
63
|
+
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
64
|
+
export type ApiSingleOrGroupedAreaData = Flatten<Exclude<ApiSingleOrGroupedArea, ApiError>['data']>;
|
|
65
|
+
export declare const singleOrGroupedAreaRevivers: Revivers<ApiSingleOrGroupedArea, SingleOrGroupedArea>;
|
|
66
|
+
/**
|
|
67
|
+
* TODO When SAGA search on click is implemented, remove mode and make searchBounds required
|
|
68
|
+
*/
|
|
32
69
|
export declare function searchSingleOrGroupedAreas(language: string, search: RequireAtLeastOne<{
|
|
33
70
|
searchBounds?: ApiSearchBounds;
|
|
34
71
|
query?: string;
|
|
@@ -57,5 +94,45 @@ type ApiGroupedAreaChild = {
|
|
|
57
94
|
export type ApiGroupedAreaChildData = Flatten<Exclude<ApiGroupedAreaChild, ApiError>['data']>;
|
|
58
95
|
export declare const groupedAreaChildRevivers: Revivers<ApiGroupedAreaChild, GroupedAreaChild>;
|
|
59
96
|
export declare function groupedAreaChildren(groupId: number, language: string): Promise<GroupedAreaChild[]>;
|
|
97
|
+
export type MatchedGroup = {
|
|
98
|
+
id: number;
|
|
99
|
+
sml: number;
|
|
100
|
+
childrenCount: number;
|
|
101
|
+
matchField: string;
|
|
102
|
+
boundingBox: Polygon;
|
|
103
|
+
property: string;
|
|
104
|
+
name: string;
|
|
105
|
+
};
|
|
106
|
+
export type ApiMatchedGroup = {
|
|
107
|
+
data: {
|
|
108
|
+
id: number;
|
|
109
|
+
sml: number;
|
|
110
|
+
children_count: number;
|
|
111
|
+
match_field: string;
|
|
112
|
+
bounding_box: string;
|
|
113
|
+
property: string;
|
|
114
|
+
name: string;
|
|
115
|
+
};
|
|
116
|
+
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
117
|
+
export type ApiMatchedGroupData = Flatten<Exclude<ApiMatchedGroup, ApiError>['data']>;
|
|
118
|
+
export declare function getGroupsByDataSample(sample: Record<string, string[]>, language: string, rowCount: number): Promise<MatchedGroup[]>;
|
|
119
|
+
export type BoundPolygon = {
|
|
120
|
+
index: number;
|
|
121
|
+
inputName: string;
|
|
122
|
+
id: number;
|
|
123
|
+
sml: number;
|
|
124
|
+
name: string;
|
|
125
|
+
};
|
|
126
|
+
export type ApiBoundPolygon = {
|
|
127
|
+
data: {
|
|
128
|
+
index: number;
|
|
129
|
+
input_name: string;
|
|
130
|
+
id: number;
|
|
131
|
+
sml: number;
|
|
132
|
+
name: string;
|
|
133
|
+
};
|
|
134
|
+
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
135
|
+
export type ApiBoundPolygonData = Flatten<Exclude<ApiBoundPolygon, ApiError>['data']>;
|
|
136
|
+
export declare function getBoundPolygons(groupId: number, property: string, data: string[], language: string): Promise<BoundPolygon[]>;
|
|
60
137
|
export {};
|
|
61
138
|
//# sourceMappingURL=choropleth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,QAAQ,EAA4B,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAA4B,MAAM,aAAa,CAAC;AAEpH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CACxC;IAAE,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,QAAQ,EACxE;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAGzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC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EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,YAAY,EAAE,CAAC,CASzB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC;AAExC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEtF,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EAAE,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,YAAY,EAAE,CAAC,CASzB"}
|
package/esm/api/choropleth.js
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { getSearchParams, request } from '../utils.js';
|
|
2
|
-
export
|
|
3
|
-
/**
|
|
4
|
-
* TODO When SAGA search on click is implemented, remove mode and make searchBounds required
|
|
5
|
-
*/
|
|
6
|
-
return request(`/v1/choropleth/polygons/search?${getSearchParams(Object.assign(Object.assign(Object.assign(Object.assign({ language }, search.searchBounds), (search.query && { query: search.query })), (search.searchPoint && { point: search.searchPoint })), { mode }))}`).then(result => {
|
|
7
|
-
result.forEach(elem => {
|
|
8
|
-
elem.boundingBox = JSON.parse(elem.boundingBox);
|
|
9
|
-
if (!elem.isGroup) {
|
|
10
|
-
elem.properties = JSON.parse(elem.properties);
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
return result;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
export const groupedAreaChildRevivers = {
|
|
2
|
+
export const boundingBoxRevivers = {
|
|
17
3
|
boundingBox: (data) => JSON.parse(data.bounding_box),
|
|
18
|
-
properties: (data) => JSON.parse(data.properties),
|
|
19
4
|
};
|
|
5
|
+
export const singleOrGroupedAreaRevivers = Object.assign(Object.assign({}, boundingBoxRevivers), { properties: (data) => (data.properties != null ? JSON.parse(data.properties) : null) });
|
|
6
|
+
/**
|
|
7
|
+
* TODO When SAGA search on click is implemented, remove mode and make searchBounds required
|
|
8
|
+
*/
|
|
9
|
+
export async function searchSingleOrGroupedAreas(language, search, mode = 'both') {
|
|
10
|
+
const pathname = '/v1/choropleth/polygons/search';
|
|
11
|
+
const query = getSearchParams(Object.assign(Object.assign(Object.assign(Object.assign({ language }, search.searchBounds), (search.query && { query: search.query })), (search.searchPoint && { point: search.searchPoint })), { mode }));
|
|
12
|
+
const path = `${pathname}?${query}`;
|
|
13
|
+
const options = { revivers: singleOrGroupedAreaRevivers };
|
|
14
|
+
return request(path, null, null, options);
|
|
15
|
+
}
|
|
16
|
+
export const groupedAreaChildRevivers = Object.assign(Object.assign({}, boundingBoxRevivers), { properties: (data) => JSON.parse(data.properties) });
|
|
20
17
|
export async function groupedAreaChildren(groupId, language) {
|
|
21
18
|
const pathname = `/v1/choropleth/groups/${groupId}/children-optimized`;
|
|
22
19
|
const query = getSearchParams({ language });
|
|
@@ -24,4 +21,14 @@ export async function groupedAreaChildren(groupId, language) {
|
|
|
24
21
|
const options = { revivers: groupedAreaChildRevivers };
|
|
25
22
|
return request(path, null, null, options);
|
|
26
23
|
}
|
|
24
|
+
export async function getGroupsByDataSample(sample, language, rowCount) {
|
|
25
|
+
const path = `/v1/choropleth/groups/sample`;
|
|
26
|
+
const options = { revivers: boundingBoxRevivers };
|
|
27
|
+
return request(path, { sample, language, row_count: rowCount }, null, options);
|
|
28
|
+
}
|
|
29
|
+
export async function getBoundPolygons(groupId, property, data, language) {
|
|
30
|
+
const path = `/v1/choropleth/groups/bind`;
|
|
31
|
+
const body = { group_id: groupId, property, data, language };
|
|
32
|
+
return request(path, body);
|
|
33
|
+
}
|
|
27
34
|
//# sourceMappingURL=choropleth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+D,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKpH,MAAM,CAAC,MAAM,mBAAmB,GAG5B;IACF,WAAW,EAAE,CAAC,IAA8B,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAY;CAC1F,CAAC;AAkEF,MAAM,CAAC,MAAM,2BAA2B,mCACnC,mBAAmB,KACtB,UAAU,EAAE,CAAC,IAAgC,EAAE,EAAE,CAC/C,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAA2B,CAAC,CAAC,CAAC,IAAI,CAAC,GAC3F,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,MAIE,EACF,OAAqC,MAAM;IAE3C,MAAM,QAAQ,GAAG,gCAAgC,CAAC;IAClD,MAAM,KAAK,GAAG,eAAe,2DAC3B,QAAQ,IACL,MAAM,CAAC,YAAY,GACnB,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,GACzC,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,KAAK,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B,EAChB,IAAc,EACd,QAAgB;IAEhB,MAAM,IAAI,GAAG,4BAA4B,CAAC;IAC1C,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAM7D,OAAO,OAAO,CAAqC,IAAI,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC"}
|
package/esm/api/font.d.ts
CHANGED
package/esm/api/font.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/api/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAA4B,MAAM,aAAa,CAAC;AAExI,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/api/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAA4B,MAAM,aAAa,CAAC;AAExI,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,aAAa,CAAC;CACnB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEtE,KAAK,iBAAiB,GAAG;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAKhD,CAAC;AAEF,wBAAsB,QAAQ,CAAC,aAAa,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAWvF"}
|
package/esm/api/font.js
CHANGED
package/esm/api/font.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font.js","sourceRoot":"","sources":["../../src/api/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmF,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"font.js","sourceRoot":"","sources":["../../src/api/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmF,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA8BxI,MAAM,CAAC,MAAM,YAAY,GAA4B;IACnD,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,aAAgC;IAC7D,MAAM,QAAQ,GAAG,kBAAkB,CAAC;IACpC,MAAM,KAAK,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,GAAG,QAAQ,IAAI,KAAK,EAAE,CAAC;IAMpC,OAAO,OAAO,CAAqB,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
package/esm/api/resources.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type ApiOrganisationData, type Organisation } from './organisation.js';
|
|
2
2
|
import { type ApiDimensionSetData, type DimensionSet } from './dimensionSet.js';
|
|
3
3
|
import { type ApiMapstyleSetData, type MapstyleSet } from './mapstyleSet.js';
|
|
4
|
-
import { type ApiFontFamilyData, type FontFamily } from './fontFamily.js';
|
|
5
4
|
import { type ApiDimensionData, type Dimension } from './dimension.js';
|
|
6
5
|
import { type ApiFeatureData } from './feature.js';
|
|
7
6
|
import { type ApiJobTypeData, type JobType } from './jobType.js';
|
|
@@ -11,7 +10,6 @@ import { type ApiSvgSetData, type SvgSet } from './svgSet.js';
|
|
|
11
10
|
import { type ApiLayerData, type Layer } from './layer.js';
|
|
12
11
|
import { type ApiColorData, type Color } from './color.js';
|
|
13
12
|
import { type ApiUserData, type User } from './user.js';
|
|
14
|
-
import { type ApiFontData, type Font } from './font.js';
|
|
15
13
|
import { type ApiCommonData, type ApiError, type ApiSuccess } from '../utils.js';
|
|
16
14
|
export type CustomFeature = 'custom_dpi' | 'disable_company_maps' | 'eps_plus_log' | 'filename_is_job_title' | 'iframe_sandbox_attributes' | 'keep_layer_visibility' | 'no_copyright' | 'only_shared_company_maps' | 'pdf_output' | 'show_frelex_links' | 'svg_output' | 'svg-georef' | 'tiff_output' | 'video_export' | 'v5_video' | 'web_output' | 'web_download' | 'new_single_and_grouped_areas_menu' | 'export_templates' | 'export_video_tracking_data' | 'hosted_svg_output' | 'hosted_png_output' | 'hosted_jpg_output' | 'developer_menu';
|
|
17
15
|
export interface Resources {
|
|
@@ -27,8 +25,6 @@ export interface Resources {
|
|
|
27
25
|
messages: Message[];
|
|
28
26
|
svgSets: SvgSet[];
|
|
29
27
|
layers: Layer[];
|
|
30
|
-
fonts: Font[];
|
|
31
|
-
fontFamilies: FontFamily[];
|
|
32
28
|
}
|
|
33
29
|
type ApiResources = {
|
|
34
30
|
data: {
|
|
@@ -48,8 +44,6 @@ type ApiResources = {
|
|
|
48
44
|
job_types: ApiJobTypeData[];
|
|
49
45
|
svg_sets: ApiSvgSetData[];
|
|
50
46
|
layers: ApiLayerData[];
|
|
51
|
-
fonts: ApiFontData[];
|
|
52
|
-
font_families: ApiFontFamilyData[];
|
|
53
47
|
} & ApiCommonData;
|
|
54
48
|
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
55
49
|
export type ApiResourcesData = Exclude<ApiResources, ApiError>['data'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/api/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAwB,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAwB,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAuB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/api/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAwB,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAwB,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAuB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,KAAK,cAAc,EAAiC,MAAM,cAAc,CAA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CAAC,CAEtD;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAEvD"}
|
package/esm/api/resources.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { organisationRevivers } from './organisation.js';
|
|
2
2
|
import { dimensionSetRevivers } from './dimensionSet.js';
|
|
3
3
|
import { mapstyleSetRevivers } from './mapstyleSet.js';
|
|
4
|
-
import { fontFamilyRevivers } from './fontFamily.js';
|
|
5
4
|
import { dimensionRevivers } from './dimension.js';
|
|
6
5
|
import { featureRevivers } from './feature.js';
|
|
7
6
|
import { jobTypeRevivers } from './jobType.js';
|
|
@@ -11,10 +10,9 @@ import { svgSetRevivers } from './svgSet.js';
|
|
|
11
10
|
import { layerRevivers } from './layer.js';
|
|
12
11
|
import { colorRevivers } from './color.js';
|
|
13
12
|
import { userRevivers } from './user.js';
|
|
14
|
-
import { fontRevivers } from './font.js';
|
|
15
13
|
import { getContext, myUser, processData, request, } from '../utils.js';
|
|
16
14
|
export async function loadResources() {
|
|
17
|
-
var _a, _b, _c, _d
|
|
15
|
+
var _a, _b, _c, _d;
|
|
18
16
|
const path = `/v1/users/${myUser}/resources`;
|
|
19
17
|
const raw = await request(path);
|
|
20
18
|
const { user, organisation, messages: { read, unread } } = raw;
|
|
@@ -39,8 +37,6 @@ export async function loadResources() {
|
|
|
39
37
|
messages: allMessages,
|
|
40
38
|
layers: ((_b = (_a = raw.layers) === null || _a === void 0 ? void 0 : _a.map(processData, getContext(layerRevivers))) !== null && _b !== void 0 ? _b : []),
|
|
41
39
|
svgSets: ((_d = (_c = raw.svgSets) === null || _c === void 0 ? void 0 : _c.map(processData, getContext(svgSetRevivers))) !== null && _d !== void 0 ? _d : []),
|
|
42
|
-
fonts: ((_f = (_e = raw.fonts) === null || _e === void 0 ? void 0 : _e.map(processData, getContext(fontRevivers))) !== null && _f !== void 0 ? _f : []),
|
|
43
|
-
fontFamilies: ((_h = (_g = raw.fontFamilies) === null || _g === void 0 ? void 0 : _g.map(processData, getContext(fontFamilyRevivers))) !== null && _h !== void 0 ? _h : []),
|
|
44
40
|
};
|
|
45
41
|
}
|
|
46
42
|
export async function getCountries() {
|
package/esm/api/resources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/api/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAA+C,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAA6C,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/api/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAA+C,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAA6C,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAyC,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAqC,eAAe,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAqC,eAAe,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAqC,eAAe,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAA0C,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAmC,cAAc,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAiC,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAiC,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAA+B,YAAY,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,EAML,UAAU,EACV,MAAM,EACN,WAAW,EACX,OAAO,GACR,MAAM,aAAa,CAAC;AAuErB,MAAM,CAAC,KAAK,UAAU,aAAa;;IACjC,MAAM,IAA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
1
|
-
{
|
|
2
|
-
"name": "@mapcreator/api",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
4
|
-
"description": "Mapcreator JavaScript API",
|
|
5
|
-
"license": "BSD-3-Clause",
|
|
6
|
-
"main": "./cjs/index.js",
|
|
7
|
-
"types": "./cjs/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./esm/index.d.ts",
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./oauth": {
|
|
15
|
-
"types": "./esm/oauth.d.ts",
|
|
16
|
-
"import": "./esm/oauth.js",
|
|
17
|
-
"require": "./cjs/oauth.js"
|
|
18
|
-
},
|
|
19
|
-
"./oauth.js": {
|
|
20
|
-
"types": "./esm/oauth.d.ts",
|
|
21
|
-
"import": "./esm/oauth.js",
|
|
22
|
-
"require": "./cjs/oauth.js"
|
|
23
|
-
},
|
|
24
|
-
"./utils": {
|
|
25
|
-
"types": "./esm/utils.d.ts",
|
|
26
|
-
"import": "./esm/utils.js",
|
|
27
|
-
"require": "./cjs/utils.js"
|
|
28
|
-
},
|
|
29
|
-
"./utils.js": {
|
|
30
|
-
"types": "./esm/utils.d.ts",
|
|
31
|
-
"import": "./esm/utils.js",
|
|
32
|
-
"require": "./cjs/utils.js"
|
|
33
|
-
},
|
|
34
|
-
"./package.json": "./package.json",
|
|
35
|
-
"./*": {
|
|
36
|
-
"types": "./esm/api/*.d.ts",
|
|
37
|
-
"import": "./esm/api/*.js",
|
|
38
|
-
"require": "./cjs/api/*.js"
|
|
39
|
-
},
|
|
40
|
-
"./*.js": {
|
|
41
|
-
"types": "./esm/api/*.d.ts",
|
|
42
|
-
"import": "./esm/api/*.js",
|
|
43
|
-
"require": "./cjs/api/*.js"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "tsc --outDir esm && tsc -m commonjs --outDir cjs",
|
|
48
|
-
"clean": "npx rimraf esm/ cjs/",
|
|
49
|
-
"lint": "eslint --ext .ts src",
|
|
50
|
-
"prepublishOnly": "npm run lint && npm run clean && npm run build",
|
|
51
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
52
|
-
},
|
|
53
|
-
"repository": {
|
|
54
|
-
"type": "git",
|
|
55
|
-
"url": "git+https://gitlab.com/mapcreator/api-wrapper.git"
|
|
56
|
-
},
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"registry": "https://registry.npmjs.org/"
|
|
59
|
-
},
|
|
60
|
-
"files": [
|
|
61
|
-
"cjs",
|
|
62
|
-
"esm",
|
|
63
|
-
"src"
|
|
64
|
-
],
|
|
65
|
-
"bugs": {
|
|
66
|
-
"url": "https://gitlab.com/mapcreator/api-wrapper/issues"
|
|
67
|
-
},
|
|
68
|
-
"homepage": "https://gitlab.com/mapcreator/api-wrapper#readme",
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@types/geojson": "^7946.0.14",
|
|
71
|
-
"type-fest": "^4.10"
|
|
72
|
-
},
|
|
73
|
-
"devDependencies": {
|
|
74
|
-
"@stylistic/eslint-plugin": "~1.5",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "~6.15",
|
|
76
|
-
"@typescript-eslint/parser": "~6.15",
|
|
77
|
-
"eslint": "~8.57",
|
|
78
|
-
"typescript": "~5.8.3"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mapcreator/api",
|
|
3
|
+
"version": "5.0.0-alpha.84",
|
|
4
|
+
"description": "Mapcreator JavaScript API",
|
|
5
|
+
"license": "BSD-3-Clause",
|
|
6
|
+
"main": "./cjs/index.js",
|
|
7
|
+
"types": "./cjs/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./esm/index.d.ts",
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./oauth": {
|
|
15
|
+
"types": "./esm/oauth.d.ts",
|
|
16
|
+
"import": "./esm/oauth.js",
|
|
17
|
+
"require": "./cjs/oauth.js"
|
|
18
|
+
},
|
|
19
|
+
"./oauth.js": {
|
|
20
|
+
"types": "./esm/oauth.d.ts",
|
|
21
|
+
"import": "./esm/oauth.js",
|
|
22
|
+
"require": "./cjs/oauth.js"
|
|
23
|
+
},
|
|
24
|
+
"./utils": {
|
|
25
|
+
"types": "./esm/utils.d.ts",
|
|
26
|
+
"import": "./esm/utils.js",
|
|
27
|
+
"require": "./cjs/utils.js"
|
|
28
|
+
},
|
|
29
|
+
"./utils.js": {
|
|
30
|
+
"types": "./esm/utils.d.ts",
|
|
31
|
+
"import": "./esm/utils.js",
|
|
32
|
+
"require": "./cjs/utils.js"
|
|
33
|
+
},
|
|
34
|
+
"./package.json": "./package.json",
|
|
35
|
+
"./*": {
|
|
36
|
+
"types": "./esm/api/*.d.ts",
|
|
37
|
+
"import": "./esm/api/*.js",
|
|
38
|
+
"require": "./cjs/api/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./*.js": {
|
|
41
|
+
"types": "./esm/api/*.d.ts",
|
|
42
|
+
"import": "./esm/api/*.js",
|
|
43
|
+
"require": "./cjs/api/*.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc --outDir esm && tsc -m commonjs --outDir cjs",
|
|
48
|
+
"clean": "npx rimraf esm/ cjs/",
|
|
49
|
+
"lint": "eslint --ext .ts src",
|
|
50
|
+
"prepublishOnly": "npm run lint && npm run clean && npm run build",
|
|
51
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://gitlab.com/mapcreator/api-wrapper.git"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org/"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"cjs",
|
|
62
|
+
"esm",
|
|
63
|
+
"src"
|
|
64
|
+
],
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://gitlab.com/mapcreator/api-wrapper/issues"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://gitlab.com/mapcreator/api-wrapper#readme",
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@types/geojson": "^7946.0.14",
|
|
71
|
+
"type-fest": "^4.10"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@stylistic/eslint-plugin": "~1.5",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "~6.15",
|
|
76
|
+
"@typescript-eslint/parser": "~6.15",
|
|
77
|
+
"eslint": "~8.57",
|
|
78
|
+
"typescript": "~5.8.3"
|
|
79
|
+
}
|
|
80
|
+
}
|