http-request-manager 18.15.32 → 18.16.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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-request-manager",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.16.0",
|
|
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",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"crypto-js": "^4.2.0",
|
|
23
23
|
"dexie": "^4.0.11",
|
|
24
24
|
"file-downloader-action": "^18.0.0",
|
|
25
|
+
"node-sql-parser": "~5.4.0",
|
|
25
26
|
"rxjs": "~7.8.0",
|
|
26
27
|
"toast-message-display": "^18.0.7"
|
|
27
28
|
},
|
|
@@ -8,6 +8,7 @@ import * as http_request_manager from 'http-request-manager';
|
|
|
8
8
|
import * as i18 from 'toast-message-display';
|
|
9
9
|
import { ToastMessageDisplayService } from 'toast-message-display';
|
|
10
10
|
import Dexie, { Table } from 'dexie';
|
|
11
|
+
import { AST } from 'node-sql-parser/build/mysql';
|
|
11
12
|
import * as i36 from '@ngx-translate/core';
|
|
12
13
|
import { TranslateService } from '@ngx-translate/core';
|
|
13
14
|
import * as _angular_forms from '@angular/forms';
|
|
@@ -641,7 +642,6 @@ declare class HTTPManagerStateService<T extends {
|
|
|
641
642
|
localStorageManagerService: LocalStorageManagerService;
|
|
642
643
|
utils: UtilsService;
|
|
643
644
|
logger: LoggerService;
|
|
644
|
-
private queryParamsTrackerService;
|
|
645
645
|
error$: Observable<boolean>;
|
|
646
646
|
isPending$: Observable<boolean>;
|
|
647
647
|
private operationSuccess;
|
|
@@ -852,8 +852,6 @@ declare class HTTPManagerStateService<T extends {
|
|
|
852
852
|
private saveSchemaSignature;
|
|
853
853
|
private saveRequestCacheMetadata;
|
|
854
854
|
private clearRequestCacheMetadata;
|
|
855
|
-
private getTrackerState;
|
|
856
|
-
private saveTrackerState;
|
|
857
855
|
private trackerNormalizePath;
|
|
858
856
|
private trackerParsePathSegment;
|
|
859
857
|
private trackerSafeDecode;
|
|
@@ -2146,6 +2144,94 @@ declare class StoreStateManagerSignalsService<T extends object = StateStoreManag
|
|
|
2146
2144
|
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerSignalsService<any>>;
|
|
2147
2145
|
}
|
|
2148
2146
|
|
|
2147
|
+
interface DexieSqlOptions {
|
|
2148
|
+
strict?: boolean;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
declare class DexieSqlService {
|
|
2152
|
+
private readonly _parser;
|
|
2153
|
+
private readonly _validator;
|
|
2154
|
+
private readonly _planner;
|
|
2155
|
+
private readonly _executor;
|
|
2156
|
+
/**
|
|
2157
|
+
* Execute a MySQL-syntax SQL SELECT string against the DexieJS IndexedDB database.
|
|
2158
|
+
* Returns an Observable that emits the result array and completes, or errors with
|
|
2159
|
+
* SqlParseError / SqlValidationError if the query is invalid.
|
|
2160
|
+
*/
|
|
2161
|
+
query(sql: string, options?: DexieSqlOptions): Observable<any[]>;
|
|
2162
|
+
private _run;
|
|
2163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DexieSqlService, never>;
|
|
2164
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DexieSqlService>;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
declare class SqlParseError extends Error {
|
|
2168
|
+
name: string;
|
|
2169
|
+
constructor(message: string);
|
|
2170
|
+
}
|
|
2171
|
+
declare class SqlValidationError extends Error {
|
|
2172
|
+
name: string;
|
|
2173
|
+
constructor(message: string);
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
declare enum ExecutionPlanType {
|
|
2177
|
+
SIMPLE = "SIMPLE",
|
|
2178
|
+
AND_BOUNDED = "AND_BOUNDED",
|
|
2179
|
+
AND_COMPOUND = "AND_COMPOUND",
|
|
2180
|
+
OR_MERGE = "OR_MERGE",
|
|
2181
|
+
JOIN_HASH = "JOIN_HASH"
|
|
2182
|
+
}
|
|
2183
|
+
type DexieOp = 'equals' | 'notEqual' | 'above' | 'aboveOrEqual' | 'below' | 'belowOrEqual' | 'between' | 'anyOf' | 'noneOf' | 'startsWith';
|
|
2184
|
+
interface PlanStep {
|
|
2185
|
+
col: string;
|
|
2186
|
+
op: DexieOp;
|
|
2187
|
+
val: any;
|
|
2188
|
+
}
|
|
2189
|
+
interface JoinInfo {
|
|
2190
|
+
leftTable: string;
|
|
2191
|
+
rightTable: string;
|
|
2192
|
+
leftKey: string;
|
|
2193
|
+
rightKey: string;
|
|
2194
|
+
joinType: 'inner' | 'left';
|
|
2195
|
+
}
|
|
2196
|
+
interface ExecutionPlan {
|
|
2197
|
+
type: ExecutionPlanType;
|
|
2198
|
+
table: string;
|
|
2199
|
+
primaryStep: PlanStep | null;
|
|
2200
|
+
boundedFilters: PlanStep[];
|
|
2201
|
+
compoundIndex?: string;
|
|
2202
|
+
compoundValues?: any[];
|
|
2203
|
+
compoundWarnCols?: string[];
|
|
2204
|
+
orBranches?: PlanStep[];
|
|
2205
|
+
joinInfo?: JoinInfo;
|
|
2206
|
+
orderBy?: {
|
|
2207
|
+
col: string;
|
|
2208
|
+
dir: 'asc' | 'desc';
|
|
2209
|
+
} | null;
|
|
2210
|
+
limit?: number | null;
|
|
2211
|
+
offset?: number | null;
|
|
2212
|
+
projection?: string[] | null;
|
|
2213
|
+
aggregate?: 'count' | null;
|
|
2214
|
+
distinct?: boolean;
|
|
2215
|
+
dedupeKey?: string;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
interface ParseResult {
|
|
2219
|
+
ast: AST;
|
|
2220
|
+
tableList: string[];
|
|
2221
|
+
columnList: string[];
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
interface TableSchemaInfo {
|
|
2225
|
+
pk: string;
|
|
2226
|
+
simpleIndexes: string[];
|
|
2227
|
+
compoundIndexes: string[][];
|
|
2228
|
+
}
|
|
2229
|
+
interface ValidatedQuery {
|
|
2230
|
+
ast: any;
|
|
2231
|
+
schemas: Record<string, TableSchemaInfo>;
|
|
2232
|
+
aliases: Record<string, string>;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2149
2235
|
declare class HeadersService {
|
|
2150
2236
|
headers: {};
|
|
2151
2237
|
generateHeaders(headers?: Record<string, string>): {
|
|
@@ -3363,11 +3449,17 @@ interface TableRecord {
|
|
|
3363
3449
|
}
|
|
3364
3450
|
declare class DatabaseDataDemoComponent implements OnInit, OnDestroy {
|
|
3365
3451
|
db: DatabaseManagerService;
|
|
3452
|
+
sql: DexieSqlService;
|
|
3366
3453
|
private destroy$;
|
|
3367
3454
|
dataToDisplay: TableRecord[];
|
|
3368
3455
|
dataSource: DatabaseDataSource;
|
|
3369
3456
|
displayedColumns: string[];
|
|
3370
3457
|
names: string[];
|
|
3458
|
+
sqlQuery: string;
|
|
3459
|
+
sqlResults: any[];
|
|
3460
|
+
sqlResultCols: string[];
|
|
3461
|
+
sqlError: string | null;
|
|
3462
|
+
sqlLoading: boolean;
|
|
3371
3463
|
constructor();
|
|
3372
3464
|
ngOnDestroy(): void;
|
|
3373
3465
|
addData(): void;
|
|
@@ -3384,6 +3476,7 @@ declare class DatabaseDataDemoComponent implements OnInit, OnDestroy {
|
|
|
3384
3476
|
createTableRecord<T>(table: string, record: T): Observable<any>;
|
|
3385
3477
|
updateTableRecord<T>(table: string, record: T): Observable<any>;
|
|
3386
3478
|
deleteTableRecord<T>(table: string, id: number): Observable<any>;
|
|
3479
|
+
runSqlQuery(): void;
|
|
3387
3480
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseDataDemoComponent, never>;
|
|
3388
3481
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatabaseDataDemoComponent, "app-database-data-demo", never, {}, {}, never, never, false, never>;
|
|
3389
3482
|
}
|
|
@@ -3871,5 +3964,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
|
|
|
3871
3964
|
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3872
3965
|
}
|
|
3873
3966
|
|
|
3874
|
-
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, 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, 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 };
|
|
3875
|
-
export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NormalizedQueryParams, NormalizedRequestOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParsingResultInterface, PathTrackerStateInterface, PublicMessageInterface, QueryParamsTrackerOptionsInterface, QueryTrackerStateInterface, QueryValue, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfigInterface, StreamEventInterface, StreamEventMetadataInterface, StreamOutputInterface, StreamProgressInterface, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
|
|
3967
|
+
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 };
|
|
3968
|
+
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 };
|
|
Binary file
|