http-request-manager 18.7.11 → 18.7.12
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.
|
@@ -1149,6 +1149,27 @@ class WSUser {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
|
+
class ChannelMessageData {
|
|
1153
|
+
constructor(channel, users = []) {
|
|
1154
|
+
this.channel = channel;
|
|
1155
|
+
this.users = users;
|
|
1156
|
+
}
|
|
1157
|
+
static adapt(item) {
|
|
1158
|
+
return new ChannelMessageData(item?.channel, (item?.users) ? item?.users.map((userItem) => WSUser.adapt(userItem)) : []);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
class ChannelMessage {
|
|
1163
|
+
constructor(sessionId = null, content = null) {
|
|
1164
|
+
this.sessionId = sessionId;
|
|
1165
|
+
this.content = content;
|
|
1166
|
+
}
|
|
1167
|
+
static adapt(item) {
|
|
1168
|
+
return new ChannelMessage(item?.sessionId || item?.id, // Support both for backward compatibility
|
|
1169
|
+
item?.content);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1152
1173
|
var CommunicationType;
|
|
1153
1174
|
(function (CommunicationType) {
|
|
1154
1175
|
CommunicationType[CommunicationType["MESSAGE"] = 0] = "MESSAGE";
|
|
@@ -3378,17 +3399,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3378
3399
|
}]
|
|
3379
3400
|
}], ctorParameters: () => [] });
|
|
3380
3401
|
|
|
3381
|
-
class ChannelMessage {
|
|
3382
|
-
constructor(sessionId = null, content = null) {
|
|
3383
|
-
this.sessionId = sessionId;
|
|
3384
|
-
this.content = content;
|
|
3385
|
-
}
|
|
3386
|
-
static adapt(item) {
|
|
3387
|
-
return new ChannelMessage(item?.sessionId || item?.id, // Support both for backward compatibility
|
|
3388
|
-
item?.content);
|
|
3389
|
-
}
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
3402
|
const API_OPTS = new InjectionToken('API_OPTS');
|
|
3393
3403
|
/**
|
|
3394
3404
|
* Channel type enum for different communication purposes
|
|
@@ -7485,5 +7495,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
7485
7495
|
* Generated bundle index. Do not edit.
|
|
7486
7496
|
*/
|
|
7487
7497
|
|
|
7488
|
-
export { ApiRequest, AppService, AsymmetricalEncryptionService, CONFIG_SETTINGS_TOKEN, ChannelInfo, ChannelType, CommunicationType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsManagerService, PathQueryService, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UtilsService, WSOptions, WSUser, WebsocketService, WithCredentialsInterceptor, countdown, createChannelName, delayedRetry, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
|
|
7498
|
+
export { ApiRequest, AppService, AsymmetricalEncryptionService, CONFIG_SETTINGS_TOKEN, ChannelInfo, ChannelMessage, ChannelMessageData, ChannelType, CommunicationType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, PathQueryService, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestManagerWsDemoComponent, RequestOptions, RequestService, RequestSignalsManagerDemoComponent, RequestSignalsService, RetryOptions, SettingOptions, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerDemoComponent, StoreStateManagerService, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UtilsService, WSOptions, WSUser, WebsocketService, WithCredentialsInterceptor, countdown, createChannelName, delayedRetry, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
|
|
7489
7499
|
//# sourceMappingURL=http-request-manager.mjs.map
|