@gooddata/api-client-tiger 11.28.0-alpha.1 → 11.28.0-alpha.10
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/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/api-client-tiger.d.ts +41 -10
- package/esm/endpoints/locationStyle/index.d.ts +1 -1
- package/esm/endpoints/locationStyle/index.d.ts.map +1 -1
- package/esm/endpoints/locationStyle/index.js +1 -1
- package/esm/endpoints/locationStyle/index.js.map +1 -1
- package/esm/gd-tiger-model/TigerTypes.d.ts +1 -1
- package/esm/gd-tiger-model/TigerTypes.d.ts.map +1 -1
- package/esm/gd-tiger-model/typeGuards.d.ts.map +1 -1
- package/esm/gd-tiger-model/typeGuards.js +9 -1
- package/esm/gd-tiger-model/typeGuards.js.map +1 -1
- package/esm/gd-tiger-model/typeGuards.test.js +22 -1
- package/esm/gd-tiger-model/typeGuards.test.js.map +1 -1
- package/esm/generated/afm-rest-api/index.js +1 -1
- package/esm/generated/afm-rest-api/index.js.map +1 -1
- package/esm/generated/auth-json-api/index.js +1 -1
- package/esm/generated/auth-json-api/index.js.map +1 -1
- package/esm/generated/automation-json-api/index.js +1 -1
- package/esm/generated/automation-json-api/index.js.map +1 -1
- package/esm/generated/export-json-api/index.js +1 -1
- package/esm/generated/export-json-api/index.js.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +8 -0
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/index.js +1 -1
- package/esm/generated/metadata-json-api/index.js.map +1 -1
- package/esm/generated/result-json-api/index.js +1 -1
- package/esm/generated/result-json-api/index.js.map +1 -1
- package/esm/generated/scan-json-api/index.js +1 -1
- package/esm/generated/scan-json-api/index.js.map +1 -1
- package/esm/locationStyle.d.ts +38 -13
- package/esm/locationStyle.d.ts.map +1 -1
- package/esm/locationStyle.js +21 -7
- package/esm/locationStyle.js.map +1 -1
- package/package.json +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/metadata-json-api/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/metadata-json-api/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,oDAAoD;AACpD;;;;;;;;;;GAUG;AAGH,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/result-json-api/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/result-json-api/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,oDAAoD;AACpD;;;;;;;;;;GAUG;AAGH,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/scan-json-api/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/scan-json-api/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,oDAAoD;AACpD;;;;;;;;;;GAUG;AAGH,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
|
package/esm/locationStyle.d.ts
CHANGED
|
@@ -4,17 +4,26 @@ import { type AxiosInstance } from "axios";
|
|
|
4
4
|
*/
|
|
5
5
|
export type LocationStyleDocument = Record<string, unknown>;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* An item in the list of available map styles returned by the styles endpoint.
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface ILocationStyleListItem {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Unique style identifier (e.g. `standard-light`, `satellite`).
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
id: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Human-readable title (e.g. `Standard (Light)`).
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* URL to fetch the full MapLibre style document for this style.
|
|
20
|
+
*/
|
|
21
|
+
link: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Query parameters for the location style endpoint.
|
|
25
|
+
*/
|
|
26
|
+
export interface ILocationStyleParams {
|
|
18
27
|
/**
|
|
19
28
|
* Two-letter ISO 639-1 language code (e.g. `en`, `de`, `fr`).
|
|
20
29
|
* When provided, map labels are returned in the requested language.
|
|
@@ -22,23 +31,39 @@ export interface ILocationStyleParams {
|
|
|
22
31
|
language?: string;
|
|
23
32
|
}
|
|
24
33
|
/**
|
|
25
|
-
* Interface describing available operations for location service style
|
|
34
|
+
* Interface describing available operations for location service style endpoints.
|
|
26
35
|
*/
|
|
27
36
|
export type LocationStyleApiInterface = {
|
|
28
37
|
/**
|
|
29
|
-
* Loads the MapLibre style document
|
|
38
|
+
* Loads the default MapLibre style document (no specific basemap selected).
|
|
30
39
|
*/
|
|
31
40
|
getDefaultStyle(params?: ILocationStyleParams): Promise<LocationStyleDocument>;
|
|
41
|
+
/**
|
|
42
|
+
* Lists all available map styles.
|
|
43
|
+
*/
|
|
44
|
+
getStyles(): Promise<ILocationStyleListItem[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Loads the MapLibre style document for a specific style.
|
|
47
|
+
*
|
|
48
|
+
* @param styleId - Style identifier (e.g. `standard-light`).
|
|
49
|
+
* @param params - Optional query parameters.
|
|
50
|
+
*/
|
|
51
|
+
getStyleById(styleId: string, params?: ILocationStyleParams): Promise<LocationStyleDocument>;
|
|
32
52
|
};
|
|
33
53
|
/**
|
|
34
|
-
* Factory producing a typed client for interacting with the location style
|
|
54
|
+
* Factory producing a typed client for interacting with the location style endpoints.
|
|
35
55
|
*/
|
|
36
56
|
export declare const tigerLocationStyleClientFactory: (axios: AxiosInstance) => LocationStyleApiInterface;
|
|
37
57
|
/**
|
|
38
|
-
* Low-level request that retrieves the MapLibre style configuration.
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Passes `basemap` and `colorScheme` as query parameters when provided.
|
|
58
|
+
* Low-level request that retrieves the default MapLibre style configuration.
|
|
42
59
|
*/
|
|
43
60
|
export declare function LocationStyleApi_GetDefaultStyle(axios: AxiosInstance, params?: ILocationStyleParams): Promise<LocationStyleDocument>;
|
|
61
|
+
/**
|
|
62
|
+
* Low-level request that lists all available map styles.
|
|
63
|
+
*/
|
|
64
|
+
export declare function LocationStyleApi_GetStyles(axios: AxiosInstance): Promise<ILocationStyleListItem[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Low-level request that retrieves the MapLibre style for a specific style ID.
|
|
67
|
+
*/
|
|
68
|
+
export declare function LocationStyleApi_GetStyleById(axios: AxiosInstance, styleId: string, params?: ILocationStyleParams): Promise<LocationStyleDocument>;
|
|
44
69
|
//# sourceMappingURL=locationStyle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationStyle.d.ts","sourceRoot":"","sources":["../src/locationStyle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"locationStyle.d.ts","sourceRoot":"","sources":["../src/locationStyle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OA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Corporation
|
|
2
2
|
/**
|
|
3
|
-
* Factory producing a typed client for interacting with the location style
|
|
3
|
+
* Factory producing a typed client for interacting with the location style endpoints.
|
|
4
4
|
*/
|
|
5
5
|
export const tigerLocationStyleClientFactory = (axios) => {
|
|
6
6
|
return {
|
|
7
7
|
getDefaultStyle: async (params) => LocationStyleApi_GetDefaultStyle(axios, params),
|
|
8
|
+
getStyles: async () => LocationStyleApi_GetStyles(axios),
|
|
9
|
+
getStyleById: async (styleId, params) => LocationStyleApi_GetStyleById(axios, styleId, params),
|
|
8
10
|
};
|
|
9
11
|
};
|
|
10
12
|
/**
|
|
11
|
-
* Low-level request that retrieves the MapLibre style configuration.
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* Passes `basemap` and `colorScheme` as query parameters when provided.
|
|
13
|
+
* Low-level request that retrieves the default MapLibre style configuration.
|
|
15
14
|
*/
|
|
16
15
|
export async function LocationStyleApi_GetDefaultStyle(axios, params) {
|
|
17
16
|
const queryParams = {
|
|
18
|
-
...(params?.basemap === undefined ? {} : { basemap: params.basemap }),
|
|
19
|
-
...(params?.colorScheme === undefined ? {} : { colorScheme: params.colorScheme }),
|
|
20
17
|
...(params?.language === undefined ? {} : { language: params.language }),
|
|
21
18
|
};
|
|
22
19
|
const response = await axios.get("/api/v1/location/style", {
|
|
@@ -24,4 +21,21 @@ export async function LocationStyleApi_GetDefaultStyle(axios, params) {
|
|
|
24
21
|
});
|
|
25
22
|
return response.data;
|
|
26
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Low-level request that lists all available map styles.
|
|
26
|
+
*/
|
|
27
|
+
export async function LocationStyleApi_GetStyles(axios) {
|
|
28
|
+
const response = await axios.get("/api/v1/location/styles");
|
|
29
|
+
return response.data;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Low-level request that retrieves the MapLibre style for a specific style ID.
|
|
33
|
+
*/
|
|
34
|
+
export async function LocationStyleApi_GetStyleById(axios, styleId, params) {
|
|
35
|
+
const queryParams = {
|
|
36
|
+
...(params?.language === undefined ? {} : { language: params.language }),
|
|
37
|
+
};
|
|
38
|
+
const response = await axios.get(`/api/v1/location/styles/${encodeURIComponent(styleId)}`, { params: queryParams });
|
|
39
|
+
return response.data;
|
|
40
|
+
}
|
|
27
41
|
//# sourceMappingURL=locationStyle.js.map
|
package/esm/locationStyle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationStyle.js","sourceRoot":"","sources":["../src/locationStyle.ts"],"names":[],"mappings":"AAAA,qCAAqC;
|
|
1
|
+
{"version":3,"file":"locationStyle.js","sourceRoot":"","sources":["../src/locationStyle.ts"],"names":[],"mappings":"AAAA,qCAAqC;AA+DrC;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,KAAoB,EAA6B,EAAE,CAAC;IAChG,OAAO;QACH,eAAe,EAAE,KAAK,EAAE,MAAO,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,EAAE,MAAM,CAAC;QACnF,SAAS,EAAE,KAAK,IAAI,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC;QACxD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,MAAO,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;KAClG,CAAC;AAAA,CACL,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAClD,KAAoB,EACpB,MAA6B,EACC;IAC9B,MAAM,WAAW,GAAG;QAChB,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3E,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAwB,wBAAwB,EAAE;QAC9E,MAAM,EAAE,WAAW;KACtB,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,IAAI,CAAC;AAAA,CACxB;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,KAAoB,EAAqC;IACtG,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAA2B,yBAAyB,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC,IAAI,CAAC;AAAA,CACxB;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAC/C,KAAoB,EACpB,OAAe,EACf,MAA6B,EACC;IAC9B,MAAM,WAAW,GAAG;QAChB,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3E,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAC5B,2BAA2B,kBAAkB,CAAC,OAAO,CAAC,EAAE,EACxD,EAAE,MAAM,EAAE,WAAW,EAAE,CAC1B,CAAC;IACF,OAAO,QAAQ,CAAC,IAAI,CAAC;AAAA,CACxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/api-client-tiger",
|
|
3
|
-
"version": "11.28.0-alpha.
|
|
3
|
+
"version": "11.28.0-alpha.10",
|
|
4
4
|
"description": "API Client for GoodData Cloud and GoodData.CN",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"axios-cache-interceptor": "^1.8.0",
|
|
47
47
|
"lodash-es": "^4.17.23",
|
|
48
48
|
"tslib": "2.8.1",
|
|
49
|
-
"@gooddata/sdk-model": "11.28.0-alpha.
|
|
49
|
+
"@gooddata/sdk-model": "11.28.0-alpha.10"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -75,9 +75,8 @@
|
|
|
75
75
|
"oxlint-tsgolint": "0.11.4",
|
|
76
76
|
"typescript": "5.9.3",
|
|
77
77
|
"vitest": "4.1.0",
|
|
78
|
-
"@gooddata/
|
|
79
|
-
"@gooddata/
|
|
80
|
-
"@gooddata/reference-workspace": "11.28.0-alpha.1"
|
|
78
|
+
"@gooddata/oxlint-config": "11.28.0-alpha.10",
|
|
79
|
+
"@gooddata/eslint-config": "11.28.0-alpha.10"
|
|
81
80
|
},
|
|
82
81
|
"scripts": {
|
|
83
82
|
"_phase:build": "npm run build",
|