http-request-manager 18.16.4 → 18.16.8

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "http-request-manager",
3
- "version": "18.16.4",
3
+ "version": "18.16.8",
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",
@@ -1,7 +1,7 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable, Subscription, BehaviorSubject, OperatorFunction } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, OnDestroy, Injector, DestroyRef, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
4
+ import { InjectionToken, OnDestroy, Injector, DestroyRef, OnInit, OnChanges, SimpleChanges, EventEmitter, ModuleWithProviders } from '@angular/core';
5
5
  import { ComponentStore } from '@ngrx/component-store';
6
6
  import { HttpClient, HttpHeaders, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
7
7
  import * as http_request_manager from 'http-request-manager';
@@ -385,8 +385,6 @@ interface RequestOptionsInterface {
385
385
  forceRefresh?: boolean;
386
386
  ignoreQueryParams?: string[];
387
387
  queryParamsExpiresIn?: string | number;
388
- watchParams?: string[];
389
- watchExpiresAt?: number;
390
388
  }
391
389
  declare class RequestOptions implements RequestOptionsInterface {
392
390
  path: any[];
@@ -394,9 +392,7 @@ declare class RequestOptions implements RequestOptionsInterface {
394
392
  forceRefresh?: boolean | undefined;
395
393
  ignoreQueryParams?: string[] | undefined;
396
394
  queryParamsExpiresIn?: (string | number) | undefined;
397
- watchParams?: string[] | undefined;
398
- watchExpiresAt?: number | undefined;
399
- constructor(path?: any[], headers?: {}, forceRefresh?: boolean | undefined, ignoreQueryParams?: string[] | undefined, queryParamsExpiresIn?: (string | number) | undefined, watchParams?: string[] | undefined, watchExpiresAt?: number | undefined);
395
+ constructor(path?: any[], headers?: {}, forceRefresh?: boolean | undefined, ignoreQueryParams?: string[] | undefined, queryParamsExpiresIn?: (string | number) | undefined);
400
396
  static adapt(item?: any): RequestOptions;
401
397
  }
402
398
 
@@ -843,6 +839,7 @@ declare class HTTPManagerStateService<T extends {
843
839
  private normalizeObject;
844
840
  private filterHeaders;
845
841
  private resolvePath;
842
+ private stripBasePathPrefix;
846
843
  private getEffectiveParams;
847
844
  private buildRequestSignature;
848
845
  private buildSchemaSignature;
@@ -2317,56 +2314,6 @@ declare const UUID: () => `${string}-${string}-${string}-${string}-${string}`;
2317
2314
  */
2318
2315
  declare const UUID_STR: () => string;
2319
2316
 
2320
- type QueryValue = string;
2321
- type NormalizedQueryParams = Record<string, QueryValue>;
2322
- interface NormalizedRequestOptionsInterface {
2323
- pathKey: string;
2324
- query: NormalizedQueryParams;
2325
- hasQuery: boolean;
2326
- }
2327
- declare class NormalizedRequestOptionsModel implements NormalizedRequestOptionsInterface {
2328
- pathKey: string;
2329
- query: NormalizedQueryParams;
2330
- hasQuery: boolean;
2331
- constructor(pathKey?: string, query?: NormalizedQueryParams, hasQuery?: boolean);
2332
- static adapt(item?: any): NormalizedRequestOptionsModel;
2333
- }
2334
-
2335
- interface PathTrackerStateInterface {
2336
- watchExpiresAt?: number;
2337
- consumedValuesByKey: Record<string, QueryValue[]>;
2338
- }
2339
- declare class PathTrackerStateModel implements PathTrackerStateInterface {
2340
- consumedValuesByKey: Record<string, QueryValue[]>;
2341
- watchExpiresAt?: number | undefined;
2342
- constructor(consumedValuesByKey?: Record<string, QueryValue[]>, watchExpiresAt?: number | undefined);
2343
- static adapt(item?: any): PathTrackerStateModel;
2344
- }
2345
-
2346
- interface QueryTrackerStateInterface {
2347
- paths: Record<string, PathTrackerStateInterface>;
2348
- }
2349
- declare class QueryTrackerStateModel implements QueryTrackerStateInterface {
2350
- paths: Record<string, PathTrackerStateInterface>;
2351
- constructor(paths?: Record<string, PathTrackerStateInterface>);
2352
- static adapt(item?: any): QueryTrackerStateModel;
2353
- }
2354
-
2355
- interface QueryParamsTrackerOptionsInterface {
2356
- mode?: 'exact' | 'variation';
2357
- watchParams?: string[];
2358
- watchExpiresAt?: string | number;
2359
- watchParamsExpire?: string | number;
2360
- }
2361
- declare class QueryParamsTrackerOptionsModel implements QueryParamsTrackerOptionsInterface {
2362
- mode?: ("exact" | "variation") | undefined;
2363
- watchParams?: string[] | undefined;
2364
- watchExpiresAt?: (string | number) | undefined;
2365
- watchParamsExpire?: (string | number) | undefined;
2366
- constructor(mode?: ("exact" | "variation") | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined, watchParamsExpire?: (string | number) | undefined);
2367
- static adapt(item?: any): QueryParamsTrackerOptionsModel;
2368
- }
2369
-
2370
2317
  interface ErrorDisplaySettingsInterface {
2371
2318
  displayTime: number;
2372
2319
  position: string;
@@ -2791,8 +2738,7 @@ declare class RequestManagerStateDemoComponent implements OnInit {
2791
2738
  apiOptions: ApiRequest;
2792
2739
  path: any[];
2793
2740
  };
2794
- private parseWatchParams;
2795
- private normalizeWatchExpiry;
2741
+ private parseIgnoreParams;
2796
2742
  private buildDemoRequestOptions;
2797
2743
  onSetStateOptions(): void;
2798
2744
  onClearRecords(): void;
@@ -3407,7 +3353,7 @@ declare class NotificationServiceDemo {
3407
3353
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationServiceDemo>;
3408
3354
  }
3409
3355
 
3410
- declare class RequestManagerWsDemoComponent implements OnInit {
3356
+ declare class RequestManagerWsDemoComponent implements OnInit, OnChanges {
3411
3357
  httpManagerService: HTTPManagerService<any>;
3412
3358
  stateService: StateServiceDemo;
3413
3359
  fb: FormBuilder;
@@ -3425,6 +3371,7 @@ declare class RequestManagerWsDemoComponent implements OnInit {
3425
3371
  data$: rxjs.Observable<any>;
3426
3372
  isPending$: rxjs.Observable<boolean>;
3427
3373
  ngOnInit(): void;
3374
+ ngOnChanges(changes: SimpleChanges): void;
3428
3375
  static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerWsDemoComponent, never>;
3429
3376
  static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerWsDemoComponent, "app-request-manager-ws-demo", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; "path": { "alias": "path"; "required": false; }; }, {}, never, never, false, never>;
3430
3377
  }
@@ -3513,7 +3460,7 @@ declare class StateDataRequestService extends HTTPManagerStateService<any> {
3513
3460
  static ɵprov: i0.ɵɵInjectableDeclaration<StateDataRequestService>;
3514
3461
  }
3515
3462
 
3516
- declare class WsDataControlComponent implements OnInit {
3463
+ declare class WsDataControlComponent implements OnInit, OnChanges {
3517
3464
  server: string;
3518
3465
  wsServer: string;
3519
3466
  jwtToken: string;
@@ -3526,7 +3473,9 @@ declare class WsDataControlComponent implements OnInit {
3526
3473
  userAction$: rxjs.Observable<any>;
3527
3474
  data$: rxjs.Observable<any>;
3528
3475
  isUser: (user: any, userItem: any) => boolean;
3476
+ getUserLabel: (user: any) => any;
3529
3477
  ngOnInit(): void;
3478
+ ngOnChanges(changes: SimpleChanges): void;
3530
3479
  onGetData(): void;
3531
3480
  onAddData(): void;
3532
3481
  onUpdateData(data: any[]): void;
@@ -3974,5 +3923,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
3974
3923
  static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
3975
3924
  }
3976
3925
 
3977
- export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, DexieSqlService, ErrorDisplaySettings, ExecutionPlanType, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NormalizedRequestOptionsModel, NotificationMessage, OperationResultModel, ParsingResultModel, PathQueryService, PathTrackerStateModel, PublicMessage, QueryParamsTrackerOptionsModel, QueryTrackerStateModel, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, SqlParseError, SqlValidationError, StateMessage, StateOperationResult, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamConfigModel, StreamEventMetadataModel, StreamEventModel, StreamOutputModel, StreamProgressModel, 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 };
3978
- export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, DexieOp, DexieSqlOptions, ErrorDisplaySettingsInterface, ExecutionPlan, GlobalStoreOptionsInterface, InvalidFileInfoInterface, JoinInfo, LocalStorageOptionsInterface, NormalizedQueryParams, NormalizedRequestOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParseResult, ParsingResultInterface, PathTrackerStateInterface, PlanStep, PublicMessageInterface, QueryParamsTrackerOptionsInterface, QueryTrackerStateInterface, QueryValue, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfigInterface, StreamEventInterface, StreamEventMetadataInterface, StreamOutputInterface, StreamProgressInterface, TableRecord, TableSchemaDefInterface, TableSchemaInfo, UploadValidationErrorInterface, UserDataInterface, ValidatedQuery, WSOptionsInterface };
3926
+ export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, DexieSqlService, ErrorDisplaySettings, ExecutionPlanType, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NotificationMessage, OperationResultModel, ParsingResultModel, PathQueryService, PublicMessage, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, SqlParseError, SqlValidationError, StateMessage, StateOperationResult, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamConfigModel, StreamEventMetadataModel, StreamEventModel, StreamOutputModel, StreamProgressModel, 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 };
3927
+ export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, DexieOp, DexieSqlOptions, ErrorDisplaySettingsInterface, ExecutionPlan, GlobalStoreOptionsInterface, InvalidFileInfoInterface, JoinInfo, LocalStorageOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParseResult, ParsingResultInterface, PlanStep, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfigInterface, StreamEventInterface, StreamEventMetadataInterface, StreamOutputInterface, StreamProgressInterface, TableRecord, TableSchemaDefInterface, TableSchemaInfo, UploadValidationErrorInterface, UserDataInterface, ValidatedQuery, WSOptionsInterface };
Binary file