http-request-manager 18.16.24 → 18.16.26
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.
|
|
3
|
+
"version": "18.16.26",
|
|
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",
|
|
@@ -538,6 +538,25 @@ declare class DatabaseManagerService extends DbService {
|
|
|
538
538
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
+
declare class DatabaseManagerSignalsService {
|
|
542
|
+
private readonly dbManager;
|
|
543
|
+
private readonly isPendingSignal;
|
|
544
|
+
private readonly tablesSignal;
|
|
545
|
+
private readonly databaseReadySignal;
|
|
546
|
+
readonly isPending: i0.Signal<boolean>;
|
|
547
|
+
readonly tables: i0.Signal<string[]>;
|
|
548
|
+
readonly databaseReady: i0.Signal<boolean>;
|
|
549
|
+
getDatabaseTables(): Observable<string[]>;
|
|
550
|
+
databaseExists(): Observable<boolean>;
|
|
551
|
+
hasDatabaseTable(table: string): Observable<boolean>;
|
|
552
|
+
getDatabaseTable(table: string): Observable<any>;
|
|
553
|
+
getDatabaseTableSchema(table: string): Observable<string[]>;
|
|
554
|
+
createDatabaseTable(tableDef: TableSchemaDef): Observable<boolean>;
|
|
555
|
+
updateDatabaseTableSchema(tableDef: TableSchemaDef): Observable<any>;
|
|
556
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseManagerSignalsService, never>;
|
|
557
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerSignalsService>;
|
|
558
|
+
}
|
|
559
|
+
|
|
541
560
|
interface ChannelMessageInterface {
|
|
542
561
|
messageId?: number;
|
|
543
562
|
channel?: string;
|
|
@@ -870,6 +889,132 @@ declare class HTTPManagerStateService<T extends {
|
|
|
870
889
|
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateService<any>>;
|
|
871
890
|
}
|
|
872
891
|
|
|
892
|
+
interface BatchOptionsInterface {
|
|
893
|
+
mode?: 'sequential' | 'parallel';
|
|
894
|
+
stopOnError?: boolean;
|
|
895
|
+
concurrency?: number;
|
|
896
|
+
ignoreErrors?: boolean;
|
|
897
|
+
logErrors?: boolean;
|
|
898
|
+
displaySuccess?: boolean;
|
|
899
|
+
displayError?: boolean;
|
|
900
|
+
}
|
|
901
|
+
declare class BatchOptions implements BatchOptionsInterface {
|
|
902
|
+
mode: 'sequential' | 'parallel';
|
|
903
|
+
stopOnError: boolean;
|
|
904
|
+
concurrency: number;
|
|
905
|
+
ignoreErrors: boolean;
|
|
906
|
+
logErrors: boolean;
|
|
907
|
+
displaySuccess?: boolean | undefined;
|
|
908
|
+
displayError?: boolean | undefined;
|
|
909
|
+
constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean, displaySuccess?: boolean | undefined, displayError?: boolean | undefined);
|
|
910
|
+
static adapt(item?: any): BatchOptions;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
declare class HTTPManagerStateSignalsService<T = any> {
|
|
914
|
+
private readonly httpManagerSignalsService;
|
|
915
|
+
private readonly databaseManagerSignalsService;
|
|
916
|
+
private readonly localStorageSignalsManagerService;
|
|
917
|
+
private readonly utils;
|
|
918
|
+
private readonly logger;
|
|
919
|
+
private readonly destroyRef;
|
|
920
|
+
private readonly injector;
|
|
921
|
+
private readonly dataSignal;
|
|
922
|
+
private readonly dataObjectSignal;
|
|
923
|
+
private readonly operationSuccessSignal;
|
|
924
|
+
private readonly pageSignal;
|
|
925
|
+
private readonly totalPagesSignal;
|
|
926
|
+
private readonly percentageSignal;
|
|
927
|
+
private readonly streamedResponseSignal;
|
|
928
|
+
private readonly messagesSignal;
|
|
929
|
+
readonly data: i0.Signal<T[]>;
|
|
930
|
+
readonly dataObject: i0.Signal<T | null>;
|
|
931
|
+
readonly operationSuccess: i0.Signal<OperationResultModel | null>;
|
|
932
|
+
readonly page: i0.Signal<number>;
|
|
933
|
+
readonly totalPages: i0.Signal<number>;
|
|
934
|
+
readonly percentage: i0.Signal<number>;
|
|
935
|
+
readonly streamedResponse: i0.Signal<any[]>;
|
|
936
|
+
readonly messages: i0.Signal<any[]>;
|
|
937
|
+
readonly error: i0.WritableSignal<boolean>;
|
|
938
|
+
readonly isPending: i0.WritableSignal<boolean>;
|
|
939
|
+
readonly isConnecting: i0.Signal<boolean>;
|
|
940
|
+
readonly retryCount: i0.Signal<number>;
|
|
941
|
+
readonly maxRetries: i0.Signal<number>;
|
|
942
|
+
readonly connectionError: i0.Signal<string | null>;
|
|
943
|
+
constructor();
|
|
944
|
+
setData(items: T[]): void;
|
|
945
|
+
setDataObject(item: T | null): void;
|
|
946
|
+
setOperationSuccess(result: OperationResultModel | null): void;
|
|
947
|
+
setPage(n: number): void;
|
|
948
|
+
setTotalPages(n: number): void;
|
|
949
|
+
setPercentage(n: number): void;
|
|
950
|
+
appendStreamedItem(item: any): void;
|
|
951
|
+
clearStreamedResponse(): void;
|
|
952
|
+
clearMessages(): void;
|
|
953
|
+
getRequest<U = T>(options?: ApiRequest, params?: any[]): rxjs.Observable<U>;
|
|
954
|
+
postRequest<U extends {
|
|
955
|
+
id?: number | string;
|
|
956
|
+
} = any>(data: U, options: ApiRequest, params?: any[]): rxjs.Observable<U>;
|
|
957
|
+
putRequest<U extends {
|
|
958
|
+
id?: number | string;
|
|
959
|
+
} = any>(data: U, options: ApiRequest, params?: any[]): rxjs.Observable<U>;
|
|
960
|
+
deleteRequest<U = T>(options: ApiRequest, params?: any[]): rxjs.Observable<U>;
|
|
961
|
+
downloadRequest<U = T>(options: ApiRequest, params?: any[], saveAs?: string): rxjs.Observable<U>;
|
|
962
|
+
uploadRequest<U = T>(files: File | File[], options: ApiRequest, params?: any[]): rxjs.Observable<U>;
|
|
963
|
+
getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): rxjs.Observable<U[]>;
|
|
964
|
+
getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): rxjs.Observable<U[]>;
|
|
965
|
+
getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): rxjs.Observable<U[]>;
|
|
966
|
+
connect(options: WSOptions, jwtToken: string): void;
|
|
967
|
+
disconnect(): void;
|
|
968
|
+
subscribeToChannel(channel: string, userData?: any): void;
|
|
969
|
+
subscribeToChannels(channels: string[], userData?: any): void;
|
|
970
|
+
unsubscribeFromChannel(channel: string): void;
|
|
971
|
+
getSubscribedChannels(): Set<string>;
|
|
972
|
+
sendBroadcast(content: any): void;
|
|
973
|
+
sendMessageInChannel(channel: string, content: any): void;
|
|
974
|
+
sendChannelMessage(channel: string, content: any): void;
|
|
975
|
+
sendChannelMessageToChannels(channels: string[], content: any): void;
|
|
976
|
+
sendMessageToUser(user: string, content: any): void;
|
|
977
|
+
getAllChannels(): void;
|
|
978
|
+
createChannel(channel: string): void;
|
|
979
|
+
deleteChannel(channel: string): void;
|
|
980
|
+
getUsersInChannel(channel: string): void;
|
|
981
|
+
createNotificationChannel(channel: string): void;
|
|
982
|
+
getNotificationChannels(): void;
|
|
983
|
+
getTodaysNotificationChannels(): void;
|
|
984
|
+
subscribeToNotificationChannel(channel: string, options?: any, user?: any): void;
|
|
985
|
+
unsubscribeFromNotificationChannel(channel: string): void;
|
|
986
|
+
sendNotification(channel: string, content: any): void;
|
|
987
|
+
getDatabaseTables(): rxjs.Observable<string[]>;
|
|
988
|
+
databaseExists(): rxjs.Observable<boolean>;
|
|
989
|
+
hasDatabaseTable(table: string): rxjs.Observable<boolean>;
|
|
990
|
+
getDatabaseTable(table: string): rxjs.Observable<any>;
|
|
991
|
+
getDatabaseTableSchema(table: string): rxjs.Observable<string[]>;
|
|
992
|
+
createDatabaseTable(tableDef: TableSchemaDef): rxjs.Observable<boolean>;
|
|
993
|
+
updateDatabaseTableSchema(tableDef: TableSchemaDef): rxjs.Observable<any>;
|
|
994
|
+
createStore(store: {
|
|
995
|
+
id?: string;
|
|
996
|
+
name: string;
|
|
997
|
+
data: any;
|
|
998
|
+
options: SettingOptions;
|
|
999
|
+
}): void;
|
|
1000
|
+
setStore(store: {
|
|
1001
|
+
id: string;
|
|
1002
|
+
name: string;
|
|
1003
|
+
data: any;
|
|
1004
|
+
options: SettingOptions;
|
|
1005
|
+
}): void;
|
|
1006
|
+
updateStore(store: {
|
|
1007
|
+
name: string;
|
|
1008
|
+
data: any;
|
|
1009
|
+
}): void;
|
|
1010
|
+
deleteStore(store: {
|
|
1011
|
+
name: string;
|
|
1012
|
+
}): void;
|
|
1013
|
+
getStore(storeName: string): i0.Signal<any>;
|
|
1014
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateSignalsService<any>, never>;
|
|
1015
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateSignalsService<any>>;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
873
1018
|
declare class WebsocketService {
|
|
874
1019
|
private logger;
|
|
875
1020
|
private socket;
|
|
@@ -1222,27 +1367,6 @@ declare class RetryOptions implements RetryOptionsInterface {
|
|
|
1222
1367
|
static adapt(item?: any): RetryOptions;
|
|
1223
1368
|
}
|
|
1224
1369
|
|
|
1225
|
-
interface BatchOptionsInterface {
|
|
1226
|
-
mode?: 'sequential' | 'parallel';
|
|
1227
|
-
stopOnError?: boolean;
|
|
1228
|
-
concurrency?: number;
|
|
1229
|
-
ignoreErrors?: boolean;
|
|
1230
|
-
logErrors?: boolean;
|
|
1231
|
-
displaySuccess?: boolean;
|
|
1232
|
-
displayError?: boolean;
|
|
1233
|
-
}
|
|
1234
|
-
declare class BatchOptions implements BatchOptionsInterface {
|
|
1235
|
-
mode: 'sequential' | 'parallel';
|
|
1236
|
-
stopOnError: boolean;
|
|
1237
|
-
concurrency: number;
|
|
1238
|
-
ignoreErrors: boolean;
|
|
1239
|
-
logErrors: boolean;
|
|
1240
|
-
displaySuccess?: boolean | undefined;
|
|
1241
|
-
displayError?: boolean | undefined;
|
|
1242
|
-
constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean, displaySuccess?: boolean | undefined, displayError?: boolean | undefined);
|
|
1243
|
-
static adapt(item?: any): BatchOptions;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
1370
|
interface BatchResultInterface<T = any> {
|
|
1247
1371
|
request: any;
|
|
1248
1372
|
success: boolean;
|
|
@@ -1718,6 +1842,7 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1718
1842
|
private headersService;
|
|
1719
1843
|
isPending: i0.WritableSignal<boolean>;
|
|
1720
1844
|
progress: i0.WritableSignal<number>;
|
|
1845
|
+
streamProgress: i0.WritableSignal<StreamProgressModel>;
|
|
1721
1846
|
isIdle: i0.Signal<boolean>;
|
|
1722
1847
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1723
1848
|
getRecordRequest<T>(options: ApiRequest & {
|
|
@@ -1757,8 +1882,12 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
|
|
|
1757
1882
|
messages$: Observable<any>;
|
|
1758
1883
|
subscribedChannels$: Observable<Set<string>>;
|
|
1759
1884
|
countdown: i0.WritableSignal<number>;
|
|
1760
|
-
error: i0.WritableSignal<
|
|
1885
|
+
error: i0.WritableSignal<boolean>;
|
|
1761
1886
|
data: i0.WritableSignal<any>;
|
|
1887
|
+
isConnecting: i0.Signal<boolean>;
|
|
1888
|
+
retryCount: i0.Signal<number>;
|
|
1889
|
+
maxRetries: i0.Signal<number>;
|
|
1890
|
+
connectionError: i0.Signal<string | null>;
|
|
1762
1891
|
private polling$;
|
|
1763
1892
|
config: ApiRequest;
|
|
1764
1893
|
constructor(configOptions?: ConfigOptions | undefined);
|
|
@@ -2135,6 +2264,7 @@ interface StateStoreManagerData<T> {
|
|
|
2135
2264
|
}
|
|
2136
2265
|
declare class StoreStateManagerSignalsService<T extends object = StateStoreManagerData<any>> {
|
|
2137
2266
|
private localStorageManagerService;
|
|
2267
|
+
private injector;
|
|
2138
2268
|
private state;
|
|
2139
2269
|
private isRestoring;
|
|
2140
2270
|
private settings;
|
|
@@ -3936,5 +4066,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
|
|
|
3936
4066
|
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3937
4067
|
}
|
|
3938
4068
|
|
|
3939
|
-
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 };
|
|
4069
|
+
export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseManagerSignalsService, DatabaseStorage, DbService, DexieSqlService, ErrorDisplaySettings, ExecutionPlanType, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HTTPManagerStateSignalsService, 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 };
|
|
3940
4070
|
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
|