@laserfiche/types-lf-ui-components 14.1.3 → 14.1.4--preview-5405249657
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/index.d.ts +43 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -141,6 +141,14 @@ declare interface FieldValues {
|
|
|
141
141
|
[fieldId: number]: FieldValue;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Interface defined by Laserfiche API providing
|
|
146
|
+
* return type of beforeFetchRequestAsync
|
|
147
|
+
*/
|
|
148
|
+
export declare interface LfBeforeFetchResult {
|
|
149
|
+
regionalDomain: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
144
152
|
export declare interface LfBreadcrumb {
|
|
145
153
|
name: string;
|
|
146
154
|
id: string;
|
|
@@ -501,6 +509,27 @@ export declare interface LfFieldTemplateProviders {
|
|
|
501
509
|
|
|
502
510
|
declare type LfFieldValue = string;
|
|
503
511
|
|
|
512
|
+
/**
|
|
513
|
+
* This object handles obtaining the accessToken and
|
|
514
|
+
* setting the authorization header
|
|
515
|
+
*/
|
|
516
|
+
export declare interface LfHttpRequestHandler {
|
|
517
|
+
/**
|
|
518
|
+
* Called to prepare the request to the API service.
|
|
519
|
+
* @param url The HTTP url
|
|
520
|
+
* @param request The HTTP request
|
|
521
|
+
*/
|
|
522
|
+
beforeFetchRequestAsync: (url: string, request: RequestInit) => Promise<LfBeforeFetchResult>;
|
|
523
|
+
/**
|
|
524
|
+
* Called to handle the response from the API service.
|
|
525
|
+
* @param url The HTTP url
|
|
526
|
+
* @param response The HTTP response
|
|
527
|
+
* @param request The HTTP request
|
|
528
|
+
* @returns true if the request should be retried.
|
|
529
|
+
*/
|
|
530
|
+
afterFetchResponseAsync: (url: string, response: Response, request: RequestInit) => Promise<boolean>;
|
|
531
|
+
}
|
|
532
|
+
|
|
504
533
|
export declare class LfLoginComponent {
|
|
505
534
|
|
|
506
535
|
|
|
@@ -508,6 +537,12 @@ export declare class LfLoginComponent {
|
|
|
508
537
|
|
|
509
538
|
|
|
510
539
|
mode: LoginMode;
|
|
540
|
+
/**
|
|
541
|
+
* @return {LfHttpRequestHandler}
|
|
542
|
+
* Returns the LfHttpRequestHandler that can be used
|
|
543
|
+
* to instantiate a repository API client.
|
|
544
|
+
*/
|
|
545
|
+
get authorizationRequestHandler(): LfHttpRequestHandler;
|
|
511
546
|
|
|
512
547
|
|
|
513
548
|
|
|
@@ -538,6 +573,12 @@ export declare class LfLoginComponent {
|
|
|
538
573
|
logoutInitiated: CustomEvent<string>;
|
|
539
574
|
loginCompleted: CustomEvent<void>;
|
|
540
575
|
logoutCompleted: CustomEvent<void | AbortedLoginError>;
|
|
576
|
+
/**
|
|
577
|
+
* Refreshes and returns the access token
|
|
578
|
+
* @param initiateLoginFlowOnRefreshFailure
|
|
579
|
+
* Indicates whether an attempt should be made to login using OAuth flow upon encountering an inability to refresh the access token.
|
|
580
|
+
* @returns {Promise<string | undefined>}
|
|
581
|
+
*/
|
|
541
582
|
refreshTokenAsync: (initiateLoginFlowOnRefreshFailure: boolean) => Promise<string | undefined>;
|
|
542
583
|
initLoginFlowAsync: () => Promise<string | undefined>;
|
|
543
584
|
handleRedirectURICallbackAsync: (url: string) => Promise<void>;
|
|
@@ -567,6 +608,8 @@ export declare class LfLoginComponent {
|
|
|
567
608
|
|
|
568
609
|
|
|
569
610
|
|
|
611
|
+
|
|
612
|
+
|
|
570
613
|
|
|
571
614
|
|
|
572
615
|
|
|
@@ -745,7 +788,6 @@ export declare class LfRepositoryBrowserComponent {
|
|
|
745
788
|
|
|
746
789
|
|
|
747
790
|
|
|
748
|
-
|
|
749
791
|
|
|
750
792
|
|
|
751
793
|
}
|