atriusmaps-node-sdk 3.3.1087 → 3.3.1089
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/cjs/package.json.js
CHANGED
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a="3.3.
|
|
1
|
+
var a="3.3.1089",e={version:a};export{e as default,a as version};
|
|
@@ -166,6 +166,22 @@ export type BusPoiDynamicDataPayload = {
|
|
|
166
166
|
plugin: string;
|
|
167
167
|
idValuesMap: Record<string, unknown>;
|
|
168
168
|
};
|
|
169
|
+
export type BusAuthErrorReason = 'callbackFailed' | 'signOutFailed' | 'unavailable' | 'misconfigured';
|
|
170
|
+
export type BusAuthState = {
|
|
171
|
+
status: 'initializing';
|
|
172
|
+
} | {
|
|
173
|
+
status: 'unauthenticated';
|
|
174
|
+
} | {
|
|
175
|
+
status: 'redirecting';
|
|
176
|
+
} | {
|
|
177
|
+
status: 'authenticated';
|
|
178
|
+
} | {
|
|
179
|
+
status: 'signingOut';
|
|
180
|
+
} | {
|
|
181
|
+
status: 'error';
|
|
182
|
+
reason: BusAuthErrorReason;
|
|
183
|
+
};
|
|
184
|
+
export type BusVenueLoadFailureReason = 'misconfigured' | 'sessionExpired' | 'accessDenied' | 'unavailable' | 'linkExpired' | 'serviceError';
|
|
169
185
|
export interface BusEventMap {
|
|
170
186
|
'map/updateRoutePreviewInsets': BusEventDefinition<{
|
|
171
187
|
insets: PreviewInsets;
|
|
@@ -405,6 +421,16 @@ export interface BusEventMap {
|
|
|
405
421
|
'search/getDefaultSearchPois': BusEventDefinition<{
|
|
406
422
|
limit?: number;
|
|
407
423
|
}, BusPoi[]>;
|
|
424
|
+
'auth/getState': BusEventDefinition<undefined, BusAuthState>;
|
|
425
|
+
'auth/stateChanged': BusEventDefinition<BusAuthState, unknown>;
|
|
426
|
+
'auth/signIn': BusEventDefinition<undefined, unknown>;
|
|
427
|
+
'auth/signOut': BusEventDefinition<undefined, unknown>;
|
|
428
|
+
'auth/getAccessToken': BusEventDefinition<{
|
|
429
|
+
forceRefresh?: boolean;
|
|
430
|
+
} | undefined, string | null>;
|
|
431
|
+
'venueData/loadFailed': BusEventDefinition<{
|
|
432
|
+
reason: BusVenueLoadFailureReason;
|
|
433
|
+
}, unknown>;
|
|
408
434
|
}
|
|
409
435
|
export type KnownBusEventName = Extract<keyof BusEventMap, string>;
|
|
410
436
|
export type BusEventPayload<TEvent extends KnownBusEventName> = BusEventMap[TEvent] extends BusEventDefinition<infer TPayload, unknown> ? TPayload : undefined;
|
package/package.json
CHANGED