@ethlete/query 5.8.1 → 5.9.0

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.
@@ -1,6 +1,6 @@
1
1
  import { AuthProvider, AuthProviderBasicConfig } from './auth-provider.types';
2
2
  export declare class BasicAuthProvider implements AuthProvider {
3
- private _config;
3
+ _config: AuthProviderBasicConfig;
4
4
  get header(): {
5
5
  Authorization: string;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import { AnyQueryCreator, ConstructQuery } from '../query-creator';
2
2
  import { AuthProvider, AuthProviderBearerConfig, TokenResponse } from './auth-provider.types';
3
3
  export declare class BearerAuthProvider<T extends AnyQueryCreator> implements AuthProvider {
4
- private _config;
4
+ _config: AuthProviderBearerConfig<T>;
5
5
  private readonly _destroy$;
6
6
  private readonly _currentRefreshQuery$;
7
7
  private readonly _tokens$;
@@ -1,6 +1,6 @@
1
1
  import { AuthProvider, AuthProviderCustomHeaderConfig } from './auth-provider.types';
2
2
  export declare class CustomHeaderAuthProvider implements AuthProvider {
3
- private _config;
3
+ _config: AuthProviderCustomHeaderConfig;
4
4
  get header(): {
5
5
  [x: string]: string;
6
6
  };
@@ -1,12 +1,14 @@
1
1
  import { TrackByFunction } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { BehaviorSubject } from 'rxjs';
4
+ import { BasicAuthProvider, CustomHeaderAuthProvider } from '../../../auth';
4
5
  import { EntityStore } from '../../../entity';
5
6
  import { AnyQuery } from '../../../query';
6
7
  import { QueryClientDevtoolsOptions } from '../../utils';
7
8
  import * as i0 from "@angular/core";
8
9
  type QueryDevtoolsSnapLayout = 'full' | 'left' | 'right' | 'bottom' | 'top';
9
10
  type QueryListMode = 'live' | 'history';
11
+ type QueryViewMode = 'query' | 'authProvider';
10
12
  export declare class QueryDevtoolsComponent {
11
13
  private readonly _cdr;
12
14
  protected readonly _destroy$: import("rxjs").Observable<boolean>;
@@ -15,6 +17,7 @@ export declare class QueryDevtoolsComponent {
15
17
  protected readonly isTranslucent: import("@angular/core").WritableSignal<boolean>;
16
18
  protected readonly snapLayout: import("@angular/core").WritableSignal<QueryDevtoolsSnapLayout>;
17
19
  protected readonly queryListMode: import("@angular/core").WritableSignal<QueryListMode>;
20
+ protected readonly viewMode: import("@angular/core").WritableSignal<QueryViewMode>;
18
21
  protected showResponse: import("@angular/core").WritableSignal<boolean>;
19
22
  protected showRawResponse: import("@angular/core").WritableSignal<boolean>;
20
23
  protected showQueryConfig: import("@angular/core").WritableSignal<boolean>;
@@ -57,6 +60,76 @@ export declare class QueryDevtoolsComponent {
57
60
  enableSmartPolling: boolean | undefined;
58
61
  hasEntityStore: boolean;
59
62
  } | null>;
63
+ protected readonly authProvider: import("@angular/core").Signal<import("../../../auth").AuthProvider | null | undefined>;
64
+ protected readonly authProviderDetails: import("@angular/core").Signal<{
65
+ readonly type: "CustomHeaderAuthProvider";
66
+ readonly header: () => {
67
+ [x: string]: string;
68
+ };
69
+ readonly provider: CustomHeaderAuthProvider;
70
+ readonly config: {
71
+ readonly name: string;
72
+ readonly value: string;
73
+ readonly username?: undefined;
74
+ readonly password?: undefined;
75
+ readonly token?: undefined;
76
+ readonly refreshConfig?: undefined;
77
+ };
78
+ } | {
79
+ readonly type: "BasicAuthProvider";
80
+ readonly header: () => {
81
+ Authorization: string;
82
+ };
83
+ readonly provider: BasicAuthProvider;
84
+ readonly config: {
85
+ readonly username: string;
86
+ readonly password: string;
87
+ readonly name?: undefined;
88
+ readonly value?: undefined;
89
+ readonly token?: undefined;
90
+ readonly refreshConfig?: undefined;
91
+ };
92
+ } | {
93
+ readonly type: "BearerAuthProvider";
94
+ readonly header: () => {
95
+ Authorization: string;
96
+ };
97
+ readonly provider: import("../../../auth").BearerAuthProvider<import("@ethlete/query").AnyQueryCreator>;
98
+ readonly config: {
99
+ readonly token: string | undefined;
100
+ readonly refreshConfig: {
101
+ readonly refreshOnUnauthorizedResponse: boolean | "true (default)";
102
+ readonly token: string | undefined;
103
+ readonly cookieName: string | undefined;
104
+ readonly cookieDomain: string;
105
+ readonly cookieExpiresInDays: number | "30 (default)";
106
+ readonly cookiePath: string;
107
+ readonly cookieEnabled: boolean | "true (default)";
108
+ readonly cookieSameSite: "strict" | "none" | "lax" | "lax (default)";
109
+ readonly refreshBuffer: number | "30000 (default)";
110
+ readonly expiresInPropertyName: string;
111
+ readonly strategy: import("../../../auth").AuthBearerRefreshStrategy | "AuthBearerRefreshStrategy.BeforeExpiration (default)";
112
+ readonly requestArgsAdapter: "custom" | "default";
113
+ readonly responseAdapter: "custom" | "default";
114
+ };
115
+ readonly name?: undefined;
116
+ readonly value?: undefined;
117
+ readonly username?: undefined;
118
+ readonly password?: undefined;
119
+ };
120
+ } | {
121
+ readonly type: "UnknownAuthProvider";
122
+ readonly header: () => Record<string, string>;
123
+ readonly provider: import("../../../auth").AuthProvider;
124
+ readonly config: {
125
+ readonly name?: undefined;
126
+ readonly value?: undefined;
127
+ readonly username?: undefined;
128
+ readonly password?: undefined;
129
+ readonly token?: undefined;
130
+ readonly refreshConfig?: undefined;
131
+ };
132
+ } | null>;
60
133
  constructor();
61
134
  protected trackByClient: TrackByFunction<QueryClientDevtoolsOptions>;
62
135
  protected trackByQuery: TrackByFunction<AnyQuery>;
@@ -69,6 +142,7 @@ export declare class QueryDevtoolsComponent {
69
142
  protected toggleShowArguments(): void;
70
143
  protected selectSnapLayout(layout: QueryDevtoolsSnapLayout): void;
71
144
  protected selectQueryListMode(mode: QueryListMode): void;
145
+ protected selectViewMode(mode: QueryViewMode): void;
72
146
  protected selectQuery(query: AnyQuery): void;
73
147
  protected clearQueryHistory(): void;
74
148
  static ɵfac: i0.ɵɵFactoryDeclaration<QueryDevtoolsComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/query",
3
- "version": "5.8.1",
3
+ "version": "5.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.0",
6
6
  "@angular/core": "17.3.0",