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.
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.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