http-request-manager 18.13.27 → 18.13.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "http-request-manager",
3
- "version": "18.13.27",
3
+ "version": "18.13.29",
4
4
  "homepage": "https://wavecoders.ca",
5
5
  "author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
6
6
  "description": "This is an Angular Module containing Components/Services using Material",
@@ -434,16 +434,20 @@ interface RequestOptionsInterface {
434
434
  path: any[];
435
435
  headers: any;
436
436
  forceRefresh?: boolean;
437
+ ignoreQueryParams?: string[];
438
+ queryParamsExpiresIn?: string | number;
437
439
  watchParams?: string[];
438
- watchExpiresAt?: string | number;
440
+ watchExpiresAt?: number;
439
441
  }
440
442
  declare class RequestOptions implements RequestOptionsInterface {
441
443
  path: any[];
442
444
  headers: {};
443
445
  forceRefresh?: boolean | undefined;
446
+ ignoreQueryParams?: string[] | undefined;
447
+ queryParamsExpiresIn?: (string | number) | undefined;
444
448
  watchParams?: string[] | undefined;
445
- watchExpiresAt?: (string | number) | undefined;
446
- constructor(path?: any[], headers?: {}, forceRefresh?: boolean | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined);
449
+ watchExpiresAt?: number | undefined;
450
+ constructor(path?: any[], headers?: {}, forceRefresh?: boolean | undefined, ignoreQueryParams?: string[] | undefined, queryParamsExpiresIn?: (string | number) | undefined, watchParams?: string[] | undefined, watchExpiresAt?: number | undefined);
447
451
  static adapt(item?: any): RequestOptions;
448
452
  }
449
453
 
@@ -521,53 +525,6 @@ declare class DatabaseManagerService extends DbService {
521
525
  static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
522
526
  }
523
527
 
524
- interface QueryParamsTrackerOptionsInterface {
525
- mode?: 'exact' | 'variation';
526
- watchParams?: string[];
527
- watchExpiresAt?: string | number;
528
- watchParamsExpire?: string | number;
529
- }
530
- declare class QueryParamsTrackerOptionsModel implements QueryParamsTrackerOptionsInterface {
531
- mode?: ("exact" | "variation") | undefined;
532
- watchParams?: string[] | undefined;
533
- watchExpiresAt?: (string | number) | undefined;
534
- watchParamsExpire?: (string | number) | undefined;
535
- constructor(mode?: ("exact" | "variation") | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined, watchParamsExpire?: (string | number) | undefined);
536
- static adapt(item?: any): QueryParamsTrackerOptionsModel;
537
- }
538
-
539
- type QueryParamsTrackerOptions = QueryParamsTrackerOptionsInterface;
540
- declare class QueryParamsTrackerService {
541
- private state;
542
- private stateRestored;
543
- private readonly localStorageManager;
544
- clearTracking(resetSessionInit?: boolean): void;
545
- checkRequestOptions(requestOptions?: any[], options?: QueryParamsTrackerOptions): boolean;
546
- matchesPath(requestOptions?: any[], expectedPathOptions?: any[]): boolean;
547
- private checkExact;
548
- private checkVariation;
549
- private filterQueryByWatchParams;
550
- private normalizeRequestOptions;
551
- private parsePathSegment;
552
- private safeDecode;
553
- private normalizePath;
554
- private normalizeParamKey;
555
- private normalizeParamValue;
556
- private buildExpiryEpoch;
557
- private resetPathStateIfExpired;
558
- private cleanupExpiredEntries;
559
- private ensurePathState;
560
- private ensureStateRestored;
561
- private restoreState;
562
- private persistState;
563
- private stringifyQuery;
564
- private isTrackerState;
565
- private isPlainObject;
566
- private hasSessionStorage;
567
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryParamsTrackerService, never>;
568
- static ɵprov: i0.ɵɵInjectableDeclaration<QueryParamsTrackerService>;
569
- }
570
-
571
528
  interface ChannelMessageInterface {
572
529
  messageId?: number;
573
530
  channel?: string;
@@ -664,9 +621,9 @@ declare class HTTPManagerStateService<T extends {
664
621
  httpManagerService: HTTPManagerService<any>;
665
622
  dbManagerService: DatabaseManagerService;
666
623
  localStorageManagerService: LocalStorageManagerService;
667
- queryParamsTrackerService: QueryParamsTrackerService;
668
624
  utils: UtilsService;
669
625
  logger: LoggerService;
626
+ private queryParamsTrackerService;
670
627
  error$: Observable<boolean>;
671
628
  isPending$: Observable<boolean>;
672
629
  private operationSuccess;
@@ -859,7 +816,6 @@ declare class HTTPManagerStateService<T extends {
859
816
  clearDatabase(): void;
860
817
  private isEmpty;
861
818
  private updateRequestOptions;
862
- private buildQueryTrackerOptions;
863
819
  private normalizeObject;
864
820
  private filterHeaders;
865
821
  private resolvePath;
@@ -873,6 +829,17 @@ declare class HTTPManagerStateService<T extends {
873
829
  private saveSchemaSignature;
874
830
  private saveRequestCacheMetadata;
875
831
  private clearRequestCacheMetadata;
832
+ private getTrackerState;
833
+ private saveTrackerState;
834
+ private trackerNormalizePath;
835
+ private trackerParsePathSegment;
836
+ private trackerSafeDecode;
837
+ private trackerNormalizePathSegments;
838
+ private trackerNormalizeParamKey;
839
+ private trackerNormalizeParamValue;
840
+ private trackerFilterQuery;
841
+ private trackerBuildExpiryEpoch;
842
+ private checkTrackerAllowsRequest;
876
843
  static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
877
844
  static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateService<any>>;
878
845
  }
@@ -2212,14 +2179,14 @@ declare class NormalizedRequestOptionsModel implements NormalizedRequestOptionsI
2212
2179
 
2213
2180
  interface PathTrackerStateInterface {
2214
2181
  baselineQuery?: NormalizedQueryParams;
2215
- consumedValuesByKey: Record<string, QueryValue[]>;
2216
2182
  watchExpiresAt?: number;
2183
+ consumedValuesByKey: Record<string, QueryValue[]>;
2217
2184
  }
2218
2185
  declare class PathTrackerStateModel implements PathTrackerStateInterface {
2219
- baselineQuery?: NormalizedQueryParams | undefined;
2220
2186
  consumedValuesByKey: Record<string, QueryValue[]>;
2187
+ baselineQuery?: NormalizedQueryParams | undefined;
2221
2188
  watchExpiresAt?: number | undefined;
2222
- constructor(baselineQuery?: NormalizedQueryParams | undefined, consumedValuesByKey?: Record<string, QueryValue[]>, watchExpiresAt?: number | undefined);
2189
+ constructor(consumedValuesByKey?: Record<string, QueryValue[]>, baselineQuery?: NormalizedQueryParams | undefined, watchExpiresAt?: number | undefined);
2223
2190
  static adapt(item?: any): PathTrackerStateModel;
2224
2191
  }
2225
2192
 
@@ -2232,6 +2199,21 @@ declare class QueryTrackerStateModel implements QueryTrackerStateInterface {
2232
2199
  static adapt(item?: any): QueryTrackerStateModel;
2233
2200
  }
2234
2201
 
2202
+ interface QueryParamsTrackerOptionsInterface {
2203
+ mode?: 'exact' | 'variation';
2204
+ watchParams?: string[];
2205
+ watchExpiresAt?: string | number;
2206
+ watchParamsExpire?: string | number;
2207
+ }
2208
+ declare class QueryParamsTrackerOptionsModel implements QueryParamsTrackerOptionsInterface {
2209
+ mode?: ("exact" | "variation") | undefined;
2210
+ watchParams?: string[] | undefined;
2211
+ watchExpiresAt?: (string | number) | undefined;
2212
+ watchParamsExpire?: (string | number) | undefined;
2213
+ constructor(mode?: ("exact" | "variation") | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined, watchParamsExpire?: (string | number) | undefined);
2214
+ static adapt(item?: any): QueryParamsTrackerOptionsModel;
2215
+ }
2216
+
2235
2217
  interface ErrorDisplaySettingsInterface {
2236
2218
  displayTime: number;
2237
2219
  position: string;
@@ -2608,8 +2590,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
2608
2590
  database: _angular_forms.FormGroup<{
2609
2591
  table: _angular_forms.FormControl<string | null>;
2610
2592
  expiresIn: _angular_forms.FormControl<string | null>;
2611
- watchParams: _angular_forms.FormControl<string | null>;
2612
- watchExpiresAt: _angular_forms.FormControl<string | null>;
2593
+ ignoreQueryParams: _angular_forms.FormControl<string | null>;
2594
+ queryParamsExpiresIn: _angular_forms.FormControl<string | null>;
2613
2595
  }>;
2614
2596
  }>;
2615
2597
  get hasChanged(): boolean;
@@ -2617,8 +2599,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
2617
2599
  get database(): {
2618
2600
  table: string | null;
2619
2601
  expiresIn: string | null;
2620
- watchParams: string | null;
2621
- watchExpiresAt: string | null;
2602
+ ignoreQueryParams: string | null;
2603
+ queryParamsExpiresIn: string | null;
2622
2604
  } | undefined;
2623
2605
  get retry(): {
2624
2606
  times: number | null;
@@ -3826,5 +3808,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
3826
3808
  static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
3827
3809
  }
3828
3810
 
3829
- export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NormalizedRequestOptionsModel, NotificationMessage, OperationResultModel, PathQueryService, PathTrackerStateModel, PublicMessage, QueryParamsTrackerOptionsModel, QueryParamsTrackerService, QueryTrackerStateModel, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateMessage, StateOperationResult, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UploadDemoComponent, UploadValidationErrorModel, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, calculateBatchProgress, countdown, createChannelName, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
3830
- export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NormalizedQueryParams, NormalizedRequestOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParsingResult, PathTrackerStateInterface, PublicMessageInterface, QueryParamsTrackerOptions, QueryParamsTrackerOptionsInterface, QueryTrackerStateInterface, QueryValue, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, StreamOutput, StreamProgress, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
3811
+ export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NormalizedRequestOptionsModel, NotificationMessage, OperationResultModel, PathQueryService, PathTrackerStateModel, PublicMessage, QueryParamsTrackerOptionsModel, QueryTrackerStateModel, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateMessage, StateOperationResult, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UploadDemoComponent, UploadValidationErrorModel, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, calculateBatchProgress, countdown, createChannelName, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
3812
+ export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NormalizedQueryParams, NormalizedRequestOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParsingResult, PathTrackerStateInterface, PublicMessageInterface, QueryParamsTrackerOptionsInterface, QueryTrackerStateInterface, QueryValue, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, StreamOutput, StreamProgress, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
Binary file