atriusmaps-node-sdk 3.3.1087 → 3.3.1088

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "3.3.1087";
5
+ var version = "3.3.1088";
6
6
  var pkg = {
7
7
  version: version};
8
8
 
@@ -1 +1 @@
1
- var a="3.3.1087",e={version:a};export{e as default,a as version};
1
+ var a="3.3.1088",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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atriusmaps-node-sdk",
3
- "version": "3.3.1087",
3
+ "version": "3.3.1088",
4
4
  "description": "This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information",
5
5
  "keywords": [
6
6
  "acuitybrands",