http-request-manager 18.12.1 → 18.12.3

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.12.1",
3
+ "version": "18.12.3",
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",
@@ -373,6 +373,17 @@ declare class RequestOptions implements RequestOptionsInterface {
373
373
  static adapt(item?: any): RequestOptions;
374
374
  }
375
375
 
376
+ interface OperationResultInterface {
377
+ success: boolean;
378
+ operation: 'CREATE' | 'UPDATE' | 'DELETE';
379
+ }
380
+ declare class OperationResultModel implements OperationResultInterface {
381
+ success: boolean;
382
+ operation: 'CREATE' | 'UPDATE' | 'DELETE';
383
+ constructor(success?: boolean, operation?: 'CREATE' | 'UPDATE' | 'DELETE');
384
+ static adapt(item?: any): OperationResultModel;
385
+ }
386
+
376
387
  interface TableSchemaDefInterface {
377
388
  table: string;
378
389
  schema: string;
@@ -540,6 +551,8 @@ declare class HTTPManagerStateService<T extends {
540
551
  logger: LoggerService;
541
552
  error$: Observable<boolean>;
542
553
  isPending$: Observable<boolean>;
554
+ private operationSuccess;
555
+ operationSuccess$: Observable<OperationResultModel | null>;
543
556
  private page;
544
557
  page$: Observable<number>;
545
558
  private totalPages;
@@ -1961,6 +1974,25 @@ declare class StateStorageOptions implements StateStorageOptionsInterface {
1961
1974
  static adapt(item?: any): StateStorageOptions;
1962
1975
  }
1963
1976
 
1977
+ interface StateOperationResultInterface {
1978
+ success: boolean;
1979
+ operation: 'CREATE' | 'UPDATE' | 'DELETE';
1980
+ key?: string;
1981
+ value?: any;
1982
+ timestamp: number;
1983
+ error?: string;
1984
+ }
1985
+ declare class StateOperationResult implements StateOperationResultInterface {
1986
+ success: boolean;
1987
+ operation: 'CREATE' | 'UPDATE' | 'DELETE';
1988
+ key?: string | undefined;
1989
+ value?: any;
1990
+ timestamp: number;
1991
+ error?: string | undefined;
1992
+ constructor(success?: boolean, operation?: 'CREATE' | 'UPDATE' | 'DELETE', key?: string | undefined, value?: any, timestamp?: number, error?: string | undefined);
1993
+ static adapt(item?: any): StateOperationResult;
1994
+ }
1995
+
1964
1996
  interface StateStoreManagerData$1<T> {
1965
1997
  }
1966
1998
  declare class StoreStateManagerService<T extends object = StateStoreManagerData$1<any>> extends ComponentStore<T> {
@@ -1969,13 +2001,18 @@ declare class StoreStateManagerService<T extends object = StateStoreManagerData$
1969
2001
  subscriptions: Subscription;
1970
2002
  settings: any;
1971
2003
  private isRestoring;
2004
+ private operationResult;
2005
+ operationResult$: Observable<StateOperationResult | null>;
1972
2006
  constructor(options?: StateStorageOptions);
1973
2007
  private static init;
1974
2008
  init(options?: StateStorageOptions): void;
1975
2009
  restoreState(): Subscription;
1976
2010
  updateState(state: any): void;
1977
- readonly data$: rxjs.Observable<any>;
2011
+ readonly data$: Observable<any>;
1978
2012
  readonly updateData: (() => void) | ((observableOrValue: any) => Subscription);
2013
+ createRecord(key: string, value: any): void;
2014
+ updateRecord(key: string, value: any): void;
2015
+ deleteRecord(key: string): void;
1979
2016
  static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerService<any>, never>;
1980
2017
  static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerService<any>>;
1981
2018
  }
@@ -1987,6 +2024,8 @@ declare class StoreStateManagerSignalsService<T extends object = StateStoreManag
1987
2024
  private state;
1988
2025
  private isRestoring;
1989
2026
  private settings;
2027
+ private operationResultSignal;
2028
+ readonly operationResult: i0.Signal<StateOperationResult | null>;
1990
2029
  readonly data: i0.Signal<T | null>;
1991
2030
  readonly transformedData: i0.Signal<any>;
1992
2031
  constructor();
@@ -1994,6 +2033,9 @@ declare class StoreStateManagerSignalsService<T extends object = StateStoreManag
1994
2033
  restoreState(): void;
1995
2034
  updateState(state: Partial<T>): void;
1996
2035
  updateData(data: Partial<T>): void;
2036
+ createRecord(key: string, value: any): void;
2037
+ updateRecord(key: string, value: any): void;
2038
+ deleteRecord(key: string): void;
1997
2039
  resetState(): void;
1998
2040
  static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerSignalsService<any>, never>;
1999
2041
  static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerSignalsService<any>>;
@@ -3645,5 +3687,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
3645
3687
  static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
3646
3688
  }
3647
3689
 
3648
- 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, NotificationMessage, PathQueryService, PublicMessage, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateMessage, 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 };
3649
- export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NotificationMessageInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
3690
+ 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, NotificationMessage, OperationResultModel, PathQueryService, PublicMessage, 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 };
3691
+ export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
Binary file