@mapxus/mapxus-map-jp 9.1.0 → 9.3.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/es/style.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module "@mapxus-private/mapxus-map/style" {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,102 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export declare const VERSION: string;
4
+ export declare const OFFSET: number;
5
+ export declare const PAGE: number;
6
+ export declare const ERRORS: readonly [
7
+ "unauthorized",
8
+ "initError"
9
+ ];
10
+ declare enum PresetLanguage {
11
+ ENGLISH = "en",
12
+ CHINESE_SIMPLIFIED = "zh-Hans",
13
+ CHINESE_TRADITIONAL = "zh-Hant",
14
+ CHINESE_TRADITIONAL_TW = "zh-Hant-TW",
15
+ JAPANESE = "ja",
16
+ KOREAN = "ko",
17
+ FILIPINO = "fil",
18
+ INDONESIAN = "id",
19
+ PORTUGUESE = "pt",
20
+ THAI = "th",
21
+ VIETNAMESE = "vi",
22
+ ARABIC = "ar"
23
+ }
24
+ /**
25
+ * Convert browser language to preset language
26
+ * @param language {string} window.navigator.language
27
+ */
28
+ export declare function convertBrowserLangToPresetLang(language: string): PresetLanguage | null;
29
+ export interface IPlatformCommon {
30
+ sdkVersion: string;
31
+ identifier: string;
32
+ }
33
+ export interface IPlatformIos extends IPlatformCommon {
34
+ bundleId: string;
35
+ }
36
+ export interface IPlatformAndroid extends IPlatformCommon {
37
+ sha1: string;
38
+ packageName: string;
39
+ }
40
+ export type TPlatform = IPlatformIos | IPlatformAndroid;
41
+ /**
42
+ * Get access token
43
+ * @param appId
44
+ * @param secret
45
+ * @param platform get accessToken of the specific platform(ios or android), optional
46
+ * @param origin the reference of appId, optional
47
+ * @returns {accessToken: string; expiresIn: number;} expiresIn means the valid time of accessToken
48
+ */
49
+ export declare function getAccessToken(appId: string, secret: string, platform?: TPlatform, origin?: string): Promise<{
50
+ accessToken: string;
51
+ expiredTime: number;
52
+ }>;
53
+ export interface ITokenResponse {
54
+ accessToken: string;
55
+ /** timestamp */
56
+ expiredTime: number;
57
+ identifier?: string;
58
+ sdkVersion?: string;
59
+ }
60
+ export type TAccessTokenGetter = () => Promise<ITokenResponse>;
61
+ export type InputProduct = "UI_SDK" | "ANYWHERE";
62
+ /**
63
+ * @private
64
+ * This method is internal and should not be exposed in the documentation.
65
+ */
66
+ export declare const __internal: {
67
+ [x: symbol]: (names: InputProduct[]) => void;
68
+ };
69
+ export interface IMapxusUtils {
70
+ convertBrowserLangToPresetLang: (lang: string) => PresetLanguage | null;
71
+ getAccessToken: (appId: string, secret: string, platform?: TPlatform, origin?: string) => Promise<{
72
+ accessToken: string;
73
+ expiredTime: number;
74
+ }>;
75
+ getIdentifier: () => Promise<string>;
76
+ setGetTokenAsync: (fn: TAccessTokenGetter) => void;
77
+ setupTokenManager: () => Promise<void>;
78
+ VERSION: string;
79
+ OFFSET: number;
80
+ PAGE: number;
81
+ ERRORS: readonly [
82
+ "unauthorized",
83
+ "initError"
84
+ ];
85
+ ASSISTANT_LAYER_INDOOR_FLOORS: string;
86
+ ASSISTANT_LAYER_SHARED_FLOORS: string;
87
+ __internal: {
88
+ [x: symbol]: (names: InputProduct[]) => void;
89
+ };
90
+ }
91
+ export declare const ASSISTANT_LAYER_INDOOR_FLOORS = "reserve_mapxus-level-fill";
92
+ export declare const ASSISTANT_LAYER_SHARED_FLOORS = "reserve_mapxus-shared-level-fill";
93
+ export declare function getIdentifier(): Promise<string>;
94
+ export declare function setGetTokenAsync(fn: TAccessTokenGetter): void;
95
+ export declare function setupTokenManager(): Promise<void>;
96
+ declare const mapxusUtils: IMapxusUtils;
97
+
98
+ export {
99
+ mapxusUtils as default,
100
+ };
101
+
102
+ export {};