http-request-manager 18.15.25 → 18.15.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.
|
@@ -942,6 +942,39 @@ class QueryParamsTrackerOptionsModel {
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
+
class StreamConfigModel {
|
|
946
|
+
constructor(streamType = StreamType.AI_STREAMING, totalHeader = 'X-Total-Count') {
|
|
947
|
+
this.streamType = streamType;
|
|
948
|
+
this.totalHeader = totalHeader;
|
|
949
|
+
}
|
|
950
|
+
static adapt(item) {
|
|
951
|
+
return new StreamConfigModel(item?.streamType, item?.totalHeader);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
class StreamProgressModel {
|
|
956
|
+
constructor(received = 0, total, percent = 0, stage = 'connecting') {
|
|
957
|
+
this.received = received;
|
|
958
|
+
this.total = total;
|
|
959
|
+
this.percent = percent;
|
|
960
|
+
this.stage = stage;
|
|
961
|
+
}
|
|
962
|
+
static adapt(item) {
|
|
963
|
+
return new StreamProgressModel(item?.received, item?.total, item?.percent, item?.stage);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
class StreamOutputModel {
|
|
968
|
+
constructor(data = [], progress = new StreamProgressModel(), endpoint) {
|
|
969
|
+
this.data = data;
|
|
970
|
+
this.progress = progress;
|
|
971
|
+
this.endpoint = endpoint;
|
|
972
|
+
}
|
|
973
|
+
static adapt(item) {
|
|
974
|
+
return new StreamOutputModel(Array.isArray(item?.data) ? item.data : [], item?.progress ? StreamProgressModel.adapt(item.progress) : new StreamProgressModel(), item?.endpoint);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
945
978
|
/**
|
|
946
979
|
* Stateful processor for managing streaming data and events
|
|
947
980
|
*/
|
|
@@ -951,7 +984,7 @@ class StreamingProcessor {
|
|
|
951
984
|
this.contentType = '';
|
|
952
985
|
this.maxBufferSize = 10 * 1024 * 1024; // 10MB limit
|
|
953
986
|
this.lastParsedLength = 0; // Track parsed position to avoid duplicates
|
|
954
|
-
this.streamConfig = config ||
|
|
987
|
+
this.streamConfig = config || new StreamConfigModel(StreamType.AI_STREAMING);
|
|
955
988
|
}
|
|
956
989
|
/**
|
|
957
990
|
* Process HTTP events and extract streaming data with progress
|
|
@@ -984,16 +1017,16 @@ class StreamingProcessor {
|
|
|
984
1017
|
const percent = total
|
|
985
1018
|
? Math.round((received / total) * 100)
|
|
986
1019
|
: 0;
|
|
987
|
-
const progress = {
|
|
1020
|
+
const progress = StreamProgressModel.adapt({
|
|
988
1021
|
received,
|
|
989
1022
|
total,
|
|
990
1023
|
percent,
|
|
991
1024
|
stage: 'streaming'
|
|
992
|
-
};
|
|
993
|
-
return {
|
|
1025
|
+
});
|
|
1026
|
+
return StreamOutputModel.adapt({
|
|
994
1027
|
data: newItems.length > 0 ? newItems : [],
|
|
995
1028
|
progress
|
|
996
|
-
};
|
|
1029
|
+
});
|
|
997
1030
|
}
|
|
998
1031
|
return null;
|
|
999
1032
|
case HttpEventType.Response:
|
|
@@ -1002,15 +1035,15 @@ class StreamingProcessor {
|
|
|
1002
1035
|
const parsedData = this.parseBuffer();
|
|
1003
1036
|
// Calculate final progress
|
|
1004
1037
|
const received = this.totalFromHeader ? parsedData.length : event.loaded;
|
|
1005
|
-
const progress = {
|
|
1038
|
+
const progress = StreamProgressModel.adapt({
|
|
1006
1039
|
received,
|
|
1007
1040
|
percent: 100,
|
|
1008
1041
|
stage: 'complete'
|
|
1009
|
-
};
|
|
1010
|
-
return {
|
|
1042
|
+
});
|
|
1043
|
+
return StreamOutputModel.adapt({
|
|
1011
1044
|
data: parsedData.length > 0 ? parsedData : [],
|
|
1012
1045
|
progress
|
|
1013
|
-
};
|
|
1046
|
+
});
|
|
1014
1047
|
}
|
|
1015
1048
|
return null;
|
|
1016
1049
|
default:
|
|
@@ -1318,23 +1351,23 @@ function isNdjsonFormat(buffer) {
|
|
|
1318
1351
|
*/
|
|
1319
1352
|
// Stream with JSON format
|
|
1320
1353
|
function streamJSON() {
|
|
1321
|
-
return requestStreaming({ streamType: StreamType.JSON });
|
|
1354
|
+
return requestStreaming(StreamConfigModel.adapt({ streamType: StreamType.JSON }));
|
|
1322
1355
|
}
|
|
1323
1356
|
// Stream with NDJSON format
|
|
1324
1357
|
function streamNDJSON() {
|
|
1325
|
-
return requestStreaming({ streamType: StreamType.NDJSON });
|
|
1358
|
+
return requestStreaming(StreamConfigModel.adapt({ streamType: StreamType.NDJSON }));
|
|
1326
1359
|
}
|
|
1327
1360
|
// Stream AI responses
|
|
1328
1361
|
function streamAI() {
|
|
1329
|
-
return requestStreaming({ streamType: StreamType.AI_STREAMING });
|
|
1362
|
+
return requestStreaming(StreamConfigModel.adapt({ streamType: StreamType.AI_STREAMING }));
|
|
1330
1363
|
}
|
|
1331
1364
|
// Stream Server-Sent Events
|
|
1332
1365
|
function streamEvents() {
|
|
1333
|
-
return requestStreaming({ streamType: StreamType.EVENT_STREAM });
|
|
1366
|
+
return requestStreaming(StreamConfigModel.adapt({ streamType: StreamType.EVENT_STREAM }));
|
|
1334
1367
|
}
|
|
1335
1368
|
// Auto-detect streaming format
|
|
1336
1369
|
function streamAuto() {
|
|
1337
|
-
return requestStreaming({ streamType: StreamType.AUTO });
|
|
1370
|
+
return requestStreaming(StreamConfigModel.adapt({ streamType: StreamType.AUTO }));
|
|
1338
1371
|
}
|
|
1339
1372
|
|
|
1340
1373
|
class ChannelInfo {
|
|
@@ -2936,12 +2969,12 @@ class RequestService extends WebsocketService {
|
|
|
2936
2969
|
this.isPending$ = this.isPending.asObservable();
|
|
2937
2970
|
this.progress = new BehaviorSubject(0);
|
|
2938
2971
|
this.progress$ = this.progress.asObservable();
|
|
2939
|
-
this.streamProgress = new BehaviorSubject({
|
|
2972
|
+
this.streamProgress = new BehaviorSubject(StreamProgressModel.adapt({
|
|
2940
2973
|
received: 0,
|
|
2941
2974
|
total: undefined,
|
|
2942
2975
|
percent: 0,
|
|
2943
2976
|
stage: 'connecting'
|
|
2944
|
-
});
|
|
2977
|
+
}));
|
|
2945
2978
|
this.streamProgress$ = this.streamProgress.asObservable();
|
|
2946
2979
|
}
|
|
2947
2980
|
// Implementation
|
|
@@ -2957,7 +2990,7 @@ class RequestService extends WebsocketService {
|
|
|
2957
2990
|
reportProgress: true
|
|
2958
2991
|
}).pipe(
|
|
2959
2992
|
// tap(data => console.log('STREAM DATA', data)),
|
|
2960
|
-
requestStreaming({ streamType: options.streamType || StreamType.NDJSON, totalHeader: 'X-Total-Count' }), this.requestStreaming(options), this.handleFinalize())
|
|
2993
|
+
requestStreaming(StreamConfigModel.adapt({ streamType: options.streamType || StreamType.NDJSON, totalHeader: 'X-Total-Count' })), this.requestStreaming(options), this.handleFinalize())
|
|
2961
2994
|
: this.http.get(urlPath, headers).pipe(this.request(options));
|
|
2962
2995
|
}
|
|
2963
2996
|
createRecordRequest(options, data) {
|
|
@@ -2970,7 +3003,7 @@ class RequestService extends WebsocketService {
|
|
|
2970
3003
|
observe: 'events',
|
|
2971
3004
|
responseType: 'text',
|
|
2972
3005
|
reportProgress: true
|
|
2973
|
-
}).pipe(requestStreaming({ streamType: options.streamType || StreamType.NDJSON, totalHeader: 'X-Total-Count' }), this.requestStreaming(options), this.handleFinalize())
|
|
3006
|
+
}).pipe(requestStreaming(StreamConfigModel.adapt({ streamType: options.streamType || StreamType.NDJSON, totalHeader: 'X-Total-Count' })), this.requestStreaming(options), this.handleFinalize())
|
|
2974
3007
|
: this.http.post(urlPath, data, headers).pipe(this.request(options));
|
|
2975
3008
|
}
|
|
2976
3009
|
updateRecordRequest(options, data) {
|
|
@@ -4249,7 +4282,7 @@ class RequestSignalsService extends WebsocketService {
|
|
|
4249
4282
|
observe: 'events',
|
|
4250
4283
|
responseType: 'text',
|
|
4251
4284
|
reportProgress: true
|
|
4252
|
-
}).pipe(requestStreaming({ streamType: options.streamType || StreamType.AI_STREAMING }), this.requestStreamingOperator(options), this.handleFinalize())
|
|
4285
|
+
}).pipe(requestStreaming(StreamConfigModel.adapt({ streamType: options.streamType || StreamType.AI_STREAMING })), this.requestStreamingOperator(options), this.handleFinalize())
|
|
4253
4286
|
: this.http.get(urlPath, headers).pipe(this.request(options), this.handleFinalize());
|
|
4254
4287
|
}
|
|
4255
4288
|
// Implementation
|
|
@@ -4263,7 +4296,7 @@ class RequestSignalsService extends WebsocketService {
|
|
|
4263
4296
|
observe: 'events',
|
|
4264
4297
|
responseType: 'text',
|
|
4265
4298
|
reportProgress: true
|
|
4266
|
-
}).pipe(requestStreaming({ streamType: options.streamType || StreamType.AI_STREAMING }), this.requestStreamingOperator(options), this.handleFinalize())
|
|
4299
|
+
}).pipe(requestStreaming(StreamConfigModel.adapt({ streamType: options.streamType || StreamType.AI_STREAMING })), this.requestStreamingOperator(options), this.handleFinalize())
|
|
4267
4300
|
: this.http.post(urlPath, data, headers).pipe(this.request(options), this.handleFinalize());
|
|
4268
4301
|
}
|
|
4269
4302
|
updateRecordRequest(options, data) {
|
|
@@ -5083,6 +5116,39 @@ class OperationResultModel {
|
|
|
5083
5116
|
}
|
|
5084
5117
|
}
|
|
5085
5118
|
|
|
5119
|
+
class StreamEventMetadataModel {
|
|
5120
|
+
constructor(timestamp = new Date(), streamType = StreamType.AI_STREAMING, contentLength) {
|
|
5121
|
+
this.timestamp = timestamp;
|
|
5122
|
+
this.streamType = streamType;
|
|
5123
|
+
this.contentLength = contentLength;
|
|
5124
|
+
}
|
|
5125
|
+
static adapt(item) {
|
|
5126
|
+
return new StreamEventMetadataModel(item?.timestamp, item?.streamType, item?.contentLength);
|
|
5127
|
+
}
|
|
5128
|
+
}
|
|
5129
|
+
|
|
5130
|
+
class StreamEventModel {
|
|
5131
|
+
constructor(type = 'data', data = null, metadata) {
|
|
5132
|
+
this.type = type;
|
|
5133
|
+
this.data = data;
|
|
5134
|
+
this.metadata = metadata;
|
|
5135
|
+
}
|
|
5136
|
+
static adapt(item) {
|
|
5137
|
+
return new StreamEventModel(item?.type, item?.data, item?.metadata ? StreamEventMetadataModel.adapt(item.metadata) : undefined);
|
|
5138
|
+
}
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
class ParsingResultModel {
|
|
5142
|
+
constructor(success = false, data, error) {
|
|
5143
|
+
this.success = success;
|
|
5144
|
+
this.data = data;
|
|
5145
|
+
this.error = error;
|
|
5146
|
+
}
|
|
5147
|
+
static adapt(item) {
|
|
5148
|
+
return new ParsingResultModel(item?.success, Array.isArray(item?.data) ? item.data : undefined, item?.error);
|
|
5149
|
+
}
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5086
5152
|
class ObjectMergerService {
|
|
5087
5153
|
constructor(configOptions) {
|
|
5088
5154
|
this.configOptions = configOptions;
|
|
@@ -6452,53 +6518,40 @@ class QueryParamsTrackerService {
|
|
|
6452
6518
|
sessionStorage.removeItem(TRACKER_SESSION_INIT_KEY);
|
|
6453
6519
|
}
|
|
6454
6520
|
}
|
|
6455
|
-
|
|
6456
|
-
this.
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
.subscribe((storedState) => {
|
|
6462
|
-
if (!storedState?.paths?.[pathKey])
|
|
6463
|
-
return;
|
|
6464
|
-
const updatedPaths = { ...storedState.paths };
|
|
6465
|
-
delete updatedPaths[pathKey];
|
|
6466
|
-
const updatedState = { ...storedState, paths: updatedPaths };
|
|
6467
|
-
this.localStorageManager.updateStore({ name: TRACKER_STORE_NAME, data: updatedState });
|
|
6468
|
-
if (this.stateRestored && this.state.paths[pathKey]) {
|
|
6469
|
-
delete this.state.paths[pathKey];
|
|
6470
|
-
}
|
|
6471
|
-
});
|
|
6521
|
+
clearTrackingForPath(pathKey) {
|
|
6522
|
+
this.ensureStateRestored();
|
|
6523
|
+
if (this.state.paths[pathKey]) {
|
|
6524
|
+
delete this.state.paths[pathKey];
|
|
6525
|
+
this.persistState();
|
|
6526
|
+
}
|
|
6472
6527
|
}
|
|
6473
6528
|
checkRequestOptions(requestOptions = [], options = {}) {
|
|
6474
6529
|
this.ensureStateRestored();
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
return !pathSeenBefore;
|
|
6488
|
-
}
|
|
6489
|
-
if (options.mode === 'exact') {
|
|
6490
|
-
return this.checkExact(normalized, options);
|
|
6530
|
+
if (!this.ready$.value) {
|
|
6531
|
+
return true;
|
|
6532
|
+
}
|
|
6533
|
+
const normalized = this.normalizeRequestOptions(requestOptions);
|
|
6534
|
+
if (!normalized.pathKey)
|
|
6535
|
+
return false;
|
|
6536
|
+
this.cleanupExpiredEntries();
|
|
6537
|
+
if (!normalized.hasQuery) {
|
|
6538
|
+
const pathState = this.ensurePathState(normalized.pathKey);
|
|
6539
|
+
const pathSeenBefore = Object.keys(pathState.consumedValuesByKey).length > 0;
|
|
6540
|
+
if (!pathSeenBefore) {
|
|
6541
|
+
this.persistState();
|
|
6491
6542
|
}
|
|
6492
|
-
return
|
|
6493
|
-
}
|
|
6543
|
+
return !pathSeenBefore;
|
|
6544
|
+
}
|
|
6545
|
+
if (options.mode === 'exact') {
|
|
6546
|
+
return this.checkExact(normalized, options);
|
|
6547
|
+
}
|
|
6548
|
+
return this.checkVariation(normalized, options);
|
|
6494
6549
|
}
|
|
6495
6550
|
matchesPath(requestOptions = [], expectedPathOptions = []) {
|
|
6496
6551
|
this.ensureStateRestored();
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
return Boolean(requestPath) && requestPath === expectedPath;
|
|
6501
|
-
}));
|
|
6552
|
+
const requestPath = this.normalizeRequestOptions(requestOptions).pathKey;
|
|
6553
|
+
const expectedPath = this.normalizeRequestOptions(expectedPathOptions).pathKey;
|
|
6554
|
+
return Boolean(requestPath) && requestPath === expectedPath;
|
|
6502
6555
|
}
|
|
6503
6556
|
checkExact(normalized, options) {
|
|
6504
6557
|
const pathState = this.ensurePathState(normalized.pathKey);
|
|
@@ -8398,7 +8451,7 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
8398
8451
|
}
|
|
8399
8452
|
}
|
|
8400
8453
|
if (Array.isArray(pathArray) && pathArray.length > 0) {
|
|
8401
|
-
this.queryParamsTrackerService.
|
|
8454
|
+
this.queryParamsTrackerService.clearTrackingForPath(pathArray.join('/'));
|
|
8402
8455
|
this._requestCachePaths.delete(tableName);
|
|
8403
8456
|
}
|
|
8404
8457
|
if (!storeData)
|
|
@@ -8536,10 +8589,10 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
8536
8589
|
}
|
|
8537
8590
|
checkTrackerAllowsRequest(tableName, path, options, storeData) {
|
|
8538
8591
|
if (options && 'watchParams' in options) {
|
|
8539
|
-
return this.queryParamsTrackerService.checkRequestOptions(path, {
|
|
8592
|
+
return of(this.queryParamsTrackerService.checkRequestOptions(path, {
|
|
8540
8593
|
watchParams: options.watchParams,
|
|
8541
8594
|
watchExpiresAt: options?.watchExpiresAt,
|
|
8542
|
-
});
|
|
8595
|
+
}));
|
|
8543
8596
|
}
|
|
8544
8597
|
const normalized = this.trackerNormalizePath(path);
|
|
8545
8598
|
const ignoreQueryParams = Array.isArray(options?.ignoreQueryParams) ? options.ignoreQueryParams : [];
|
|
@@ -11995,11 +12048,11 @@ class RequestManagerWsDemoComponent {
|
|
|
11995
12048
|
this.stateService.updateConnection(this.server, this.wsServer, this.jwtToken, this.user, this.path);
|
|
11996
12049
|
}
|
|
11997
12050
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RequestManagerWsDemoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11998
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: RequestManagerWsDemoComponent, selector: "app-request-manager-ws-demo", inputs: { server: "server", wsServer: "wsServer", jwtToken: "jwtToken", user: "user", path: "path" }, ngImport: i0, template: "<div style=\"margin: 2rem;\">\n\n <h2 style=\"display: flex;\">\n <span style=\"flex:1\">HTTP Request State Manager - Websockets</span>\n @if ((connectionStatus$ | async); as connected) {\n <span>\n WS -\n <span style=\"color: green;\">Connected</span>\n </span>\n } @else {\n <span style=\"color: red;\">Disconnected {{ attempts$ | async }} - {{ nextRetry$ |async }}</span>\n }\n </h2>\n\n <div>\n\n @if ((user$ | async); as userInfo) {\n <div>\n <mat-toolbar>\n <div style=\"display: flex; flex:1\">\n <div style=\"flex:1\">{{ userInfo.name }}</div>\n <div>({{ userInfo.ldap }})</div>\n </div>\n </mat-toolbar>\n </div>\n }\n\n @if ((
|
|
12051
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: RequestManagerWsDemoComponent, selector: "app-request-manager-ws-demo", inputs: { server: "server", wsServer: "wsServer", jwtToken: "jwtToken", user: "user", path: "path" }, ngImport: i0, template: "<div style=\"margin: 2rem;\">\n\n <h2 style=\"display: flex;\">\n <span style=\"flex:1\">HTTP Request State Manager - Websockets</span>\n @if ((connectionStatus$ | async); as connected) {\n <span>\n WS -\n <span style=\"color: green;\">Connected</span>\n </span>\n } @else {\n <span style=\"color: red;\">Disconnected {{ attempts$ | async }} - {{ nextRetry$ |async }}</span>\n }\n </h2>\n\n <div>\n\n @if ((user$ | async); as userInfo) {\n <div>\n <mat-toolbar>\n <div style=\"display: flex; flex:1\">\n <div style=\"flex:1\">{{ userInfo.name }}</div>\n <div>({{ userInfo.ldap }})</div>\n </div>\n </mat-toolbar>\n </div>\n }\n\n @if (!(connectionStatus$ | async)) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n }\n\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"1\">\n\n <mat-tab label=\"WS - Data Control\">\n <!-- DATA CONTROL -->\n <app-ws-data-control\n [server]=\"server\"\n [wsServer]=\"wsServer\"\n [jwtToken]=\"jwtToken\"\n [user]=\"user\"\n [path]=\"path\"\n ></app-ws-data-control>\n\n </mat-tab>\n\n <mat-tab label=\"WS - Messaging\">\n <!-- MESSAGING -->\n <app-ws-messaging\n [server]=\"server\"\n [wsServer]=\"wsServer\"\n [jwtToken]=\"jwtToken\"\n [user]=\"user\"\n [path]=\"path\"\n ></app-ws-messaging>\n\n </mat-tab>\n\n <mat-tab label=\"WS - Notifications\">\n <!-- WS - Notifications -->\n <app-ws-notifications\n [server]=\"server\"\n [wsServer]=\"wsServer\"\n [jwtToken]=\"jwtToken\"\n [user]=\"user\"\n ></app-ws-notifications>\n </mat-tab>\n\n <mat-tab label=\"WS - Chats\" [disabled]=\"true\">\n <!-- WS - Chats -->\n <app-ws-chats></app-ws-chats>\n </mat-tab>\n\n <mat-tab label=\"WS - AI Messaging\" [disabled]=\"true\">\n <!-- WS - AI Messaging -->\n <app-ws-ai-messaging></app-ws-ai-messaging>\n </mat-tab>\n\n </mat-tab-group>\n</div>\n\n</div>\n\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i1$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: i8$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: WsDataControlComponent, selector: "app-ws-data-control", inputs: ["server", "wsServer", "jwtToken", "user", "path"] }, { kind: "component", type: WsMessagingComponent, selector: "app-ws-messaging", inputs: ["server", "wsServer", "jwtToken", "user", "path"] }, { kind: "component", type: WsNotificationsComponent, selector: "app-ws-notifications", inputs: ["server", "wsServer", "jwtToken", "user"] }, { kind: "component", type: WsAiMessagingComponent, selector: "app-ws-ai-messaging" }, { kind: "component", type: WsChatsComponent, selector: "app-ws-chats" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] }); }
|
|
11999
12052
|
}
|
|
12000
12053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RequestManagerWsDemoComponent, decorators: [{
|
|
12001
12054
|
type: Component,
|
|
12002
|
-
args: [{ selector: 'app-request-manager-ws-demo', standalone: false, template: "<div style=\"margin: 2rem;\">\n\n <h2 style=\"display: flex;\">\n <span style=\"flex:1\">HTTP Request State Manager - Websockets</span>\n @if ((connectionStatus$ | async); as connected) {\n <span>\n WS -\n <span style=\"color: green;\">Connected</span>\n </span>\n } @else {\n <span style=\"color: red;\">Disconnected {{ attempts$ | async }} - {{ nextRetry$ |async }}</span>\n }\n </h2>\n\n <div>\n\n @if ((user$ | async); as userInfo) {\n <div>\n <mat-toolbar>\n <div style=\"display: flex; flex:1\">\n <div style=\"flex:1\">{{ userInfo.name }}</div>\n <div>({{ userInfo.ldap }})</div>\n </div>\n </mat-toolbar>\n </div>\n }\n\n @if ((
|
|
12055
|
+
args: [{ selector: 'app-request-manager-ws-demo', standalone: false, template: "<div style=\"margin: 2rem;\">\n\n <h2 style=\"display: flex;\">\n <span style=\"flex:1\">HTTP Request State Manager - Websockets</span>\n @if ((connectionStatus$ | async); as connected) {\n <span>\n WS -\n <span style=\"color: green;\">Connected</span>\n </span>\n } @else {\n <span style=\"color: red;\">Disconnected {{ attempts$ | async }} - {{ nextRetry$ |async }}</span>\n }\n </h2>\n\n <div>\n\n @if ((user$ | async); as userInfo) {\n <div>\n <mat-toolbar>\n <div style=\"display: flex; flex:1\">\n <div style=\"flex:1\">{{ userInfo.name }}</div>\n <div>({{ userInfo.ldap }})</div>\n </div>\n </mat-toolbar>\n </div>\n }\n\n @if (!(connectionStatus$ | async)) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n }\n\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"1\">\n\n <mat-tab label=\"WS - Data Control\">\n <!-- DATA CONTROL -->\n <app-ws-data-control\n [server]=\"server\"\n [wsServer]=\"wsServer\"\n [jwtToken]=\"jwtToken\"\n [user]=\"user\"\n [path]=\"path\"\n ></app-ws-data-control>\n\n </mat-tab>\n\n <mat-tab label=\"WS - Messaging\">\n <!-- MESSAGING -->\n <app-ws-messaging\n [server]=\"server\"\n [wsServer]=\"wsServer\"\n [jwtToken]=\"jwtToken\"\n [user]=\"user\"\n [path]=\"path\"\n ></app-ws-messaging>\n\n </mat-tab>\n\n <mat-tab label=\"WS - Notifications\">\n <!-- WS - Notifications -->\n <app-ws-notifications\n [server]=\"server\"\n [wsServer]=\"wsServer\"\n [jwtToken]=\"jwtToken\"\n [user]=\"user\"\n ></app-ws-notifications>\n </mat-tab>\n\n <mat-tab label=\"WS - Chats\" [disabled]=\"true\">\n <!-- WS - Chats -->\n <app-ws-chats></app-ws-chats>\n </mat-tab>\n\n <mat-tab label=\"WS - AI Messaging\" [disabled]=\"true\">\n <!-- WS - AI Messaging -->\n <app-ws-ai-messaging></app-ws-ai-messaging>\n </mat-tab>\n\n </mat-tab-group>\n</div>\n\n</div>\n\n" }]
|
|
12003
12056
|
}], propDecorators: { server: [{
|
|
12004
12057
|
type: Input
|
|
12005
12058
|
}], wsServer: [{
|
|
@@ -13212,5 +13265,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
13212
13265
|
* Generated bundle index. Do not edit.
|
|
13213
13266
|
*/
|
|
13214
13267
|
|
|
13215
|
-
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 };
|
|
13268
|
+
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 };
|
|
13216
13269
|
//# sourceMappingURL=http-request-manager.mjs.map
|