atriusmaps-node-sdk 3.3.1161 → 3.3.1162

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.1161";
5
+ var version = "3.3.1162";
6
6
  var pkg = {
7
7
  version: version};
8
8
 
@@ -1 +1 @@
1
- var a="3.3.1161",e={version:a};export{e as default,a as version};
1
+ var a="3.3.1162",e={version:a};export{e as default,a as version};
@@ -181,6 +181,19 @@ export type BusAuthState = {
181
181
  status: 'error';
182
182
  reason: BusAuthErrorReason;
183
183
  };
184
+ export type BusAuthFormErrorCode = 'invalidCredentials' | 'invalidCode' | 'invalidPassword' | 'rateLimited' | 'unsupportedChallenge' | 'unavailable';
185
+ export type BusAuthFormResult = {
186
+ ok: true;
187
+ } | {
188
+ ok: false;
189
+ error: BusAuthFormErrorCode;
190
+ };
191
+ export type BusAuthCredentialController = {
192
+ signInWithRedirect: () => Promise<BusAuthFormResult>;
193
+ signIn: (email: string, password: string) => Promise<BusAuthFormResult>;
194
+ resetPassword: (email: string) => Promise<BusAuthFormResult>;
195
+ confirmNewPassword: (email: string, code: string, newPassword: string) => Promise<BusAuthFormResult>;
196
+ };
184
197
  export type BusVenueLoadFailureReason = 'misconfigured' | 'sessionExpired' | 'accessDenied' | 'unavailable' | 'linkExpired' | 'serviceError';
185
198
  export interface BusEventMap {
186
199
  'map/updateRoutePreviewInsets': BusEventDefinition<{
@@ -426,6 +439,7 @@ export interface BusEventMap {
426
439
  'auth/stateChanged': BusEventDefinition<BusAuthState, unknown>;
427
440
  'auth/signIn': BusEventDefinition<undefined, unknown>;
428
441
  'auth/signOut': BusEventDefinition<undefined, unknown>;
442
+ 'auth/getCredentialController': BusEventDefinition<undefined, BusAuthCredentialController>;
429
443
  'auth/getAccessToken': BusEventDefinition<{
430
444
  forceRefresh?: boolean;
431
445
  } | undefined, string | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atriusmaps-node-sdk",
3
- "version": "3.3.1161",
3
+ "version": "3.3.1162",
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",